/* ── Date process note in modal ────────────────────── */
.czenPayDateNote {
    font-size: 11px;
    color: #888;
    background: #faf8f4;
    border-left: 2px solid #b8924a;
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    margin: 8px 0 4px;
    line-height: 1.5;
}

/* ── Field hint text ───────────────────────────────── */
.czenField__hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.55;
    color: #888;
    padding: 8px 12px;
    background: #faf8f4;
    border-radius: 6px;
    border-left: 2px solid #b8924a;
}

/* ── Gift Toggle Switch ───────────────────────────── */
.czenGiftToggle {
    margin: 12px 0 4px;
}

.czenGiftSwitch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    font-weight: 500;
    color: #1e1b16;
}

.czenGiftSwitch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.czenGiftSwitch__slider {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    background: #ddd;
    border-radius: 26px;
    transition: background .25s, box-shadow .25s;
    flex-shrink: 0;
}

.czenGiftSwitch__slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    transition: transform .25s;
}

.czenGiftSwitch input:checked + .czenGiftSwitch__slider {
    background: #b8924a;
    box-shadow: 0 0 0 3px rgba(184,146,74,.18);
}

.czenGiftSwitch input:checked + .czenGiftSwitch__slider::after {
    transform: translateX(22px);
}

.czenGiftSwitch__label {
    font-weight: 600;
}

/* ── Gift Fields Container ────────────────────────── */
.czenGiftFields {
    border: 2px solid #b8924a;
    border-radius: 12px;
    padding: 20px;
    margin: 12px 0 16px;
    background: linear-gradient(135deg, rgba(184,146,74,.04), rgba(184,146,74,.08));
    animation: czenFadeIn .3s ease;
}

@keyframes czenFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.czenGiftFields__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(184,146,74,.20);
}

.czenGiftFields__icon {
    font-size: 24px;
}

.czenGiftFields__title {
    font-size: 15px;
    font-weight: 700;
    color: #1e1b16;
    letter-spacing: -.2px;
}

.czenGiftFields .czenField {
    margin-bottom: 12px;
}

.czenGiftFields textarea {
    resize: vertical;
    min-height: 72px;
    font-family: inherit;
}

.czenGiftFields__note {
    font-size: 12px;
    color: #888;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,.6);
    border-radius: 8px;
    line-height: 1.6;
}

/* ── Gift badge in payment modal ──────────────────── */
.czenPayMeta__gift {
    margin: 12px 0;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(184,146,74,.08), rgba(184,146,74,.14));
    border: 1px solid rgba(184,146,74,.25);
    border-radius: 10px;
    font-size: 13px;
    color: #444;
    line-height: 1.65;
}

.czenPayMeta__giftBadge {
    display: inline-block;
    padding: 4px 14px;
    background: #b8924a;
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 8px;
}

/* ── Voucher Button ───────────────────────────────── */
.czenVoucherBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #b8924a 0%, #d4af6e 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(184,146,74,.30);
    letter-spacing: .3px;
}

.czenVoucherBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(184,146,74,.40);
}

.czenVoucherBtn:active {
    transform: translateY(0);
}

/* ── Voucher Overlay ──────────────────────────────── */
.czenVoucherOverlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,.7);
    display: flex;
    flex-direction: column;
    animation: czenFadeIn .25s ease;
}

.czenVoucherOverlay__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #1e1b16;
    color: #fff;
    flex-shrink: 0;
}

.czenVoucherOverlay__close {
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.czenVoucherOverlay__close:hover {
    background: rgba(255,255,255,.25);
}

.czenVoucherOverlay__title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
}

.czenVoucherOverlay__print {
    padding: 8px 18px;
    background: #b8924a;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.czenVoucherOverlay__print:hover {
    background: #d4af6e;
}

.czenVoucherOverlay__content {
    flex: 1;
    overflow: auto;
    background: #f5f3ee;
    display: flex;
    justify-content: center;
    padding: 24px;
}

.czenVoucherOverlay__iframe {
    border: none;
    width: 100%;
    max-width: 720px;
    min-height: 800px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

@media (max-width: 640px) {
    .czenVoucherOverlay__content {
        padding: 8px;
    }
    .czenVoucherOverlay__iframe {
        border-radius: 8px;
    }
}

/* ═══════════════════════════════════════════════════════
   MODALE DE PAIEMENT — styles restaurés (v6.02.3)
   Appendée sur <body> : échappe aux stacking contexts
   Elementor (backdrop-filter, transform, etc.)
   ═══════════════════════════════════════════════════════ */
.czenPayModal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: czenFadeIn .25s ease;
}

.czenPayModal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 17, 12, .72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.czenPayModal__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fffdf9;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
    -webkit-overflow-scrolling: touch;
}

.czenPayModal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(30, 27, 22, .06);
    color: #1e1b16;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.czenPayModal__close:hover { background: rgba(30, 27, 22, .14); }

.czenPayModal__inner { padding: 28px 26px 22px; }

.czenPayModal__pretitle {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #b8924a;
}

.czenPayModal__h {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.25;
    color: #1e1b16;
}

.czenPayModal__p {
    margin: 0 0 18px;
    font-size: 14px;
    color: #6f6a60;
}

/* ── Boutons de paiement ── */
.czenPayRow {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.czenPayBtn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #b8924a, #d4af6e);
    color: #fff;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 4px 16px rgba(184, 146, 74, .30);
    transition: transform .15s, box-shadow .15s, opacity .15s;
}

.czenPayBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(184, 146, 74, .40);
}

.czenPayBtn:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}

.czenPayBtn__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.czenPayBtn__icon { font-size: 22px; }

.czenPayBtn__left strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
}

.czenPayBtn__left small {
    display: block;
    font-size: 12px;
    opacity: .85;
}

.czenPayBtn__right {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

/* ── PayPal ── */
.czenPaypalWrap {
    min-height: 48px;
    border-radius: 12px;
}

.czenPaypalLoading,
.czenPaypalError {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    color: #6f6a60;
    background: #f5f3ee;
    border-radius: 12px;
}

.czenPaypalError { color: #a04040; background: #fbf0f0; }

/* ── Récap ── */
.czenPayMeta {
    padding: 14px 16px;
    background: #f5f3ee;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.7;
    color: #3d382f;
    margin-bottom: 12px;
}

.czenPayActions { text-align: center; margin: 4px 0 8px; }

.czenPayGhost {
    background: none;
    border: none;
    color: #8a8478;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 6px 10px;
}

.czenPayGhost:hover { color: #1e1b16; }

.czenPayFine {
    margin: 0;
    font-size: 11.5px;
    color: #9a948a;
    text-align: center;
    line-height: 1.5;
}

/* ── Erreur formulaire ── */
.czenFormError {
    margin-top: 12px;
    padding: 12px 14px;
    background: #fbf0f0;
    border-left: 3px solid #a04040;
    border-radius: 8px;
    color: #a04040;
    font-size: 13.5px;
}

/* ── Messages retour paiement ── */
.czenMsg {
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 18px;
    animation: czenFadeIn .3s ease;
}

.czenMsg--ok {
    background: #eef7ee;
    border-left: 3px solid #4a9a5c;
    color: #235c32;
}

.czenMsg--warn {
    background: #fdf6ea;
    border-left: 3px solid #d0a13c;
    color: #6e5619;
}

@media (max-width: 640px) {
    .czenPayModal { padding: 0; align-items: flex-end; }
    .czenPayModal__card {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
    }
    .czenPayModal__inner { padding: 24px 18px 18px; }
}

/* ── Erreur dans la modale de paiement (v6.02.4) ──── */
.czenPayError {
    margin: 0 0 14px;
    padding: 12px 14px;
    background: #fbf0f0;
    border-left: 3px solid #a04040;
    border-radius: 8px;
    color: #a04040;
    font-size: 13.5px;
    line-height: 1.5;
    animation: czenFadeIn .2s ease;
}
