.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.show {
    display: block;
}

.modal__overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(158, 161, 163, 0.18);
    z-index: -1;
}

.modal__dialog {
    display: flex;
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 100vh;
}

.modal__dialog_sm {
    max-width: 470px;
}

.modal__content {
    background-color: #FFFFFF;
    border-radius: 16px;
    overflow-y: auto;
}

.modal__content_small-round {
    border-radius: 8px;
}

.modal__content::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}

.modal__content::-webkit-scrollbar-track,
.modal__content::-webkit-scrollbar-thumb {
    border-style: solid;
    border-color: #FFFFFF;
    border-width: 4px;
}

.modal__close {
    position: absolute;
    right: 0;
    top: 0;
    padding: 20px;
    cursor: pointer;
}

.modal__close::after {
    content: '';
    display: block;
    width: 13px;
    height: 13px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" fill="none"><script xmlns=""/><path d="M11 1.5l-10 10m0-10l10 10" stroke="%23AEAEB2" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><script xmlns=""/></svg>');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}