.popup-warning {
    width: min(90%, 700px);
    max-width: 700px;
    max-height: calc(100dvh - 20px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    color: inherit;
    background: #fff;
    border: 0;
    border-radius: 16px;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.popup-warning::backdrop {
    background: rgb(30 31 33 / 20%);
}

.popup-warning__content {
    position: relative;
    max-height: calc(100dvh - 20px);
    margin: 0;
    overflow-y: auto;
}

.popup-warning .catalog-detail-popup {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 40px;
}

.popup-warning__close {
    position: absolute;
    z-index: 1;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    background: none;
    border: 0;
}

.popup-warning__close .svg-icon {
    display: block;
    width: 21px;
    height: 20px;
    fill: none;
    stroke: #1f3b71;
}

@media (max-width: 576px) {
    .popup-warning {
        width: calc(100% - 12px);
        max-height: calc(100dvh - 12px);
    }

    .popup-warning__content {
        max-height: calc(100dvh - 12px);
    }

    .popup-warning .catalog-detail-popup {
        padding: 40px 24px 24px;
    }

    .popup-warning__close {
        top: 12px;
        right: 12px;
    }
}
