/* Popup banners — single-screen overlay. Lower `order` = higher priority. */

.popup-banners {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: 1rem;
    overflow: hidden;
}

.popup-banners[hidden] {
    display: none !important;
}

.popup-banners__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.popup-banners__panel {
    position: relative;
    width: auto;
    max-width: min(560px, 94vw);
    background: transparent;
}

.popup-banners__top {
    position: relative;
    z-index: 1;
    width: min(560px, 94vw);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem;
}

.popup-banners__bottom {
    position: relative;
    z-index: 1;
    width: min(560px, 94vw);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.popup-banners__titleline {
    color: #fff;
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.popup-banners__count {
    color: #fff;
    font-size: .9rem;
    letter-spacing: .15em;
}

.popup-banners__close-all {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: .95rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.popup-banners__x {
    border: none;
    background: none;
    padding: 0;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.popup-banners__x:hover {
    opacity: .7;
}

.popup-banners__stage {
    position: relative;
    padding: 0;
    margin: 0;
}

.popup-banner {
    position: relative;
    background: transparent;
    padding: 0;
    margin: 0;
}

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

.popup-banner__media {
    display: block;
}

.popup-banner__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 70vh;
    padding: 0;
    margin: 0;
}

.popup-banner__title {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #fff;
    text-align: center;
}
