/* ════════════════════════════════════════════════════════════════════
   naiss-cart-gift.css — Naissantiel Panier Mode Cadeau
   Périmètre : panier uniquement, en mode cadeau (body.naiss-gift-mode)
   Chargé sur : is_cart() uniquement
   Tous les sélecteurs scopés sous body.naiss-gift-mode sauf exceptions.
   ════════════════════════════════════════════════════════════════════ */

/* ── État "Déjà dans le panier cadeau" ── */

   ÉTAT "DÉJÀ DANS LE PANIER CADEAU" — fiche produit mode invité
   ═══════════════════════════════════════════════════════════════════════════ */

.naiss-gift-already-in-cart {
    margin: 0 0 16px;
    padding: 14px 16px;
    background: #EEF6EE;
    border: 1.5px solid #A3B9A2;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.naiss-gift-already-in-cart__label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3d6b3c;
}

.naiss-gift-already-in-cart__cta {
    display: block;
    text-align: center;
    background: #A27864;
    color: #FAFAF8;
    border-color: #A27864;
}

.naiss-gift-already-in-cart__cta:hover,
.naiss-gift-already-in-cart__cta:focus-visible {
    background: #8f6654;
    border-color: #8f6654;
    color: #FAFAF8;
}


/* ═══════════════════════════════════════════════════════════════════════════
   SPRINT 1.5 — ENCART CADEAU PANIER / CHECKOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.naiss-gift-notice {
    background: #FDF4F3;
    border: 1.5px solid #F4D7D6;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.naiss-gift-notice__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #A27864;
    margin: 0 0 6px;
}

.naiss-gift-notice__list {
    font-size: 0.88rem;
    color: #59473D;
    margin: 0 0 4px;
    line-height: 1.5;
}

.naiss-gift-notice__delivery {
    font-size: 0.84rem;
    color: #59473D;
    opacity: 0.75;
    margin: 0;
    font-style: italic;
}

.naiss-gift-notice--checkout {
    border-color: #A3B9A2;
    background: #F3F8F3;
}

.naiss-gift-notice--checkout .naiss-gift-notice__title {
    color: #7A9A79;
}


/* ═══════════════════════════════════════════════════════════════════════════
   SPRINT 1.5 — CHOIX DE LIVRAISON
   ═══════════════════════════════════════════════════════════════════════════ */

.naiss-delivery-choice {
    margin: 20px 0 28px;
    padding: 20px;
    background: #F6F3EF;
    border: 1px solid #e8e2dc;
    border-radius: 12px;
}

.naiss-delivery-choice__legend {
    font-size: 0.9rem;
    font-weight: 700;
    color: #59473D;
    margin-bottom: 14px;
    display: block;
    padding: 0;
    border: none;
    width: 100%;
}

.naiss-delivery-choice__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.naiss-delivery-choice__option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #FAFAF8;
    border: 1.5px solid #e8e2dc;
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}

.naiss-delivery-choice__option:hover {
    border-color: #A3B9A2;
}

.naiss-delivery-choice__option--selected {
    border-color: #A3B9A2;
    background: #F3F8F3;
}

.naiss-delivery-choice__radio {
    margin-top: 3px;
    accent-color: #A3B9A2;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.naiss-delivery-choice__label-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.naiss-delivery-choice__label-text strong {
    font-size: 0.9rem;
    color: #59473D;
}

.naiss-delivery-choice__hint {
    font-size: 0.8rem;
    color: #59473D;
    opacity: 0.65;
    line-height: 1.4;
}

.naiss-delivery-choice__recommended {
    font-size: 0.72rem;
    font-weight: 600;
    color: #A3B9A2;
    background: #E8F3E8;
    border-radius: 20px;
    padding: 2px 8px;
    align-self: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.naiss-delivery-choice__submit {
    margin-top: 6px;
    align-self: flex-start;
}

/* Responsive */
@media (max-width: 480px) {
    .naiss-share-block__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .naiss-delivery-choice__option {
        flex-wrap: wrap;
    }

    .naiss-delivery-choice__recommended {
        margin-top: 4px;
    }

    .naiss-delivery-choice__submit {
        width: 100%;
    }
}

/* ============================================================
   Sprint A — CTA "Continuer à choisir dans la liste"
   Scopé  : body.naiss-gift-mode
   Chargé : is_cart() uniquement
   ============================================================ */

body.naiss-gift-mode .naiss-gift-cart-continue {
    margin-top: 1rem;
    padding: 1rem 1.25rem 1.25rem;
    border-radius: 16px;
    background: #fffaf7;
    border: 1px solid rgba(162, 120, 100, 0.15);
    text-align: center;
}

body.naiss-gift-mode .naiss-gift-cart-continue__button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    border: 1.5px solid #a3b9a2;
    background: transparent;
    color: #59473d;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
    line-height: 1.3;
}

body.naiss-gift-mode .naiss-gift-cart-continue__button:hover,
body.naiss-gift-mode .naiss-gift-cart-continue__button:focus {
    background-color: #a3b9a2;
    color: #fafaf8;
    text-decoration: none;
    outline: none;
}

body.naiss-gift-mode .naiss-gift-cart-continue__button:focus-visible {
    outline: 2px solid #a3b9a2;
    outline-offset: 2px;
}

body.naiss-gift-mode .naiss-gift-cart-continue__hint {
    margin: 0.625rem 0 0;
    font-size: 0.8125rem;
    color: #59473d;
    opacity: 0.7;
    line-height: 1.45;
}

/* Wallet/gift empty cart return button — ensure readable text */
.naiss-empty-gift-cart-return__button,
.naiss-empty-gift-cart-return__button:visited,
.naiss-empty-gift-cart-return__button:hover,
.naiss-empty-gift-cart-return__button:focus {
    color: #ffffff !important;
}
