.etx-promo[hidden] {
    display: none;
}

.etx-promo {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.etx-promo__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
}

.etx-promo__dialog {
    position: relative;
    max-width: min(640px, 100%);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.etx-promo__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.etx-promo__close:hover,
.etx-promo__close:focus-visible {
    background: #000;
    outline: none;
}

.etx-promo__title {
    margin: 0;
    padding: 18px 48px 14px 20px;
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
    color: #111827;
}

.etx-promo__link {
    display: block;
    line-height: 0;
}

.etx-promo__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 12px;
}

.etx-promo__title + .etx-promo__image,
.etx-promo__title + .etx-promo__link .etx-promo__image {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

html.etx-promo-open,
html.etx-promo-open body {
    overflow: hidden;
}

@media (max-width: 480px) {
    .etx-promo__close {
        top: -12px;
        right: -6px;
    }
}
