.popup {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0; 
    pointer-events: none;
    transition: opacity 0.2s ease;
    background: rgba(113, 133, 158, 0.50);
    backdrop-filter: blur(10px);
    overflow: auto;
    display: grid;
}
.popup.active {
    opacity: 1;
    pointer-events: auto;
}
.popupContainer {
    padding: 40px 0;
    max-width: 736px;
    width: calc(100% - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.popup__inner {
    width: 100%;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0px 20px 52px 0px rgba(147, 151, 173, 0.3);
    position: relative;
}
.popup--close {
    position: absolute;
    top: -34px;
    right: -34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 0 2px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.popup--close:before {
    content: "";
    display: block;
    width: 34px;
    height: 34px;
    background-color: white;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 34 34' xmlns='http://www.w3.org/2000/svg'><path d='M9.34685 10.3468C9.80931 9.88438 10.5591 9.88438 11.0216 10.3468L16.5 15.8253L21.9784 10.3468C22.4409 9.88438 23.1907 9.88438 23.6532 10.3468C24.1156 10.8093 24.1156 11.5591 23.6532 12.0216L18.1747 17.5L23.6532 22.9784C24.1156 23.4409 24.1156 24.1907 23.6532 24.6532C23.1907 25.1156 22.4409 25.1156 21.9784 24.6532L16.5 19.1747L11.0216 24.6532C10.5591 25.1156 9.80931 25.1156 9.34685 24.6532C8.88438 24.1907 8.88438 23.4409 9.34685 22.9784L14.8253 17.5L9.34685 12.0216C8.88438 11.5591 8.88438 10.8093 9.34685 10.3468Z'/></svg>") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.popup--close:hover:before {
    color: #004E86;
}
.popup__body {
    padding: 30px;
}
.popup.type2 .popupContainer {
    max-width: 990px;
}
.popup.type3 .popupContainer {
    max-width: 500px;
}




.productPopup--title {
    color: #383838;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    margin-bottom: 18px;
}
.productPopup__content {
    display: flex;
    column-gap: 22px;
}
.productPopup__img {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(56, 56, 56, 0.05);
    background: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    flex: 1;
}
.productPopup__img img {
    max-width: 100%;
    max-height: 100%;
}
.productPopup__info {
    width: 348px;
    flex: none;
    display: flex;
    row-gap: 6px;
    flex-direction: column;
}
.productPopup__info__item {
    display: flex;
    padding: 9px 14px;
    justify-content: space-between;
    align-items: center;
    border-radius: 7px;
    border: 1px solid rgba(113, 133, 158, 0.10);
    background: rgba(113, 133, 158, 0.05);
    color: #71859E;
    font-size: 14px;
    line-height: 20px;
}
.productPopup__info__item.type2 {
    background-color: transparent;
}
.productPopup__info__item>p {
    font-weight: 700;
}
.productPopup__info__item>.icon-info2 {
    font-size: 18px;
    cursor: pointer;
}
.productPopup__info__item>.icon-info2:before {
    transition: color 0.2s ease;
}
.productPopup__info__item>.icon-info2:hover:before {
    color: #FFE100;
}
.productPopup__info__item>span:first-child, .productPopup__info__item>p:first-child {
    width: 120px;
    flex: none;
}
.productPopup__info__item>span:nth-child(2), .productPopup__info__item>p:nth-child(2) {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.storeMapPopup--title {
    margin-bottom: 24px;
    color: #231F20;
    font-size: 24px;
    font-weight: 700;
    line-height: 26px;
}
.storeMapPopup--img {
    display: block;
    width: 100%;
    border-radius: 7px;
    margin-bottom: 24px;
}
.storeMapPopup__content {
    padding: 0 14px;
}
.storeMapPopup__text {
    color: #231F20;
    font-size: 13px;
    line-height: 18px;
}
.storeMapPopup__links {
    color: #2C63AC;
    font-size: 14px;
    line-height: 17px;
    display: grid;
    row-gap: 10px;
    margin-top: 10px;
}
.storeMapPopup__links a {
    color: #2C63AC;
}
.storeMapPopup__buttons {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}
.storeMapPopup--close {
    width: 145px;
}

.agreement--title {
    color: #231F20;
    font-size: 24px;
    font-weight: 700;
    line-height: 26px;
    margin-bottom: 24px;
}
.agreement__text {
    color: #231F20;
    font-size: 14px;
    line-height: 21px;
}
.agreement__text a {
    color: #231F20;
    text-decoration: underline;
}
.agreement__buttons {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.appQrPopup {
    padding-top: 12px;
}
.appQrPopup--logo {
    width: 110px;
    display: block;
    margin: 0 auto 14px;
}
.appQrPopup--qr {
    width: 164px;
    display: block;
    margin: 0 auto 14px;
}
.appQrPopup--text {
    text-align: center;
    color: #495057;
    font-size: 18px;
    line-height: 24px;
    max-width: 400px;
    margin: 0 auto;
}

@media screen and (max-width: 1200px) {
    .popupContainer {
        padding: 56px 0;
        max-width: 482px;
    }
    .popup--close {
        top: -48px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    .productPopup__content {
        flex-wrap: wrap;
    }
    .productPopup__img {
        width: 100%;
        margin-bottom: 22px;
        height: 374px;
    }
    .productPopup__info {
        width: 100%;
    }
}

@media screen and (max-width: 700px) {
    .popupContainer {
        padding: 45px 0;
        max-width: 100%;
        width: calc(100% - 40px);
    }
    .popup__body {
        padding: 16px;
    }
    .popup--close {
        width: 26px;
        height: 26px;
        top: -38px;
    }
    .popup--close:before {
        width: 26px;
        height: 26px;
    }
    .productPopup__img {
        height: 245px;
        min-height: auto;
    }
    .productPopup__info {
        width: 100%;
    }
    .productPopup__info__item {
        flex-wrap: wrap;
    }
    .productPopup__info__item>span:nth-child(2), .productPopup__info__item>p:nth-child(2) {
        white-space: normal;
        text-overflow: unset;
        overflow: visible;
    }

    .storeMapPopup--title {
        font-size: 18px;
        line-height: 20px;
        margin-bottom: 18px;
    }
    .storeMapPopup--img {
        margin-bottom: 18px;
    }
    .storeMapPopup__content {
        padding: 0;
    }
    .storeMapPopup__links {
        row-gap: 8px;
        margin-top: 18px;
    }
    .storeMapPopup__buttons {
        margin-top: 22px;
    }
    .storeMapPopup--close {
        width: 100%;
    }
}