/* =============================================================
   First-visit coupon popup
   ============================================================= */

/* ── Overlay ── */

.wplt-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(23, 19, 22, .65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.32s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.wplt-popup-overlay.is-open {
    opacity: 1;
}

.wplt-popup-overlay[hidden] {
    display: none;
}

/* ── Modal card ── */

.wplt-popup {
    position: relative;
    background: var(--pc-surface);
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .15);
    transform: scale(0.92) translateY(10px);
    transition: transform 0.38s cubic-bezier(0.34, 1.46, 0.64, 1);
}

.wplt-popup-overlay.is-open .wplt-popup {
    transform: scale(1) translateY(0);
}

/* ── Close button ── */

.wplt-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, .2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 0;
    transition: background 0.2s;
}

.wplt-popup__close:hover {
    background: rgba(255, 255, 255, .35);
}

.wplt-popup__close svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ── Header band ── */

.wplt-popup__header {
    background: linear-gradient(135deg, var(--pc-primary) 0%, #7b1a48 100%);
    padding: 32px 28px 28px;
    text-align: center;
}

.wplt-popup__eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .75);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.wplt-popup__title {
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ── Body ── */

.wplt-popup__body {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
}

.wplt-popup__offer {
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 800;
    color: var(--pc-primary);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.wplt-popup__sub {
    font-size: 14px;
    color: var(--pc-text-muted);
    margin: 0 0 22px;
}

/* ── Code box + copy button ── */

.wplt-popup__code-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--pc-accent-soft);
    border: 2px dashed var(--pc-primary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 22px;
    width: 100%;
    max-width: 320px;
}

.wplt-popup__code {
    flex: 1;
    font-size: 22px;
    font-weight: 800;
    color: var(--pc-primary);
    letter-spacing: 0.12em;
    padding: 12px 16px;
    font-family: 'Courier New', Courier, monospace;
    user-select: all;
}

.wplt-popup__copy {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--pc-primary);
    color: #fff;
    border: none;
    padding: 0 16px;
    height: 100%;
    min-height: 52px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.wplt-popup__copy svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.wplt-popup__copy:hover {
    background: var(--pc-primary-hover);
}

.wplt-popup__copy.is-copied {
    background: var(--pc-success);
}

/* ── Shop Now button ── */

.wplt-popup__shop-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    background: var(--pc-primary);
    color: #fff;
    text-align: center;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 16px rgba(74, 22, 53, .28);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 14px;
}

.wplt-popup__shop-btn:hover,
.wplt-popup__shop-btn:focus-visible {
    background: var(--pc-primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 22, 53, .36);
}

/* ── Dismiss text link ── */

.wplt-popup__dismiss {
    background: none;
    border: none;
    font-size: 12.5px;
    color: var(--pc-text-muted);
    cursor: pointer;
    padding: 4px 8px;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.wplt-popup__dismiss:hover {
    color: var(--pc-text);
}

/* ── Mobile adjustments ── */

@media (max-width: 480px) {
    .wplt-popup-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .wplt-popup {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        transform: translateY(20px);
    }

    .wplt-popup-overlay.is-open .wplt-popup {
        transform: translateY(0);
    }

    .wplt-popup__header {
        padding: 26px 20px 22px;
    }

    .wplt-popup__body {
        padding: 22px 20px 20px;
    }
}
