/* OMODA | JAECOO promo popup (frontend/views/layouts/_promo-popup.php) */
.promo-popup {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483000; /* below the cookie bar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

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

.promo-popup__backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.promo-popup__box {
    position: relative;
    width: 600px;
    max-width: 100%;
    width: min(600px, 100%, calc(100vh - 100px)); /* room for the button below */
}

.promo-popup__box img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.promo-popup__close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 1;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-size: 26px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.promo-popup__close:hover,
.promo-popup__close:focus-visible {
    background: #06038D;
    color: #fff;
}

.promo-popup__hide-today {
    display: block;
    margin: 12px auto 0;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
}

.promo-popup__hide-today:hover,
.promo-popup__hide-today:focus-visible {
    background: #fff;
    color: #000;
}

html.promo-popup-open {
    overflow: hidden;
}
