/* Базовый механизм модальных окон (перенесён из эталона).
   Здесь только каркас: открытие/закрытие обслуживает js/web/modal.js,
   скин конкретной модалки живёт в CSS её партиала (public/css/web/partials/...). */

/* Вешается js/web/modal.js на время открытой модалки; padding-right
   компенсирует исчезнувший скроллбар (ставится там же из JS) */
body.modal-open {
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9100;
    justify-content: center;
    align-items: center;
    background: var(--Overlay-Modal, rgba(0, 0, 0, 0.3));
}

.modal-container {
    width: 529px;
    max-width: calc(100% - 32px);
}

/* Кликабельная подложка: клик по ней закрывает модалку (см. js/web/modal.js) */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--Overlay-Modal, rgba(0, 0, 0, 0.3));
    z-index: -1;
}

.modal-content {
    width: 100%;
    background: var(--Surface-White, #FFF);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.modal button {
    outline: none;
    border: none;
    cursor: pointer;
}
