:root {
    --wppp-bg: #f2efec;
    --wppp-surface: #f5f2ef;
    --wppp-text-dark: #24363a;
    --wppp-alert: #c7372d;
    --wppp-price: #f06f2b;
    --wppp-btn-start: #ff6a2f;
    --wppp-btn-end: #ff8b30;
    --wppp-shadow: 0 26px 46px rgba(11, 26, 30, 0.28);
}

.wppp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 24, 29, 0.52);
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease;
    z-index: 99998;
}

.wppp-overlay--active.wppp-overlay-visible {
    opacity: 1;
    pointer-events: auto;
}

.wppp-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%);
    width: clamp(320px, 90vw, 440px);
    max-height: min(88vh, 760px);
    overflow: hidden;
    background:
        radial-gradient(180px 90px at 14% -3%, rgba(255, 255, 255, 0.8), transparent 70%),
        radial-gradient(220px 110px at 84% 0%, rgba(255, 255, 255, 0.58), transparent 70%),
        linear-gradient(180deg, #f6f2ef 0%, #f0ece9 100%);
    border-radius: 16px;
    box-shadow: var(--wppp-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 260ms ease, transform 260ms ease, visibility 260ms ease;
    z-index: 99999;
}

.wppp-popup.wppp-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.wppp-logo-wrap {
    padding-top: 14px;
    text-align: center;
}

.wppp-logo {
    display: inline-block;
    max-width: 132px;
    width: 100%;
    height: auto;
}

.wppp-alert {
    margin: 7px 0 10px;
    text-align: center;
    color: var(--wppp-alert);
    font-size: clamp(20px, 3.8vw, 34px);
    font-weight: 800;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wppp-hero-wrap {
    margin: 0;
    width: 100%;
    overflow: hidden;
}

.wppp-hero {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.wppp-content {
    padding: 14px 20px 16px;
    text-align: center;
}

.wppp-title {
    margin: 0;
    color: var(--wppp-text-dark);
    font-size: clamp(17px, 3vw, 30px);
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wppp-date {
    margin: 8px 0 0;
    color: #2d3f42;
    font-size: clamp(14px, 2.4vw, 24px);
    line-height: 1.25;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wppp-price {
    margin: 8px 0 0;
    color: var(--wppp-price);
    font-size: clamp(16px, 2.9vw, 27px);
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wppp-btn {
    margin-top: 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 174px;
    min-height: 50px;
    border-radius: 11px;
    padding: 11px 24px;
    background: linear-gradient(180deg, var(--wppp-btn-start) 0%, var(--wppp-btn-end) 100%);
    color: #fff;
    font-size: clamp(18px, 2.8vw, 30px);
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 16px rgba(240, 103, 41, 0.32);
    transition: filter 180ms ease, transform 180ms ease;
    white-space: nowrap;
}

.wppp-btn:hover,
.wppp-btn:focus {
    color: #fff;
    filter: brightness(1.03);
    transform: translateY(-1px);
    text-decoration: none;
}

.wppp-theme-modern {
    border-radius: 22px;
    background:
        radial-gradient(220px 130px at 10% -6%, rgba(255, 255, 255, 0.95), transparent 68%),
        linear-gradient(165deg, #fff6ed 0%, #f5efe8 100%);
}

.wppp-theme-modern .wppp-btn {
    border-radius: 999px;
    background: linear-gradient(100deg, #ff5f3a 0%, #ff9540 100%);
}

.wppp-theme-clean {
    border-radius: 18px;
    background: #f6f4f2;
    box-shadow: 0 18px 40px rgba(18, 38, 45, 0.22);
}

.wppp-theme-clean .wppp-alert {
    color: #c55230;
}

.wppp-theme-clean .wppp-btn {
    background: linear-gradient(180deg, #ff7738 0%, #ff9d41 100%);
    box-shadow: 0 8px 14px rgba(227, 122, 64, 0.3);
}

@media (max-width: 520px) {
    .wppp-popup {
        width: min(94vw, 408px);
        border-radius: 14px;
        max-height: min(86vh, 690px);
    }

    .wppp-content {
        padding: 12px 12px 14px;
    }

    .wppp-logo {
        max-width: 98px;
    }

    .wppp-alert,
    .wppp-title,
    .wppp-date,
    .wppp-price {
        max-width: 100%;
    }

    .wppp-title {
        font-size: clamp(16px, 4.2vw, 22px);
    }

    .wppp-date {
        font-size: clamp(13px, 3.4vw, 18px);
    }

    .wppp-price {
        font-size: clamp(15px, 3.8vw, 21px);
    }

    .wppp-btn {
        min-width: 160px;
        min-height: 46px;
        font-size: clamp(16px, 4vw, 22px);
    }
}

@media (min-width: 521px) and (max-width: 860px) {
    .wppp-popup {
        width: min(86vw, 430px);
        border-radius: 15px;
    }

    .wppp-logo {
        max-width: 112px;
    }

    .wppp-title {
        font-size: clamp(17px, 3.2vw, 26px);
    }

    .wppp-date {
        font-size: clamp(14px, 2.5vw, 20px);
    }

    .wppp-price {
        font-size: clamp(16px, 2.8vw, 23px);
    }
}
