.etp-popup {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;
}

.etp-popup.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.etp-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(2px);
}

.etp-popup__dialog {
    position: relative;
    width: min(92vw, 640px);
    max-height: min(90vh, 820px);
    overflow: auto;
    background: linear-gradient(170deg, #ffffff 0%, #f7fbff 100%);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    margin: 0;
    animation: etp-popup-in 0.28s ease;
    border: 1px solid #dde6ef;
    z-index: 1;
}

.etp-popup.is-open.is-closing .etp-popup__dialog {
    animation: etp-popup-out 0.22s ease forwards;
}

.etp-popup.is-open.is-closing .etp-popup__overlay {
    animation: etp-overlay-out 0.22s ease forwards;
}

.etp-popup__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px 16px 0 0;
}

.etp-popup__body {
    padding: 30px;
}

.etp-popup__title {
    margin: 0 0 20px;
}

.etp-popup__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.etp-popup__cta,
.etp-popup-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    background: #0b5fff;
    color: #ffffff;
    font-weight: 700;
}

.etp-popup-cta--close {
    display: flex;
    margin: 22px auto 0;
    text-align: center;
}

.etp-popup__close {
    position: absolute;
    top: 0;
    right: 0;
    border: 0;
    background-color: transparent;
    color: #000;
    padding: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.etp-popup__close-icon {
    width: 28px;
    height: 28px;
    display: block;
}

@keyframes etp-popup-in {
    from {
        transform: translateY(14px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes etp-popup-out {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(10px) scale(0.98);
        opacity: 0;
    }
}

@keyframes etp-overlay-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .etp-popup.is-open {
        padding: 14px;
    }

    .etp-popup__dialog {
        border-radius: 14px;
    }

    .etp-popup__body {
        padding: 16px;
    }
}
