.olegtix-popup-banner {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: flex;
    align-items: center;
    justify-content: center;
}

html.olegtix-popup-banner-open,
html.olegtix-popup-banner-open body {
    overflow: hidden;
}

.olegtix-popup-banner[hidden] {
    display: none;
}

.olegtix-popup-banner__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.olegtix-popup-banner__inner {
    position: relative;
    width: clamp(280px, 60vw, 400px);
    max-width: 90vw;
    max-height: 90vh;
    aspect-ratio: 2 / 3;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
}

@media (orientation: landscape) and (max-height: 600px) {
    .olegtix-popup-banner__inner {
        width: auto;
        height: 85vh;
    }
}

.olegtix-popup-banner__link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.olegtix-popup-banner__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.olegtix-popup-banner__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    border: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, background 0.15s ease;
}

.olegtix-popup-banner__close:hover,
.olegtix-popup-banner__close:focus-visible {
    transform: scale(1.08);
    background: #f5f5f5;
    outline: none;
}

@media (max-width: 480px) {
    .olegtix-popup-banner__inner {
        width: clamp(240px, 82vw, 360px);
    }
    .olegtix-popup-banner__close {
        top: -12px;
        right: -12px;
        width: 40px;
        height: 40px;
    }
}
