/**
 * Модальное предупреждение при заходе на витрину
 */

.shopNoticeModal {
    position: fixed;
    inset: 0;
    z-index: 10200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.shopNoticeModal[hidden] {
    display: none !important;
}

body.shopNoticeModalOpen {
    overflow: hidden;
}

.shopNoticeModal__backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.62);
}

.shopNoticeModal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    margin: 0;
    padding: 44px 52px 40px;
    box-sizing: border-box;
    background: #efeeee;
    border: 0;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    color: #0d4454;
    text-align: center;
}

.shopNoticeModal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #41525d;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    appearance: none;
}

.shopNoticeModal__close:hover {
    color: #0d4454;
}

.shopNoticeModal__logo {
    display: flex;
    justify-content: center;
    margin: 0 0 28px;
}

.shopNoticeModal__logo img {
    display: block;
    width: auto;
    max-width: 168px;
    height: auto;
}

.shopNoticeModal__title {
    margin: 0 0 16px;
    font-family: Montserrat, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #282a31;
}

.shopNoticeModal__text {
    margin: 0 0 28px;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: #0d4454;
}

body.shopPage .shopNoticeModal .shopNoticeModal__submit {
    display: inline-block;
    width: 100%;
    max-width: 280px;
    margin: 0;
    padding: 16px 28px;
    border: 0;
    border-radius: 0;
    background: var(--orange, #f39b00) !important;
    color: #fff !important;
    font: inherit;
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    appearance: none;
}

body.shopPage .shopNoticeModal .shopNoticeModal__submit:hover {
    filter: brightness(0.97);
}

@media (max-width: 575px) {
    .shopNoticeModal__dialog {
        padding: 40px 24px 32px;
    }

    .shopNoticeModal__title {
        font-size: 18px;
    }

    .shopNoticeModal__text {
        font-size: 15px;
    }
}
