/**
 * BakeHub Vendor Wholesale - Frontend Styles
 *
 * @package BVW
 * @since   1.0.0
 */

/* ==========================================================================
   Wholesale Application Section
   ========================================================================== */

.bvw-wholesale-application-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.bvw-wholesale-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.bvw-wholesale-info p {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.bvw-login-required {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px !important;
    margin: 15px 0;
}

.bvw-login-required em {
    display: block;
    margin-bottom: 10px;
    color: #856404;
}

.bvw-wholesale-apply-btn {
    background: #28a745;
    border-color: #28a745;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bvw-wholesale-apply-btn:hover {
    background: #218838;
    border-color: #1e7e34;
    transform: translateY(-1px);
}

.bvw-wholesale-pending {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 20px;
}

.bvw-wholesale-pending h3 {
    color: #0c5460;
    margin-bottom: 10px;
}

.bvw-wholesale-pending p {
    color: #0c5460;
    margin: 0;
}

/* ==========================================================================
   Application Modal
   ========================================================================== */

.bvw-modal {
    display: none;
    position: fixed;
    z-index: 100050 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.bvw-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bvw-fade-in 0.3s ease;
}

.bvw-modal-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 640px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: bvw-slide-up 0.3s ease;
    margin: 5vh auto;
}

.bvw-modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.bvw-modal-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
}

.bvw-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.bvw-modal-close:hover {
    color: #dc3545;
}

.bvw-modal-body {
    padding: 25px;
}

.bvw-form-group {
    margin-bottom: 20px;
}

.bvw-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.bvw-form-group .required {
    color: #dc3545;
}

.bvw-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.bvw-form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.bvw-form-control.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.bvw-form-row {
    display: flex;
    gap: 15px;
}

.bvw-form-col {
    flex: 1;
}

.bvw-form-help {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.bvw-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
}

.bvw-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
}

.bvw-modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    text-align: right;
}

.bvw-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.bvw-btn-primary {
    background: #007bff;
    color: white;
}

.bvw-btn-primary:hover {
    background: #0056b3;
}

.bvw-btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.bvw-btn-secondary {
    background: #6c757d;
    color: white;
    margin-right: 10px;
}

.bvw-btn-secondary:hover {
    background: #545b62;
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.bvw-loading {
    position: relative;
}

.bvw-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    z-index: 10;
}

.bvw-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: bvw-spin 1s linear infinite;
    z-index: 11;
}

/* ==========================================================================
   Vendor Dashboard Styles
   ========================================================================== */

.bvw-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bvw-stat-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.bvw-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bvw-stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #007bff;
    display: block;
}

.bvw-stat-label {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
}

.bvw-applications-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bvw-applications-table th,
.bvw-applications-table td {
    padding: 10px 8px !important;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.bvw-applications-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.bvw-applications-table tr:hover {
    background: #f8f9fa;
}

.bvw-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcv-status.wcv-status--on-hold {
    padding: 4px 8px !important;
}

.bvw-status-pending_review {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.bvw-status-approved {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bvw-terms-indicator {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bvw-terms-badge {
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* Keep access text and terms inline and compact */
.bvw-access-and-terms {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bvw-status-rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.bvw-action-buttons {
    display: flex;
    gap: 8px;
}

.bvw-btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.bvw-btn-approve {
    background: #28a745;
    color: white;
}

.bvw-btn-approve:hover {
    background: #218838;
}

.bvw-btn-reject {
    background: #dc3545;
    color: white;
}

.bvw-btn-reject:hover {
    background: #c82333;
}

.bvw-pending-badge {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
}

/* ==========================================================================
   Order Dashboard Styles
   ========================================================================== */
   /* Order column in orders table */
   .wcvendors-table tbody tr td.order_number p {
    margin-bottom: 0px !important;
   }
   
   /* Edit button placement in vendor order modal */
   .wcv-order-table td.name .bvw-start-edit { display: inline-block; margin-top: 6px; margin-left: 5px; }
   .wcv_mobile .bvw-start-edit { display: inline-block; margin-top: 6px; margin-left: 5px; }

   /* Make the Edit button small and subtle */
   .bvw-start-edit.button, .bvw-save-item.button, .bvw-cancel-item.button {
       padding: 2px 8px !important;
       line-height: 1.2 !important;
       font-size: 12px !important;
       border-radius: 3px !important;
       background: #f6f7f7 !important;
       border: 1px solid #ccd0d4 !important;
       color: #2271b1 !important;
       box-shadow: none !important;
       text-transform: none !important;
       min-width: 60px;
   }
   .bvw-start-edit.button:hover {
       background: #f0f0f1 !important;
       border-color: #b7bcc0 !important;
       color: #135e96 !important;
   }

   /* Inline edit row layout */
   .bvw-edit-inline { display: inline-flex; align-items: center; gap: 8px; }
   .bvw-edit-inline input { max-width: 110px; }

   /* qty and unit price inputs */
   input.bvw-edit-qty, input.bvw-edit-price {
        padding: 6px 10px !important;
        height: 45px !important;
        margin-top: 5px !important;
   }

   /* override default wc vendor styles on table tr td */
   .wcv-modal .wcv-order-item-details table tbody tr td {
        padding: 20px 6px !important;
   }

   /* Hide thumbnail column in vendor order modal (desktop) without breaking layout */
   .wcv-order-items-details .wcv-order-table thead th.thumbnail { display: none; }
   .wcv-order-items-details .wcv-order-table tbody td:first-child { display: none; }

   /* Mobile modal: hide thumbnail block and make details full width */
   .wcv_mobile .wcv-mobile-order-table .item-details .wcv-order-thumb { display: none; }
   .wcv_mobile .wcv-mobile-order-table .item-details .all-35:first-child { display: none; }
   .wcv_mobile .wcv-mobile-order-table .item-details .all-65 { flex: 0 0 100%; max-width: 100%; }

   /* column heights */
   .wcv-modal .wcv-order-items-details table tbody tr td {
        padding: 20px 6px !important;
   }

   /* ==========================================================================
   Wholesale Price Labels
   ========================================================================== */

.bvw-wholesale-label {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes bvw-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bvw-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bvw-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .bvw-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .bvw-modal-header,
    .bvw-modal-body,
    .bvw-modal-footer {
        padding: 15px;
    }
    
    .bvw-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .bvw-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .bvw-applications-table {
        font-size: 14px;
    }
    
    .bvw-action-buttons {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .bvw-wholesale-application-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .bvw-wholesale-apply-btn {
        width: 100%;
        padding: 15px;
    }
}

/* ==========================================================================
   Single-Vendor Cart Notice Styling
   ========================================================================== */

/* Emphasize our single-vendor cart error with a red background block */
.woocommerce .woocommerce-error.bvw-single-vendor-error,
.et_pb_wc_cart_notice_0_tb_body .woocommerce-error.bvw-single-vendor-error {
    display: block;
    background: #ed3413; /* bootstrap danger-like */
    color: #fff;
    padding: 15px 15px;
    border-radius: 4px;
}

.woocommerce .woocommerce-error.bvw-single-vendor-error a,
.et_pb_wc_cart_notice_0_tb_body .woocommerce-error.bvw-single-vendor-error a {
    color: #fff;
    text-decoration: underline;
}

/* CSS-only alternative using :has() to target the wrapper when our span is present (modern browsers) */
.woocommerce .woocommerce-error:has(.bvw-single-vendor-error-msg),
.et_pb_wc_cart_notice_0_tb_body .woocommerce-error:has(.bvw-single-vendor-error-msg) {
    background: #ed3413 !important;
    color: #fff !important;
    border-radius: 4px;
}

.woocommerce .woocommerce-error:has(.bvw-single-vendor-error-msg) a,
.et_pb_wc_cart_notice_0_tb_body .woocommerce-error:has(.bvw-single-vendor-error-msg) a {
    color: #fff !important;
}

/* ==========================================================================
   DIVI Theme Compatibility
   ========================================================================== */

.et_pb_section .bvw-wholesale-application-section,
.et_pb_module .bvw-wholesale-application-section {
    box-sizing: border-box;
}

.et_pb_section .bvw-modal-content,
.et_pb_module .bvw-modal-content {
    box-sizing: border-box;
}

/* Override DIVI's global styles that might interfere */
.bvw-modal * {
    box-sizing: border-box;
}

.bvw-form-control {
    font-family: inherit;
    line-height: 1.5;
}

/* Ensure buttons work with DIVI */
.et_pb_section .bvw-btn,
.et_pb_module .bvw-btn {
    display: inline-block;
    text-decoration: none;
}

/* ==========================================================================
   Vendor Applications Page (Template-Specific Styles moved from template)
   ========================================================================== */

.bvw-vendor-dashboard-page {
    max-width: 1200px;
    margin: 0 auto;
}

.bvw-dashboard-header {
    margin-bottom: 30px;
}

.bvw-dashboard-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.bvw-dashboard-header .description {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.bvw-filter-bar {
    padding: 20px 0px;
    margin-bottom: 20px;
}

.bvw-filter-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.bvw-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bvw-filter-group label {
    font-weight: 600;
    white-space: nowrap;
}

.bvw-applications-table tr.expanded {
    background-color: #f8f9fa;
}

.bvw-applications-table tr[data-application-id] {
    cursor: pointer;
}

.bvw-applications-table tr[data-application-id]:hover {
    background-color: #f1f3f4;
}

.bvw-application-details-expanded {
    padding: 20px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 10px;
}

.bvw-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.bvw-detail-section h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bvw-detail-section p {
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
}

.bvw-details-actions {
    text-align: right;
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
}

.bvw-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.bvw-empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.bvw-empty-state h3 {
    color: #495057;
    margin-bottom: 15px;
}

.bvw-empty-state p {
    color: #6c757d;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.bvw-help-text {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bvw-help-text ul {
    margin: 10px 0 0 20px;
    color: #6c757d;
}

.bvw-help-text li {
    margin-bottom: 8px;
}

.status-text {
    font-size: 14px;
    font-style: italic;
}

.status-text.approved {
    color: #28a745;
}

.status-text.rejected {
    color: #dc3545;
}

/* Make unpaid badge more prominent in the payment status row */
.bvw-payment-status .status-text.rejected {
    font-style: normal;
    font-weight: 700;
    font-size: 15px;
    background: #ffe8ea; /* subtle red background */
    color: #b30019;      /* stronger red text */
    border: 1px solid #f3b5bc;
    border-radius: 4px;
    padding: 4px 10px;
    display: inline-block;
}

.customer-info strong,
.business-info strong {
    display: block;
    margin-bottom: 4px;
}

.customer-info a {
    color: #007cba;
    text-decoration: none;
    font-size: 13px;
}

.customer-info a:hover {
    text-decoration: underline;
}

.business-info small {
    color: #6c757d;
}

.estimated-volume {
    font-weight: 600;
    color: #28a745;
}

.application-time {
    font-size: 12px;
    color: #6c757d;
}

/* Terms selection styling */
.bvw-terms-select {
    text-align: left;
}

.bvw-terms-label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    display: block;
}

.bvw-terms-dropdown {
    width: 100%;
    padding: 4px 8px !important;
    line-height: 1.5 !important;
    font-size: 13px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    color: #212529 !important;
    -webkit-text-fill-color: #212529 !important;
    opacity: 1 !important;
}

/* Match styling for the update-terms select in the expanded row */
.bvw-customer-terms-select {
    width: auto;
    min-width: 180px;
    padding: 6px 10px !important;
    line-height: 1.5 !important;
    font-size: 13px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    color: #212529 !important;
    -webkit-text-fill-color: #212529 !important;
    opacity: 1 !important;
    max-height: 45px !important;
}

/* Keep dropdown and Update button inline */
.bvw-terms-update-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .bvw-terms-update-row {
        flex-wrap: wrap;
    }
}

.bvw-action-buttons-row {
    display: flex;
    gap: 8px;
}

.bvw-btn-update-terms {
    min-height: 45px !important;
}

/* Stronger specificity to avoid theme/dashboard overrides */
.bvw-vendor-dashboard-page .bvw-filter-bar .bvw-filter-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.bvw-vendor-dashboard-page .bvw-filter-bar .bvw-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Prevent inputs from stretching full width on large screens */
.bvw-vendor-dashboard-page .bvw-filter-bar .bvw-filter-group input[type="search"] {
    width: auto;
    max-width: 260px;
}

.bvw-vendor-dashboard-page .bvw-filter-bar .bvw-filter-group select {
    width: auto;
}

@media (max-width: 768px) {
    .bvw-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .bvw-filter-group {
        justify-content: space-between;
    }
    
    .bvw-applications-table {
        font-size: 14px;
    }
    
    .bvw-applications-table th,
    .bvw-applications-table td {
        padding: 10px 10px;
    }
    
    .bvw-details-grid {
        grid-template-columns: 1fr;
    }
    
    .bvw-action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .bvw-btn-small {
        width: 100%;
    }
}

/* Applications table: stack action buttons to free horizontal space */
.bvw-applications-table td:last-child .bvw-action-buttons {
	flex-direction: column;      /* Terms on top, buttons below */
	align-items: stretch;
	gap: 10px;
}

.bvw-applications-table td:last-child .bvw-action-buttons-row {
	flex-direction: column;      /* Stack Approve/Reject */
	gap: 6px;
}

.bvw-applications-table td:last-child .bvw-btn-small {
	width: 100%;                 /* Full width buttons for neat stacking */
}

/* Actions cell: keep Terms and buttons inline on desktop */
@media (min-width: 769px) {
	.bvw-applications-table td:last-child .bvw-action-buttons {
		flex-direction: row;
		align-items: center;
		gap: 12px;
	}

	/* Inline buttons again */
	.bvw-applications-table td:last-child .bvw-action-buttons-row {
		display: flex;
		flex-direction: row;
		gap: 8px;
		width: auto;
	}

	/* Prevent buttons from stretching full width */
	.bvw-applications-table td:last-child .bvw-btn-small {
		width: auto;
	}

	/* Override global 100% width for the dropdown in the Actions cell */
	.bvw-applications-table td:last-child .bvw-terms-dropdown {
		width: auto;
		min-width: 180px;
        max-height: 45px;
	}
}

/* Stack only Approve/Reject; keep Terms inline (desktop) */
@media (min-width: 769px) {
	.bvw-applications-table td:last-child .bvw-action-buttons {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: 12px;
	}

	.bvw-applications-table td:last-child .bvw-action-buttons-row {
		display: flex;
		flex-direction: column;
		gap: 6px;
		min-width: 140px; /* keeps a neat vertical button stack */
	}

	.bvw-applications-table td:last-child .bvw-btn-small {
		width: 100%;
	}
}

/* ==========================================================================
   Vendor Order Modal
   ========================================================================== */

    .wcv-modal { height: 92vh !important; max-height: 92vh !important; }
    .wcv-modal .modal-body { max-height: calc(92vh - 140px) !important; overflow-y: auto; }

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .bvw-modal {
        display: none !important;
    }
    
    .bvw-wholesale-apply-btn {
        display: none;
    }
}

/* ==========================================================================
   Loop Add to Cart
   ========================================================================== */
.bvw-loop-add-to-cart form.cart { 
    display:flex;
    margin-bottom: 0 !important;
    margin-top: 24px !important;
}

.bvw-loop-add-to-cart .button.add_to_cart_button {
    margin-top: 0px !important;
}


/* ==========================================================================
   Order Delivery Date Schedule
   ========================================================================== */
.orddd-page-navigation {
    display: none;
}

@media (min-width: 576px) {
    .modal-dialog { margin-top: 4.75rem !important; }
  }

.delvry-sch-bottom select.ib-small {
    line-height: normal !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    width: 130px !important;
}



/* ==========================================================================
  My Account Orders
   ========================================================================== */
   a.woocommerce-button.button.view {
    margin-right: 5px;
   }

   a.woocommerce-button.button.invoice {
    margin-top: 5px;
    margin-bottom: 5px;
   }

   a.woocommerce-button.button.leave_feedback {
    margin-top: 5px;
   }

   .woocommerce-account .woocommerce-MyAccount-navigation {
    width: 20% !important;
   }

   .woocommerce-account .woocommerce-MyAccount-content {
    width: 78% !important;
   }

   .woocommerce-orders-table {
    table-layout: fixed;
    width: 100%;
}

.woocommerce-orders-table__header-order-number { width: 10%; }
.woocommerce-orders-table__header-order-date { width: 18%; }
.woocommerce-orders-table__header-order-delivery-date { width: 18%; }
.woocommerce-orders-table__header-order-status { width: 15%; }
.woocommerce-orders-table__header-order-total { width: 20%; }
.woocommerce-orders-table__header-order-actions { width: 19%; }

.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions a.button {
    font-size: 1em;
}

