.pb-popup-banner {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}

.pb-popup-banner--visible {
    opacity: 1;
}

.pb-popup-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    cursor: pointer;
}

.pb-popup-banner__box {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 900px);
    max-height: 90vh;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
    transform: translateY(20px);
    transition: transform .3s ease;
}

.pb-popup-banner--visible .pb-popup-banner__box {
    transform: translateY(0);
}

.pb-popup-banner__content img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
}

.pb-popup-banner__content a {
    display: block;
    line-height: 0;
}

.pb-popup-banner__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;

    /* Жёсткий квадрат */
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;

    /* Круг */
    border: none;
    border-radius: 50%;

    /* Идеальное центрирование SVG */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;          /* убирает влияние line-height темы */

    /* Вид */
    background: rgba(0, 0, 0, .55);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
    -webkit-appearance: none;
    appearance: none;
}

/* SVG внутри — строго по центру */
.pb-popup-banner__close svg {
    display: block;
    width: 16px;
    height: 16px;
    pointer-events: none;
    flex: 0 0 auto;
}

.pb-popup-banner__close:hover,
.pb-popup-banner__close:focus {
    background: rgba(0, 0, 0, .8);
    outline: none;
}

.pb-popup-banner__close:active {
    transform: scale(.94);
}

@media (max-width: 600px) {
    .pb-popup-banner__close {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        top: 8px;
        right: 8px;
    }
    .pb-popup-banner__close svg {
        width: 14px;
        height: 14px;
    }
}

.pb-popup-banner__close:hover,
.pb-popup-banner__close:focus {
    background: rgba(0, 0, 0, .8);
    outline: none;
}

.pb-popup-banner__close:active {
    transform: scale(.94);
}

/* Мобильные */
@media (max-width: 600px) {
    .pb-popup-banner__close {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        font-size: 18px;
        top: 8px;
        right: 8px;
    }
}

.pb-popup-banner__close:hover {
    background: rgba(0, 0, 0, .8);
}

body.pb-popup-banner-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .pb-popup-banner__box {
        max-width: 92vw;
        border-radius: 8px;
    }
    .pb-popup-banner__close {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}