/**
 * Subscription Page + Swap/Cancel Modals - Nutriforce
 * Chargé uniquement sur la page view-subscription
 */

/* ========================================
   MY ACCOUNT - NAVIGATION
   ======================================== */

/* Layout global */
.nf-account-layout {
    gap: 32px;
}

/* Sidebar navigation */
.woocommerce-MyAccount-navigation {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    padding: 0;
}

/* User greeting */
.woocommerce-MyAccount-navigation .ast-wooaccount-user-wrapper {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce-MyAccount-navigation .ast-wooaccount-user-wrapper img.avatar {
    border-radius: 50%;
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0;
}

.woocommerce-MyAccount-navigation .ast-username {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.woocommerce-MyAccount-navigation .ast-username strong {
    color: #0c0c0d;
    font-weight: 700;
}

/* Nav list */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: #f9fafb;
    color: #0c0c0d;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: rgba(39, 127, 63, 0.04);
    color: #277f3f;
    border-left-color: #277f3f;
    font-weight: 600;
}

.woocommerce-MyAccount-navigation ul li a .ahfb-svg-iconset {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.woocommerce-MyAccount-navigation ul li a .ahfb-svg-iconset svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.woocommerce-MyAccount-navigation ul li a .ast-woo-nav-link-name {
    white-space: nowrap;
}

/* Logout link */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #999;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
    padding-top: 14px;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    color: #ef4444;
}

/* ========================================
   MY ACCOUNT - NAVIGATION MOBILE
   ======================================== */

@media (max-width: 921px) {
    .woocommerce-account .ast-container,
    .woocommerce-account .ast-container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .nf-account-layout {
        flex-direction: column;
        gap: 16px;
    }

    .woocommerce-MyAccount-navigation {
        border-radius: 12px;
        padding: 0;
        width: 100% !important;
    }

    /* Compact user greeting on mobile */
    .woocommerce-MyAccount-navigation .ast-wooaccount-user-wrapper {
        padding: 14px 16px;
        gap: 10px;
    }

    .woocommerce-MyAccount-navigation .ast-wooaccount-user-wrapper img.avatar {
        width: 36px !important;
        height: 36px !important;
    }

    .woocommerce-MyAccount-navigation .ast-username {
        font-size: 13px;
    }

    /* Grille 2 colonnes */
    .woocommerce-MyAccount-navigation ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 10px 12px 12px;
        gap: 6px;
    }

    .woocommerce-MyAccount-navigation ul li {
        display: flex;
    }

    .woocommerce-MyAccount-navigation ul li a {
        padding: 10px 12px;
        border-radius: 10px;
        border-left: none;
        gap: 8px;
        font-size: 12.5px;
        background: #f5f5f5;
        flex: 1;
    }

    .woocommerce-MyAccount-navigation ul li a .ast-woo-nav-link-name {
        white-space: normal;
        line-height: 1.3;
    }

    .woocommerce-MyAccount-navigation ul li a:hover {
        background: #eee;
    }

    .woocommerce-MyAccount-navigation ul li.is-active a {
        background: #277f3f;
        color: #fff;
        border-left: none;
    }

    .woocommerce-MyAccount-navigation ul li.is-active a .ahfb-svg-iconset svg {
        fill: #fff;
    }

    .woocommerce-MyAccount-navigation ul li a .ahfb-svg-iconset {
        width: 15px;
        height: 15px;
    }

    .woocommerce-MyAccount-navigation ul li a .ahfb-svg-iconset svg {
        width: 15px;
        height: 15px;
    }

    /* Logout : pleine largeur en dernière ligne */
    .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
        grid-column: 1 / -1;
    }

    .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
        border-top: none;
        margin-top: 0;
        background: transparent;
        color: #aaa;
        justify-content: center;
        font-size: 12px;
    }

    .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
        color: #ef4444;
        background: #fef2f2;
    }
}

/* ========================================
   PAGE ABONNEMENT - DÉTAILS
   ======================================== */

/* Tableau des détails de l'abonnement */
.woocommerce-MyAccount-content .subscription_details {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
    margin-bottom: 28px;
}

.woocommerce-MyAccount-content .subscription_details tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

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

.woocommerce-MyAccount-content .subscription_details td {
    padding: 14px 20px;
    font-size: 14px;
    color: #555;
    border: none;
    vertical-align: middle;
}

.woocommerce-MyAccount-content .subscription_details td:first-child {
    font-weight: 600;
    color: #0c0c0d;
    white-space: nowrap;
    width: 180px;
}

/* Boutons d'actions dans le tableau */
.woocommerce-MyAccount-content .subscription_details .woocommerce-button.button {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    margin: 3px 4px 3px 0;
}

.woocommerce-MyAccount-content .subscription_details .button.cancel {
    background: #fff;
    color: #ef4444;
    border: 1px solid #fca5a5;
}

.woocommerce-MyAccount-content .subscription_details .button.cancel:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

.woocommerce-MyAccount-content .subscription_details .button.swap_products {
    background: #277f3f;
    color: #fff;
}

.woocommerce-MyAccount-content .subscription_details .button.swap_products:hover {
    background: #23533a;
    color: #fff;
}

.woocommerce-MyAccount-content .subscription_details .button.subscription_renewal_early {
    background: #0c0c0d;
    color: #fff;
}

.woocommerce-MyAccount-content .subscription_details .button.subscription_renewal_early:hover {
    background: #222;
    color: #fff;
}

/* ========================================
   PAGE ABONNEMENT - TOTAUX
   ======================================== */

.woocommerce-MyAccount-content > h2 {
    font-size: 17px;
    font-weight: 700;
    color: #0c0c0d;
    margin: 28px 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #277f3f;
    display: inline-block;
}

.woocommerce-MyAccount-content .order_details {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
    margin-bottom: 28px;
}

.woocommerce-MyAccount-content .order_details thead {
    background: #f9fafb;
}

.woocommerce-MyAccount-content .order_details thead th {
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    border: none;
}

.woocommerce-MyAccount-content .order_details tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

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

.woocommerce-MyAccount-content .order_details tbody td {
    padding: 14px 20px;
    font-size: 14px;
    color: #333;
    border: none;
    vertical-align: middle;
}

.woocommerce-MyAccount-content .order_details tbody td.product-name a {
    color: #0c0c0d;
    font-weight: 600;
    text-decoration: none;
}

.woocommerce-MyAccount-content .order_details tbody td.product-name a:hover {
    color: #277f3f;
}

.woocommerce-MyAccount-content .order_details tbody .product-quantity {
    color: #888;
    font-weight: 500;
}

.woocommerce-MyAccount-content .order_details tfoot tr {
    border-top: 1px solid #f0f0f0;
}

.woocommerce-MyAccount-content .order_details tfoot th,
.woocommerce-MyAccount-content .order_details tfoot td {
    padding: 12px 20px;
    font-size: 14px;
    border: none;
}

.woocommerce-MyAccount-content .order_details tfoot th {
    font-weight: 600;
    color: #0c0c0d;
}

/* ========================================
   PAGE ABONNEMENT - ADRESSE
   ======================================== */

.woocommerce-MyAccount-content .woocommerce-customer-details {
    margin-top: 28px;
}

.woocommerce-MyAccount-content .woocommerce-column__title {
    font-size: 17px;
    font-weight: 700;
    color: #0c0c0d;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #277f3f;
    display: inline-block;
}

.woocommerce-MyAccount-content .woocommerce-customer-details address {
    padding: 18px 20px;
    background: #f9fafb;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    font-style: normal;
}

.woocommerce-MyAccount-content .woocommerce-customer-details--phone,
.woocommerce-MyAccount-content .woocommerce-customer-details--email {
    margin: 6px 0 0 0;
    color: #555;
}

/* ========================================
   PAGE ABONNEMENT - MODALE EARLY RENEWAL WCS
   ======================================== */

.woocommerce-MyAccount-content .wcs-modal {
    display: none;
}

/* ========================================
   PAGE ABONNEMENT - RESPONSIVE MOBILE
   ======================================== */

@media (max-width: 600px) {
    .woocommerce-MyAccount-content .subscription_details td:first-child {
        width: auto;
        display: block;
        padding: 12px 16px 0;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        color: #888;
    }

    .woocommerce-MyAccount-content .subscription_details td:last-child {
        display: block;
        padding: 4px 16px 12px;
    }

    .woocommerce-MyAccount-content .subscription_details .woocommerce-button.button {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 4px 0;
        padding: 10px 18px;
    }

    .woocommerce-MyAccount-content .order_details thead th,
    .woocommerce-MyAccount-content .order_details tbody td,
    .woocommerce-MyAccount-content .order_details tfoot th,
    .woocommerce-MyAccount-content .order_details tfoot td {
        padding: 10px 14px;
        font-size: 13px;
    }

    .woocommerce-MyAccount-content .woocommerce-customer-details address {
        padding: 14px 16px;
        font-size: 13px;
    }

    .woocommerce-MyAccount-content > h2,
    .woocommerce-MyAccount-content .woocommerce-column__title {
        font-size: 15px;
    }
}

/* ========================================
   BOUTON DÉCLENCHEUR
   ======================================== */

.nf-swap-trigger {
    margin: 20px 0;
}

.nf-swap-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0c0c0d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nf-swap-btn:hover {
    background: #222;
}

.nf-swap-btn svg {
    flex-shrink: 0;
}

/* ========================================
   OVERLAY
   ======================================== */

.nf-swap-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* ========================================
   MODAL
   ======================================== */

.nf-swap-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 785px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Header */
.nf-swap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 2px solid #277f3f;
    flex-shrink: 0;
}

.nf-swap-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0c0c0d;
}

.nf-swap-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.nf-swap-close:hover {
    background: #f5f5f5;
    color: #0c0c0d;
}

/* Body */
.nf-swap-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

/* Loading */
.nf-swap-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: #888;
}

.nf-swap-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e5e5;
    border-top-color: #277f3f;
    border-radius: 50%;
    animation: nf-spin 0.7s linear infinite;
    margin-bottom: 12px;
}

@keyframes nf-spin {
    to { transform: rotate(360deg); }
}

.nf-swap-loading p {
    margin: 0;
    font-size: 14px;
}

/* ========================================
   NOTICE ENGAGEMENT
   ======================================== */

.nf-swap-engaged-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

.nf-swap-engaged-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #f59e0b;
}

/* ========================================
   SECTIONS
   ======================================== */

.nf-swap-section {
    margin-bottom: 24px;
}

.nf-swap-section:last-child {
    margin-bottom: 0;
}

.nf-swap-section h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0c0c0d;
    margin: 0 0 12px 0;
}

/* ========================================
   ITEM CARD (produit actuel ou disponible)
   ======================================== */

.nf-swap-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: opacity 0.2s, border-color 0.2s;
}

.nf-swap-item:last-child {
    margin-bottom: 0;
}

.nf-swap-item--marked-remove {
    opacity: 0.4;
    border-color: #fca5a5;
    background: #fef2f2;
}

.nf-swap-item--marked-remove .nf-swap-item-name {
    text-decoration: line-through;
}

.nf-swap-item--added {
    border-color: rgba(39, 127, 63, 0.3);
    background: rgba(39, 127, 63, 0.03);
}

/* Image */
.nf-swap-item-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Info */
.nf-swap-item-info {
    flex: 1;
    min-width: 0;
}

.nf-swap-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #0c0c0d;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nf-swap-item-price {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.nf-swap-item-price strong {
    color: #0c0c0d;
}

.nf-swap-item-discount {
    font-size: 11px;
    color: #277f3f;
    font-weight: 600;
}

/* Quantité */
.nf-swap-qty {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.nf-swap-qty button {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    font-size: 16px;
    font-weight: 600;
    color: #0c0c0d;
    cursor: pointer;
    transition: background 0.15s;
}

.nf-swap-qty button:first-child {
    border-radius: 6px 0 0 6px;
}

.nf-swap-qty button:last-child {
    border-radius: 0 6px 6px 0;
}

.nf-swap-qty button:hover {
    background: #e5e5e5;
}

.nf-swap-qty-value {
    width: 28px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    border-left: none;
    border-right: none;
    font-size: 13px;
    font-weight: 600;
    color: #0c0c0d;
    background: #fff;
}

/* Bouton action */
.nf-swap-item-action {
    flex-shrink: 0;
}

.nf-swap-remove-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #ef4444;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.15s, border-color 0.15s;
}

.nf-swap-remove-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.nf-swap-undo-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #277f3f;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s;
}

.nf-swap-undo-btn:hover {
    background: rgba(39, 127, 63, 0.05);
    border-color: rgba(39, 127, 63, 0.3);
}

.nf-swap-add-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #277f3f;
    transition: color 0.15s, transform 0.15s;
}

.nf-swap-add-btn:hover {
    transform: scale(1.1);
}

.nf-swap-add-btn svg {
    width: 28px;
    height: 28px;
}

/* ========================================
   RECHERCHE
   ======================================== */

.nf-swap-search {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    color: #0c0c0d;
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.nf-swap-search:focus {
    border-color: #277f3f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 127, 63, 0.08);
}

/* ========================================
   FOOTER
   ======================================== */

.nf-swap-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    background: #f9f9f9;
    flex-shrink: 0;
}

.nf-swap-price-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.nf-swap-price-summary strong {
    color: #0c0c0d;
    font-size: 16px;
}

.nf-swap-arrow {
    color: #ccc;
}

/* Erreur */
.nf-swap-error {
    text-align: center;
    padding: 8px 12px;
    margin-bottom: 10px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    color: #991b1b;
    font-size: 13px;
}

/* Bouton valider */
.nf-swap-btn-validate {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.nf-swap-btn-validate:not(:disabled) {
    background: #277f3f;
    color: #fff;
}

.nf-swap-btn-validate:not(:disabled):hover {
    background: #23533a;
}

.nf-swap-btn-validate:disabled {
    background: #e5e5e5;
    color: #999;
    cursor: not-allowed;
}

.nf-swap-btn-validate--loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ========================================
   EMPTY STATE
   ======================================== */

.nf-swap-empty {
    text-align: center;
    padding: 24px;
    color: #888;
    font-size: 13px;
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 600px) {
    .nf-swap-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .nf-swap-modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 14px 14px 0 0;
    }

    .nf-swap-header {
        padding: 14px 16px;
    }

    .nf-swap-body {
        padding: 16px;
    }

    .nf-swap-footer {
        padding: 14px 16px;
    }

    .nf-swap-item {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
    }

    .nf-swap-item-img {
        width: 40px;
        height: 40px;
    }

    /* Le nom prend toute la largeur restante à côté de l'image */
    .nf-swap-item-info {
        flex: 1;
        min-width: calc(100% - 56px);
    }

    .nf-swap-item-name {
        font-size: 13px;
        white-space: normal;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Quantité + bouton action sur la ligne suivante, alignés à droite */
    .nf-swap-qty {
        margin-left: auto;
    }

    .nf-swap-price-summary {
        font-size: 13px;
        gap: 6px;
    }

    .nf-swap-price-summary strong {
        font-size: 14px;
    }
}

/* ========================================
   MODAL ANNULATION
   ======================================== */

.nf-cancel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.nf-cancel-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.nf-cancel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 2px solid #277f3f;
}

.nf-cancel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0c0c0d;
}

.nf-cancel-body {
    padding: 28px 24px;
}

/* Icon */
.nf-cancel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.nf-cancel-icon--engaged {
    background: rgba(39, 127, 63, 0.08);
    color: #277f3f;
}

.nf-cancel-icon--warning {
    background: rgba(39, 127, 63, 0.08);
    color: #277f3f;
}

/* Texte */
.nf-cancel-engaged h4,
.nf-cancel-confirm h4 {
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #0c0c0d;
    margin: 0 0 10px 0;
}

.nf-cancel-engaged p,
.nf-cancel-confirm p {
    text-align: center;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.nf-cancel-hint {
    font-size: 13px !important;
    color: #277f3f !important;
    font-style: italic;
}

/* Boutons */
.nf-cancel-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}

.nf-cancel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}

.nf-cancel-btn--contact {
    background: none;
    color: #888;
    font-weight: 500;
    font-size: 13px;
    padding: 8px 16px;
}

.nf-cancel-btn--contact:hover {
    background: #f5f5f5;
    color: #555;
}

.nf-cancel-btn--close,
.nf-cancel-btn--keep {
    background: #f5f5f5;
    color: #0c0c0d;
}

.nf-cancel-btn--close:hover,
.nf-cancel-btn--keep:hover {
    background: #e5e5e5;
}

.nf-cancel-btn--swap {
    background: #277f3f;
    color: #fff;
}

.nf-cancel-btn--swap:hover {
    background: #23533a;
}

.nf-cancel-btn--confirm {
    background: none;
    color: #ef4444;
    font-weight: 500;
    font-size: 13px;
    padding: 8px 16px;
}

.nf-cancel-btn--confirm:hover {
    background: #fef2f2;
}

.nf-cancel-btn--loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 600px) {
    .nf-cancel-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .nf-cancel-modal {
        max-width: 100%;
        border-radius: 14px 14px 0 0;
    }

    .nf-cancel-body {
        padding: 24px 16px 32px;
    }
}

