.pei-promo-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    font-family: inherit;
}

.pei-promo-popup.is-visible {
    display: flex;
}

.pei-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.pei-popup-dialog {
    position: relative;
    width: min(92vw, 560px);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 40px 70px -30px rgba(15, 23, 42, 0.45);
    overflow: hidden;
    text-align: center;
    transform: translateY(20px);
    animation: pei-popup-slide 0.35s ease forwards;
}

@keyframes pei-popup-slide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pei-popup-image {
    display: block;
    width: 100%;
    height: auto;
}

.pei-popup-actions {
    padding: 20px 24px 28px;
    display: flex;
    justify-content: center;
}

.pei-popup-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow: 0 16px 30px -20px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pei-popup-cta:hover,
.pei-popup-cta:focus {
    transform: translateY(-2px);
    background: #000000;
    box-shadow: 0 18px 32px -20px rgba(0, 0, 0, 0.6);
    color: #ffffff;
}

.pei-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 16px;
    height: 42px;
    border-radius: 50%;
    border: none;
    font-size: 26px;
    line-height: 1;
    background: rgba(15, 23, 42, 0.5);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px !important;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.pei-popup-close:hover,
.pei-popup-close:focus {
    transform: scale(1.08);
    background: rgba(15, 23, 42, 0.75);
}

.pei-popup-close.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    .pei-popup-dialog {
        background: #0f172a;
        box-shadow: 0 35px 70px -30px rgba(15, 23, 42, 0.85);
    }

    .pei-popup-cta {
        background: #111111;
    }

    .pei-popup-close {
        background: rgba(226, 232, 240, 0.3);
        color: #0f172a;
    }

    .pei-popup-close:hover,
    .pei-popup-close:focus {
        background: rgba(226, 232, 240, 0.6);
    }
}

@media (max-width: 568px) {
    .pei-popup-dialog {
        width: min(92vw, 360px);
        border-radius: 18px;
    }

    .pei-popup-actions {
        padding: 18px 18px 24px;
    }

    .pei-popup-cta {
        width: 100%;
        padding-inline: 0;
    }
}

@media (min-width: 1024px) {
    .pei-popup-dialog {
        width: min(70vw, 640px);
    }

    .pei-popup-cta {
        font-size: 1.05rem;
        padding: 14px 36px;
    }
}

