/* ── 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;
    }
}
