/**
 * WC B2B Companies - Frontend Styles
 * Redesigned v4.0.9.rev2 - Professional B2B Portal
 *
 * @package WC_B2B_Companies
 */

/* ============================================
   Mon Entreprise - Design Tokens
   ============================================ */

.wc-b2b-company-page {
    --b2b-primary: #0F172A;
    --b2b-secondary: #334155;
    --b2b-accent: #0369A1;
    --b2b-accent-light: #E0F2FE;
    --b2b-bg: #F8FAFC;
    --b2b-bg-card: #fff;
    --b2b-border: #E2E8F0;
    --b2b-text: #020617;
    --b2b-text-muted: #64748B;
    --b2b-success: #059669;
    --b2b-success-light: #ECFDF5;
    --b2b-warning: #D97706;
    --b2b-warning-light: #FFFBEB;
    --b2b-danger: #DC2626;
    --b2b-danger-light: #FEF2F2;
    --b2b-radius: 10px;
    --b2b-radius-sm: 6px;
    --b2b-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --b2b-transition: 0.2s ease;
    max-width: 100%;
}

/* ============================================
   Mon Entreprise - Section Cards
   ============================================ */

.wc-b2b-company-section {
    background: var(--b2b-bg-card);
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--b2b-shadow);
}

.wc-b2b-company-section:last-child {
    margin-bottom: 0;
}

.wc-b2b-company-section h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 20px 0;
    padding: 0 0 16px 0;
    border-bottom: 1px solid var(--b2b-border);
    font-size: 15px;
    font-weight: 600;
    color: var(--b2b-primary);
    letter-spacing: 0.01em;
}

.wc-b2b-company-section h3 small {
    font-weight: 400;
    font-size: 12px;
    color: var(--b2b-text-muted);
    margin-left: 8px;
}

/* Edit / Add buttons */
.wc-b2b-edit-link {
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 14px;
    background: var(--b2b-bg);
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius-sm);
    color: var(--b2b-secondary);
    cursor: pointer;
    transition: all var(--b2b-transition);
    line-height: 1.4;
}

.wc-b2b-edit-link:hover {
    background: var(--b2b-accent);
    color: #fff;
    border-color: var(--b2b-accent);
}

/* ============================================
   Mon Entreprise - Company Details
   ============================================ */

.wc-b2b-company-details {
    width: 100%;
    border-collapse: collapse;
}

.wc-b2b-company-details tr {
    border-bottom: 1px solid var(--b2b-border);
}

.wc-b2b-company-details tr:last-child {
    border-bottom: none;
}

.wc-b2b-company-details th,
.wc-b2b-company-details td {
    padding: 12px 0;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.wc-b2b-company-details th {
    width: 35%;
    font-weight: 500;
    color: var(--b2b-text-muted);
    padding-right: 16px;
}

.wc-b2b-company-details td {
    color: var(--b2b-text);
    font-weight: 500;
}

.wc-b2b-company-details td a {
    color: var(--b2b-accent);
    text-decoration: none;
}

.wc-b2b-company-details td a:hover {
    text-decoration: underline;
}

/* ============================================
   Mon Entreprise - Members
   ============================================ */

.wc-b2b-members-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wc-b2b-members-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--b2b-bg);
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius-sm);
    transition: border-color var(--b2b-transition);
}

.wc-b2b-members-list li:hover {
    border-color: #CBD5E1;
}

.wc-b2b-members-list li.is-master {
    background: var(--b2b-accent-light);
    border-color: #BAE6FD;
}

.wc-b2b-members-list .member-name {
    font-weight: 600;
    color: var(--b2b-primary);
    font-size: 14px;
}

.wc-b2b-members-list .member-email {
    color: var(--b2b-text-muted);
    font-size: 13px;
}

.wc-b2b-members-list .master-badge {
    color: var(--b2b-accent);
    margin-left: 6px;
    font-size: 14px;
}

/* ============================================
   Mon Entreprise - Orders
   ============================================ */

.wc-b2b-company-orders .woocommerce-orders-table {
    margin-top: 0;
    border: none;
    border-collapse: separate;
    border-spacing: 0;
}

.wc-b2b-company-orders .woocommerce-orders-table thead th {
    background: var(--b2b-bg);
    color: var(--b2b-text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--b2b-border);
}

.wc-b2b-company-orders .woocommerce-orders-table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--b2b-border);
    font-size: 14px;
    color: var(--b2b-text);
}

.wc-b2b-company-orders .woocommerce-orders-table tbody tr:last-child td {
    border-bottom: none;
}

.wc-b2b-company-orders .woocommerce-orders-table tbody tr:hover td {
    background: var(--b2b-bg);
}

.wc-b2b-company-orders .woocommerce-orders-table a {
    color: var(--b2b-accent);
    font-weight: 600;
    text-decoration: none;
}

.wc-b2b-company-orders .woocommerce-orders-table a:hover {
    text-decoration: underline;
}

/* ============================================
   Mon Entreprise - Edit Form
   ============================================ */

.wc-b2b-company-edit {
    max-width: 600px;
}

.wc-b2b-company-edit h3 {
    margin: 0 0 24px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--b2b-primary);
}

.wc-b2b-company-form .form-row {
    margin-bottom: 16px;
}

.wc-b2b-company-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--b2b-secondary);
}

.wc-b2b-company-form .required {
    color: var(--b2b-danger);
}

.wc-b2b-company-form input[type="text"],
.wc-b2b-company-form input[type="url"],
.wc-b2b-company-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius-sm);
    font-size: 14px;
    color: var(--b2b-text);
    background: var(--b2b-bg-card);
    transition: border-color var(--b2b-transition), box-shadow var(--b2b-transition);
}

.wc-b2b-company-form input[type="text"]:focus,
.wc-b2b-company-form input[type="url"]:focus,
.wc-b2b-company-form select:focus {
    border-color: var(--b2b-accent);
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
    outline: none;
}

.wc-b2b-company-form .button {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--b2b-radius-sm);
    cursor: pointer;
    transition: all var(--b2b-transition);
    margin-right: 8px;
}

.wc-b2b-company-form .button:not(.alt) {
    background: var(--b2b-accent);
    color: #fff;
    border: 1px solid var(--b2b-accent);
}

.wc-b2b-company-form .button:not(.alt):hover {
    background: #025a8c;
}

.wc-b2b-company-form .button.alt {
    background: var(--b2b-bg);
    color: var(--b2b-secondary);
    border: 1px solid var(--b2b-border);
}

.wc-b2b-company-form .button.alt:hover {
    background: var(--b2b-border);
}

/* ============================================
   Mon Entreprise - Addresses
   ============================================ */

.wc-b2b-addresses-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wc-b2b-address-item {
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius-sm);
    overflow: hidden;
    background: var(--b2b-bg-card);
    transition: border-color var(--b2b-transition);
}

.wc-b2b-address-item:hover {
    border-color: #CBD5E1;
}

.wc-b2b-address-item.is-open {
    border-color: var(--b2b-accent);
    box-shadow: 0 0 0 1px rgba(3, 105, 161, 0.1);
}

.wc-b2b-address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--b2b-bg);
    cursor: pointer;
    user-select: none;
    transition: background var(--b2b-transition);
}

.wc-b2b-address-header:hover {
    background: #EFF6FF;
}

.wc-b2b-address-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--b2b-primary);
}

.wc-b2b-address-toggle {
    font-size: 12px;
    color: var(--b2b-text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.wc-b2b-address-item.is-open .wc-b2b-address-toggle {
    transform: rotate(180deg);
}

.wc-b2b-hq-badge,
.wc-b2b-default-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
}

.wc-b2b-hq-badge {
    background: var(--b2b-primary);
    color: #fff;
    font-size: 11px;
}

.wc-b2b-default-billing {
    background: var(--b2b-success-light);
    color: var(--b2b-success);
}

.wc-b2b-default-shipping {
    background: var(--b2b-accent-light);
    color: var(--b2b-accent);
}

.wc-b2b-address-content {
    display: none;
    padding: 16px;
    border-top: 1px solid var(--b2b-border);
}

.wc-b2b-address-item.is-open .wc-b2b-address-content {
    display: block;
}

.wc-b2b-address-details {
    line-height: 1.7;
    color: var(--b2b-secondary);
    font-size: 14px;
}

.wc-b2b-address-details strong {
    color: var(--b2b-text-muted);
    font-weight: 500;
}

.wc-b2b-address-actions {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--b2b-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wc-b2b-address-actions .button {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--b2b-radius-sm);
    border: 1px solid var(--b2b-border);
    background: var(--b2b-bg-card);
    color: var(--b2b-secondary);
    cursor: pointer;
    transition: all var(--b2b-transition);
    line-height: 1.4;
}

.wc-b2b-address-actions .button:hover {
    background: var(--b2b-accent);
    color: #fff;
    border-color: var(--b2b-accent);
}

.wc-b2b-delete-address-btn {
    color: var(--b2b-danger) !important;
    border-color: var(--b2b-danger) !important;
}

.wc-b2b-delete-address-btn:hover {
    background: var(--b2b-danger) !important;
    color: #fff !important;
}

/* ============================================
   Mon Entreprise - Invitations
   ============================================ */

.wc-b2b-invitation-form {
    padding: 20px !important;
    background: var(--b2b-bg) !important;
    border: 1px solid var(--b2b-border) !important;
    border-radius: var(--b2b-radius-sm) !important;
    margin-bottom: 20px !important;
}

.wc-b2b-invitation-form label {
    font-weight: 500;
    font-size: 14px;
    color: var(--b2b-secondary);
}

.wc-b2b-invitation-form .input-text,
.wc-b2b-invitation-form .input-select {
    padding: 10px 12px !important;
    border: 1px solid var(--b2b-border) !important;
    border-radius: var(--b2b-radius-sm) !important;
    font-size: 14px;
    transition: border-color var(--b2b-transition), box-shadow var(--b2b-transition);
}

.wc-b2b-invitation-form .input-text:focus,
.wc-b2b-invitation-form .input-select:focus {
    border-color: var(--b2b-accent) !important;
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
    outline: none;
}

.wc-b2b-invitation-limit {
    padding: 12px 16px !important;
    background: var(--b2b-warning-light) !important;
    border: 1px solid #FDE68A !important;
    border-radius: var(--b2b-radius-sm) !important;
    color: #92400E !important;
    font-size: 14px;
}

/* Invitations table */
.wc-b2b-invitations-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid var(--b2b-border);
    border-radius: var(--b2b-radius-sm);
    overflow: hidden;
}

.wc-b2b-invitations-table thead tr {
    background: var(--b2b-bg) !important;
}

.wc-b2b-invitations-table thead th {
    padding: 10px 12px !important;
    font-size: 12px;
    font-weight: 600;
    color: var(--b2b-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--b2b-border);
}

.wc-b2b-invitations-table tbody td {
    padding: 12px !important;
    border-bottom: 1px solid var(--b2b-border) !important;
    font-size: 14px;
    color: var(--b2b-text);
}

.wc-b2b-invitations-table tbody tr:last-child td {
    border-bottom: none !important;
}

.wc-b2b-invitations-table tbody tr:hover td {
    background: var(--b2b-bg);
}

.wc-b2b-invitations-table .button {
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid var(--b2b-border);
    background: var(--b2b-bg-card);
    border-radius: var(--b2b-radius-sm);
    cursor: pointer;
    transition: all var(--b2b-transition);
    line-height: 1.4;
}

.wc-b2b-invitations-table .wc-b2b-resend-invitation:hover {
    background: var(--b2b-accent);
    color: #fff;
    border-color: var(--b2b-accent);
}

.wc-b2b-invitations-table .wc-b2b-cancel-invitation:hover {
    background: var(--b2b-danger);
    color: #fff;
    border-color: var(--b2b-danger);
}

/* ============================================
   Mon Entreprise - Modal
   ============================================ */

.wc-b2b-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.5);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.wc-b2b-modal.open {
    display: flex;
}

.wc-b2b-modal-content {
    background: var(--b2b-bg-card, #fff);
    border-radius: 12px;
    max-width: 520px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 28px;
    position: relative;
}

.wc-b2b-modal-content h3 {
    margin: 0 0 20px 0;
    padding: 0 32px 16px 0;
    border-bottom: 1px solid var(--b2b-border, #E2E8F0);
    font-size: 16px;
    font-weight: 600;
    color: var(--b2b-primary, #0F172A);
}

.wc-b2b-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--b2b-bg, #F8FAFC);
    border: none;
    font-size: 18px;
    color: var(--b2b-text-muted, #64748B);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.wc-b2b-modal-close:hover {
    background: var(--b2b-danger-light, #FEF2F2);
    color: var(--b2b-danger, #DC2626);
}

.wc-b2b-modal-content form .form-row {
    margin-bottom: 14px;
}

.wc-b2b-modal-content form .form-row-first,
.wc-b2b-modal-content form .form-row-last {
    width: 48%;
    display: inline-block;
    vertical-align: top;
}

.wc-b2b-modal-content form .form-row-first {
    margin-right: 2%;
}

.wc-b2b-modal-content form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: var(--b2b-secondary, #334155);
}

.wc-b2b-modal-content form .input-text,
.wc-b2b-modal-content form .input-select,
.wc-b2b-modal-content form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--b2b-border, #E2E8F0);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    color: var(--b2b-text, #020617);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wc-b2b-modal-content form .input-text:focus,
.wc-b2b-modal-content form .input-select:focus,
.wc-b2b-modal-content form textarea:focus {
    border-color: var(--b2b-accent, #0369A1);
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
    outline: none;
}

.wc-b2b-modal-content .form-row-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--b2b-text-muted, #64748B);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px !important;
    padding-top: 8px;
    border-top: 1px solid var(--b2b-border, #E2E8F0);
}

.wc-b2b-modal-content .button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px;
}

/* ============================================
   Mon Entreprise - Version Footer
   ============================================ */

.wc-b2b-version {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--b2b-border, #E2E8F0);
    text-align: right;
}

.wc-b2b-version small {
    color: var(--b2b-text-muted, #64748B);
    font-size: 11px;
}

/* ============================================
   Mon Entreprise - Responsive
   ============================================ */

@media screen and (max-width: 768px) {
    .wc-b2b-company-section {
        padding: 16px;
    }

    .wc-b2b-company-details th,
    .wc-b2b-company-details td {
        display: block;
        width: 100%;
        padding: 4px 0;
    }

    .wc-b2b-company-details th {
        padding-top: 10px;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .wc-b2b-company-details td {
        padding-bottom: 10px;
        border-bottom: 1px solid var(--b2b-border);
    }

    .wc-b2b-company-details tr:last-child td {
        border-bottom: none;
    }

    .wc-b2b-members-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .wc-b2b-address-actions {
        flex-wrap: wrap;
    }

    .wc-b2b-modal-content {
        width: 95%;
        padding: 20px;
        border-radius: 10px;
    }

    .wc-b2b-modal-content form .form-row-first,
    .wc-b2b-modal-content form .form-row-last {
        width: 100%;
        display: block;
        margin-right: 0;
    }

    .wc-b2b-company-edit {
        max-width: 100%;
    }

    .wc-b2b-invitations-table {
        font-size: 13px;
    }

    .wc-b2b-invitations-table th,
    .wc-b2b-invitations-table td {
        padding: 8px 6px !important;
    }
}

/* ============================================
   v1.6.0 - Default Address Badges
   ============================================ */


/* ============================================
   v4.0.9.rev2 - My Account Orders Page
   ============================================ */

/* Orders table — card wrapper */
.woocommerce-MyAccount-content .woocommerce-orders-table.my_account_orders {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    width: 100%;
    margin-bottom: 24px;
}

/* Header */
.woocommerce-MyAccount-content .woocommerce-orders-table.my_account_orders thead th,
.woocommerce-MyAccount-content .woocommerce-orders-table.my_account_orders thead td {
    background: #F8FAFC;
    color: #64748B;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 12px 16px;
    border-bottom: 1px solid #E2E8F0;
    border-top: none;
    white-space: nowrap;
}

/* Rows */
.woocommerce-MyAccount-content .woocommerce-orders-table.my_account_orders tbody td {
    padding: 16px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 14px;
    color: #334155;
    vertical-align: middle;
    transition: background 0.15s ease;
}

.woocommerce-MyAccount-content .woocommerce-orders-table.my_account_orders tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce-MyAccount-content .woocommerce-orders-table.my_account_orders tbody tr:hover td {
    background: #F8FAFC;
}

/* Order number link */
.woocommerce-orders-table__cell-order-number a {
    color: #0369A1 !important;
    font-weight: 600;
    text-decoration: none !important;
}

.woocommerce-orders-table__cell-order-number a:hover {
    color: #0F172A !important;
    text-decoration: underline !important;
}

/* Date */
.woocommerce-orders-table__cell-order-date {
    color: #64748B !important;
    font-size: 13px !important;
}

/* Total */
.woocommerce-orders-table__cell-order-total {
    font-weight: 600 !important;
    color: #0F172A !important;
}

/* Status cell — base */
.woocommerce-orders-table__cell-order-status {
    font-size: 13px !important;
    font-weight: 500;
}

/* Status dot indicator */
.woocommerce-orders-table__cell-order-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    background: #94A3B8;
}

/* Status colors by order status */
.woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status { color: #059669; }
.woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status::before { background: #059669; }

.woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status { color: #0369A1; }
.woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status::before { background: #0369A1; }

.woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status { color: #D97706; }
.woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status::before { background: #D97706; }

.woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status { color: #64748B; }
.woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status::before { background: #94A3B8; }

.woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status { color: #DC2626; }
.woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status::before { background: #DC2626; }

.woocommerce-orders-table__row--status-refunded .woocommerce-orders-table__cell-order-status { color: #7C3AED; }
.woocommerce-orders-table__row--status-refunded .woocommerce-orders-table__cell-order-status::before { background: #7C3AED; }

.woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status { color: #DC2626; }
.woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status::before { background: #DC2626; }

/* B2B custom statuses */
.woocommerce-orders-table__row--status-quote-request .woocommerce-orders-table__cell-order-status { color: #4F46E5; }
.woocommerce-orders-table__row--status-quote-request .woocommerce-orders-table__cell-order-status::before { background: #4F46E5; }

.woocommerce-orders-table__row--status-quote-sent .woocommerce-orders-table__cell-order-status { color: #0284C7; }
.woocommerce-orders-table__row--status-quote-sent .woocommerce-orders-table__cell-order-status::before { background: #0284C7; }

.woocommerce-orders-table__row--status-quote-approved .woocommerce-orders-table__cell-order-status { color: #059669; }
.woocommerce-orders-table__row--status-quote-approved .woocommerce-orders-table__cell-order-status::before { background: #059669; }

.woocommerce-orders-table__row--status-quote-modified .woocommerce-orders-table__cell-order-status { color: #D97706; }
.woocommerce-orders-table__row--status-quote-modified .woocommerce-orders-table__cell-order-status::before { background: #D97706; }

.woocommerce-orders-table__row--status-deposit-paid .woocommerce-orders-table__cell-order-status { color: #0D9488; }
.woocommerce-orders-table__row--status-deposit-paid .woocommerce-orders-table__cell-order-status::before { background: #0D9488; }

.woocommerce-orders-table__row--status-pending-balance .woocommerce-orders-table__cell-order-status { color: #EA580C; }
.woocommerce-orders-table__row--status-pending-balance .woocommerce-orders-table__cell-order-status::before { background: #EA580C; }

/* Action buttons */
.woocommerce-orders-table__cell-order-actions .woocommerce-button,
.woocommerce-orders-table__cell-order-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 500;
    border-radius: 6px !important;
    border: 1px solid #E2E8F0 !important;
    background: #fff !important;
    color: #334155 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
    margin: 2px;
}

.woocommerce-orders-table__cell-order-actions .woocommerce-button:hover,
.woocommerce-orders-table__cell-order-actions .button:hover {
    background: #0369A1 !important;
    color: #fff !important;
    border-color: #0369A1 !important;
}

/* Pay Now CTA button — prominent green button for quote-approved orders */
.woocommerce-orders-table__cell-order-actions .b2b-pay-now-btn,
.woocommerce-orders-table__cell-order-actions a.b2b-pay-now-btn {
    background: #2e7d32 !important;
    color: #fff !important;
    border-color: #2e7d32 !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.35) !important;
    animation: b2b-pulse 2s infinite;
}

.woocommerce-orders-table__cell-order-actions .b2b-pay-now-btn:hover,
.woocommerce-orders-table__cell-order-actions a.b2b-pay-now-btn:hover {
    background: #1b5e20 !important;
    border-color: #1b5e20 !important;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.45) !important;
    transform: translateY(-1px);
}

@keyframes b2b-pulse {
    0%, 100% { box-shadow: 0 2px 6px rgba(46, 125, 50, 0.35); }
    50%       { box-shadow: 0 2px 14px rgba(46, 125, 50, 0.6); }
}

/* Status label tweak for quote-approved — make it clearly actionable */
.woocommerce-orders-table__row--status-quote-approved .woocommerce-orders-table__cell-order-status::after {
    content: ' — Action requise';
    font-size: 10px;
    font-weight: 600;
    color: #2e7d32;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.woocommerce-pagination,
.woocommerce-Pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
}

.woocommerce-pagination .page-numbers,
.woocommerce-Pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.woocommerce-pagination .page-numbers:hover,
.woocommerce-Pagination .page-numbers:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.woocommerce-pagination .page-numbers.current,
.woocommerce-Pagination .page-numbers.current {
    background: #0F172A;
    color: #fff;
    border-color: #0F172A;
}

.woocommerce-pagination .page-numbers.prev,
.woocommerce-pagination .page-numbers.next,
.woocommerce-Pagination .page-numbers.prev,
.woocommerce-Pagination .page-numbers.next {
    font-size: 18px;
    color: #64748B;
}

/* No orders info box */
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 4px solid #0369A1;
    border-radius: 8px;
    padding: 16px 20px;
    color: #334155;
    font-size: 14px;
    margin-bottom: 20px;
}

.woocommerce-MyAccount-content .woocommerce-message::before,
.woocommerce-MyAccount-content .woocommerce-info::before {
    color: #0369A1;
}

/* Orders responsive */
@media screen and (max-width: 768px) {
    .woocommerce-MyAccount-content .woocommerce-orders-table.my_account_orders {
        border-radius: 8px;
    }

    .woocommerce-MyAccount-content .woocommerce-orders-table.my_account_orders thead {
        display: none;
    }

    .woocommerce-MyAccount-content .woocommerce-orders-table.my_account_orders tbody tr {
        display: block;
        padding: 16px;
        border-bottom: 1px solid #E2E8F0;
        position: relative;
    }

    .woocommerce-MyAccount-content .woocommerce-orders-table.my_account_orders tbody tr:last-child {
        border-bottom: none;
    }

    .woocommerce-MyAccount-content .woocommerce-orders-table.my_account_orders tbody td {
        display: block;
        padding: 4px 0;
        border-bottom: none;
        text-align: left !important;
    }

    .woocommerce-MyAccount-content .woocommerce-orders-table.my_account_orders tbody td::before {
        content: attr(data-title) ": ";
        font-weight: 600;
        color: #64748B;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: block;
        margin-bottom: 2px;
    }

    .woocommerce-MyAccount-content .woocommerce-orders-table.my_account_orders tbody td:first-child {
        padding-top: 0;
    }

    .woocommerce-orders-table__cell-order-actions {
        padding-top: 12px !important;
        margin-top: 8px;
        border-top: 1px solid #F1F5F9;
    }

    .woocommerce-orders-table__cell-order-actions::before {
        display: none !important;
    }
}


/* ============================================
   v1.6.0 - Checkout Address Selector
   ============================================ */

.wc-b2b-checkout-address-selector {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1.5em;
    margin-bottom: 2em;
}

.wc-b2b-checkout-address-selector h4 {
    margin: 0 0 1em 0;
    padding: 0;
    font-size: 1.1em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.wc-b2b-checkout-address-selector h4:before {
    content: "\1F3E2";
    font-size: 1.2em;
}

.wc-b2b-address-select {
    width: 100%;
    padding: 0.75em 1em;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.wc-b2b-address-select:focus {
    border-color: #333;
    outline: none;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}

/* Address Preview */
.wc-b2b-address-preview {
    margin-top: 1em;
    padding: 1em;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    border-left: 4px solid #27ae60;
}

.wc-b2b-preview-content {
    line-height: 1.6;
    color: #333;
}

.wc-b2b-preview-content strong {
    color: #222;
}

.wc-b2b-preview-content em {
    color: #666;
    font-style: italic;
}

/* Address Hint */
.wc-b2b-address-hint {
    margin-top: 0.75em;
    margin-bottom: 0;
}

.wc-b2b-address-hint small {
    color: #666;
    font-style: italic;
}

/* Readonly fields when address selected */
.wc-b2b-readonly {
    background-color: #f5f5f5 !important;
    cursor: not-allowed !important;
}

/* ============================================
   v1.6.0 - Modal Textarea
   ============================================ */

.wc-b2b-modal-body textarea,
#wc-b2b-address-form textarea {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #ddd;
    border-radius: 3px;
    resize: vertical;
    min-height: 80px;
}

.wc-b2b-modal-body textarea:focus,
#wc-b2b-address-form textarea:focus {
    border-color: #333;
    outline: none;
}

/* ============================================
   v1.6.0 - Responsive Checkout
   ============================================ */

@media screen and (max-width: 768px) {
    .wc-b2b-checkout-address-selector {
        padding: 1em;
    }

    .wc-b2b-checkout-address-selector h4 {
        font-size: 1em;
    }

    .wc-b2b-address-select {
        font-size: 0.9em;
        padding: 0.6em 0.8em;
    }

    /* Modal responsive */
    .wc-b2b-modal-content {
        width: 95%;
        padding: 1em;
        max-height: 85vh;
    }

    .wc-b2b-modal-content form .form-row-first,
    .wc-b2b-modal-content form .form-row-last {
        width: 100%;
        display: block;
        margin-right: 0;
    }
}

/* ============================================
   v1.6.1 - Cart Address Selector
   ============================================ */

.wc-b2b-cart-address-selector {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5em;
    margin-bottom: 1.5em;
}

.wc-b2b-cart-address-selector h3 {
    margin: 0 0 0.5em 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.wc-b2b-cart-address-selector h3::before {
    content: "\1F3E2 ";
    margin-right: 0.3em;
}

.wc-b2b-cart-address-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 1em;
}

.wc-b2b-cart-address-selector .form-row {
    margin-bottom: 1em;
}

.wc-b2b-cart-address-selector label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 500;
    color: #555;
}

.wc-b2b-cart-address-selector .wc-b2b-address-select {
    width: 100%;
    padding: 0.9em 1em;
    border: 2px solid #3498db;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wc-b2b-cart-address-selector .wc-b2b-address-select:hover {
    border-color: #2980b9;
}

.wc-b2b-cart-address-selector .wc-b2b-address-select:focus {
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.wc-b2b-cart-address-selector .wc-b2b-address-preview {
    background: #fff;
    border-left: 4px solid #27ae60;
    padding: 1em;
    margin-top: 1em;
    border-radius: 0 4px 4px 0;
}

.wc-b2b-cart-address-notice {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 0.8em 1em;
    border-radius: 4px;
    margin-top: 1em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.wc-b2b-cart-address-notice .wc-b2b-success-icon {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2em;
}

@media screen and (max-width: 768px) {
    .wc-b2b-cart-address-selector {
        padding: 1em;
    }

    .wc-b2b-cart-address-selector h3 {
        font-size: 1em;
    }

    .wc-b2b-cart-address-selector .wc-b2b-address-select {
        font-size: 0.9em;
        padding: 0.6em 0.8em;
    }
}

/* ============================================
   v4.0.9.rev2 - My Account Menu Icons (SVG)
   ============================================ */

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--mon-entreprise a::before,
.woocommerce-MyAccount-navigation-link--mon-entreprise a::before {
    content: "" !important;
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.5em;
    vertical-align: -0.15em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23334155'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--actualites a::before,
.woocommerce-MyAccount-navigation-link--actualites a::before {
    content: "" !important;
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.5em;
    vertical-align: -0.15em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23334155'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10.34 15.84c-.688-.06-1.386-.09-2.09-.09H7.5a4.5 4.5 0 1 1 0-9h.75c.704 0 1.402-.03 2.09-.09m0 9.18c.253.962.584 1.892.985 2.783.247.55.06 1.21-.463 1.511l-.657.38c-.551.318-1.26.117-1.527-.461a20.845 20.845 0 0 1-1.44-4.282m3.102.069a18.03 18.03 0 0 1-.59-4.59c0-1.586.205-3.124.59-4.59m0 9.18a23.848 23.848 0 0 1 8.835 2.535M10.34 6.66a23.847 23.847 0 0 0 8.835-2.535m0 0A23.74 23.74 0 0 0 18.795 3m.38 1.125a23.91 23.91 0 0 1 1.014 5.395m-1.014 8.855c-.118.38-.245.754-.38 1.125m.38-1.125a23.91 23.91 0 0 0 1.014-5.395m0-3.46c.495.413.811 1.035.811 1.73 0 .695-.316 1.317-.811 1.73m0-3.46a24.347 24.347 0 0 1 0 3.46'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--bons-oniri a::before,
.woocommerce-MyAccount-navigation-link--bons-oniri a::before {
    content: "" !important;
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.5em;
    vertical-align: -0.15em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23334155'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M16.5 6v.75m0 3v.75m0 3v.75m0 3V18m-9-5.25h5.25M7.5 15h3M3.375 5.25c-.621 0-1.125.504-1.125 1.125v3.026a2.999 2.999 0 0 1 0 5.198v3.026c0 .621.504 1.125 1.125 1.125h17.25c.621 0 1.125-.504 1.125-1.125v-3.026a2.999 2.999 0 0 1 0-5.198V6.375c0-.621-.504-1.125-1.125-1.125H3.375Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ============================================
   v3.2.0 - Remises Oniri (Discounts) Page
   ============================================ */

.wc-b2b-vouchers-page {
    max-width: 100%;
}

.wc-b2b-vouchers-header {
    margin-bottom: 1.2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #e5e5e5;
}

.wc-b2b-vouchers-header h2 {
    margin: 0 0 0.3em;
    font-size: 1.5em;
}

.wc-b2b-vouchers-subtitle {
    color: #666;
    margin: 0;
    font-size: 0.95em;
}

.wc-b2b-vouchers-disclaimer {
    background: #fef9e7;
    border-left: 3px solid #f0c36d;
    padding: 0.8em 1em;
    margin-top: 1em;
    font-size: 0.85em;
    color: #666;
    line-height: 1.5;
}

.wc-b2b-vouchers-disclaimer p {
    margin: 0;
}

.wc-b2b-vouchers-empty {
    color: #666;
    font-style: italic;
    padding: 2em 0;
}

/* Product Section — Card tile */
.wc-b2b-voucher-product-section,
.woocommerce-MyAccount-content .wc-b2b-voucher-product-section {
    background: #fafafa !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px;
    padding: 1.5em !important;
    margin-bottom: 2em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wc-b2b-voucher-product-section:last-child {
    margin-bottom: 0;
}

/* Product Header: image + info */
.wc-b2b-voucher-product-header {
    display: flex;
    align-items: center;
    gap: 1.2em;
    margin-bottom: 1.5em;
    padding-bottom: 1em;
    border-bottom: 2px solid #e5e5e5;
}

.wc-b2b-voucher-product-image img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.wc-b2b-voucher-product-info h3 {
    margin: 0 0 0.3em;
    font-size: 1.15em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.wc-b2b-voucher-product-summary {
    color: #444;
    font-size: 0.95em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em 1em;
}

/* Status badges */
.wc-b2b-voucher-status-badge {
    display: inline-block;
    padding: 0.2em 0.7em;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
}

.wc-b2b-voucher-status-badge.status-available {
    background: #d4edda;
    color: #155724;
}

.wc-b2b-voucher-status-badge.status-partial {
    background: #fff3cd;
    color: #856404;
}

.wc-b2b-voucher-status-badge.status-pending {
    background: #e2e3e5;
    color: #383d41;
}

.wc-b2b-voucher-status-badge.status-used {
    background: #d1ecf1;
    color: #0c5460;
}

.wc-b2b-voucher-status-badge.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

/* v3.5.0 - Section titles */
.wc-b2b-voucher-section-title {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555;
    margin-bottom: 0.6em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid #ddd;
}

.wc-b2b-voucher-origin .wc-b2b-voucher-section-title {
    color: #666;
    border-bottom-color: #d0d0d0;
}

.wc-b2b-voucher-orders .wc-b2b-voucher-section-title {
    color: #856404;
    border-bottom-color: #f0c36d;
}

.wc-b2b-voucher-available .wc-b2b-voucher-section-title {
    color: #155724;
    border-bottom-color: #6bbd6b;
}

/* Section A: Bon d'origine */
.wc-b2b-voucher-origin,
.woocommerce-MyAccount-content .wc-b2b-voucher-origin {
    background: #f8f9fa !important;
    border-left: 4px solid #aaa !important;
    padding: 1em 1.2em !important;
    margin-bottom: 1em !important;
    border-radius: 0 4px 4px 0;
}

.wc-b2b-voucher-origin-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em 1em;
    padding: 0.5em 0;
    font-size: 0.9em;
}

.wc-b2b-voucher-origin-row + .wc-b2b-voucher-origin-row {
    border-top: 1px solid #e8e8e8;
    margin-top: 0.3em;
    padding-top: 0.6em;
}

.wc-b2b-voucher-origin-row .origin-order {
    font-weight: 600;
    color: #333;
}

.wc-b2b-voucher-origin-row .origin-qty {
    color: #555;
}

.wc-b2b-voucher-origin-row .origin-deposit,
.wc-b2b-voucher-origin-row .origin-discount {
    color: #666;
}

/* Section B: Commandes en cours */
.wc-b2b-voucher-orders,
.woocommerce-MyAccount-content .wc-b2b-voucher-orders {
    background: #fdf6e3 !important;
    border-left: 4px solid #e6a817 !important;
    padding: 1em 1.2em !important;
    margin-bottom: 1em !important;
    border-radius: 0 4px 4px 0;
}

.wc-b2b-voucher-order-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4em 1em;
    padding: 0.5em 0.4em;
    font-size: 0.9em;
    color: #333;
    text-decoration: none;
    transition: background 0.15s;
    border-radius: 3px;
    margin: 0.2em -0.4em;
}

.wc-b2b-voucher-order-row:hover {
    background: rgba(240, 195, 109, 0.15);
    color: #333;
}

.wc-b2b-voucher-order-row .order-ref {
    font-weight: 600;
}

.wc-b2b-voucher-order-row .order-date {
    color: #666;
    font-size: 0.9em;
}

.wc-b2b-voucher-order-row .order-qty {
    color: #555;
}

.wc-b2b-voucher-order-row .order-total {
    font-weight: 500;
}

.wc-b2b-voucher-order-row .order-status {
    font-style: italic;
    color: #856404;
    font-size: 0.9em;
}

/* Section C: Disponible */
.wc-b2b-voucher-available,
.woocommerce-MyAccount-content .wc-b2b-voucher-available {
    background: #e8f5e9 !important;
    border-left: 4px solid #28a745 !important;
    padding: 1em 1.2em !important;
    border-radius: 0 4px 4px 0;
}

.wc-b2b-voucher-available-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3em 1em;
    margin-bottom: 0.6em;
    font-size: 0.9em;
}

.wc-b2b-voucher-available-summary .available-qty {
    color: #155724;
}

.wc-b2b-voucher-available-summary .available-discount {
    color: #333;
}

.wc-b2b-voucher-available-summary .available-note {
    color: #856404;
    font-style: italic;
    font-size: 0.9em;
}

.wc-b2b-voucher-available-summary .available-expiry {
    color: #856404;
    font-size: 0.85em;
    font-weight: 500;
    padding: 2px 8px;
    background: rgba(230, 168, 23, 0.12);
    border-radius: 3px;
}

.wc-b2b-voucher-quote-btn {
    background: #7f54b3 !important;
    color: #fff !important;
    border-color: #7f54b3 !important;
    padding: 0.6em 1.5em !important;
    cursor: pointer !important;
    opacity: 1;
    font-weight: 600;
    font-size: 0.95em;
    transition: background 0.2s, border-color 0.2s;
}

.wc-b2b-voucher-quote-btn:hover {
    background: #6b3fa0 !important;
    border-color: #6b3fa0 !important;
}

.wc-b2b-voucher-quote-btn:disabled {
    opacity: 0.7;
    cursor: wait !important;
}

.wc-b2b-voucher-status-note {
    color: #999;
    font-style: italic;
    font-size: 0.85em;
}

.wc-b2b-voucher-available .wc-b2b-voucher-status-note {
    color: #856404;
    background: #fff8e1;
    padding: 0.5em 0.8em;
    border-radius: 4px;
    font-size: 0.88em;
    display: inline-block;
    margin-top: 0.3em;
}

/* v3.5.0 - Voucher qty conversion controls */
.wc-b2b-voucher-convert-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6em;
}

.wc-b2b-voucher-qty-label {
    font-weight: 500;
    font-size: 0.9em;
    color: #555;
    white-space: nowrap;
}

.wc-b2b-voucher-qty-input {
    width: 70px !important;
    max-width: 70px !important;
    text-align: center;
    padding: 0.4em 0.3em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
    transition: border-color 0.2s;
}

.wc-b2b-voucher-qty-input:focus {
    border-color: #7f54b3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(127, 84, 179, 0.15);
}

.wc-b2b-voucher-remaining-preview {
    font-style: italic;
    color: #666;
    font-size: 0.85em;
}

/* Responsive */
@media (max-width: 600px) {
    .wc-b2b-voucher-product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8em;
    }

    .wc-b2b-voucher-product-image img {
        width: 60px;
        height: 60px;
    }

    .wc-b2b-voucher-product-info h3 {
        font-size: 1em;
    }

    .wc-b2b-voucher-origin-row,
    .wc-b2b-voucher-order-row {
        font-size: 0.85em;
    }

    .wc-b2b-voucher-convert-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   v3.5.0 - Quote Page: Cancel Button Override
   ============================================ */

.woocommerce-MyAccount-content .order-actions .button.cancel,
.woocommerce-MyAccount-content a.button.cancel,
.woocommerce-MyAccount-content .woocommerce-order-details a.button.cancel,
.woocommerce a.button.cancel,
.woocommerce td.order-actions a.button.cancel {
    background: transparent !important;
    color: #dc3545 !important;
    border: 1px solid #dc3545 !important;
    border-radius: 4px !important;
    padding: 0.5em 1.5em !important;
    font-weight: 500 !important;
    font-size: 0.9em !important;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-content .order-actions .button.cancel:hover,
.woocommerce-MyAccount-content a.button.cancel:hover,
.woocommerce-MyAccount-content .woocommerce-order-details a.button.cancel:hover,
.woocommerce a.button.cancel:hover,
.woocommerce td.order-actions a.button.cancel:hover {
    background: #dc3545 !important;
    color: #fff !important;
}

/* ============================================
   Section D: Solde restant (coupon)
   ============================================ */

.wc-b2b-voucher-balance {
    background: #f3e8ff;
    border-left: 4px solid #7c3aed;
    border-radius: 6px;
    padding: 14px 18px;
    margin-top: 12px;
}

.wc-b2b-voucher-balance .wc-b2b-voucher-section-title {
    color: #7c3aed;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.wc-b2b-voucher-balance .balance-amount {
    font-size: 1.4em;
    font-weight: 700;
    color: #5b21b6;
    margin-bottom: 6px;
}

.wc-b2b-voucher-balance .balance-code {
    font-size: 0.92em;
    color: #374151;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wc-b2b-voucher-balance .balance-code strong {
    font-family: monospace;
    background: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid #d1d5db;
}

.wc-b2b-voucher-balance .balance-copy-btn {
    background: #7c3aed;
    color: #fff;
    border: none;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
    transition: background 0.2s;
}

.wc-b2b-voucher-balance .balance-copy-btn:hover {
    background: #5b21b6;
}

.wc-b2b-voucher-balance .balance-expiry {
    font-size: 0.85em;
    color: #6b7280;
    margin-bottom: 4px;
}

.wc-b2b-voucher-balance .balance-info {
    font-size: 0.82em;
    color: #6b7280;
    font-style: italic;
}
