/*
 * Лаборатория Кошмарского — consent.css
 * Обязательное окно согласия. Работает в паре с js/consent.js.
 */

.consent-open,
.consent-open body {
    overflow: hidden;
}

.consent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99995;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    background: rgba(5, 8, 8, .82);
}

.consent__box {
    width: 560px;
    max-width: 100%;
    margin: auto;
    background: #E4E7E3;
    border: 1px solid #101313;
    border-radius: 6px;
    box-shadow: 0 14px 50px rgba(0, 0, 0, .7);
    color: #161918;
    font-size: 13px;
    line-height: 1.5;
}

.consent__head {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(#3B4241, #1B1F1F);
    border-radius: 5px 5px 0 0;
    color: #ffffff;
}

.consent__logo {
    width: 32px;
    height: 36px;
    margin-right: 12px;
    filter: none;
}

.consent__title {
    font-size: 17px;
    font-weight: 700;
}

.consent__sub {
    color: #AEB2AD;
    font-size: 12px;
}

.consent__body {
    padding: 16px 20px 6px;
}

.consent__body p {
    margin: 0 0 12px;
}

.consent__cookies {
    margin-bottom: 14px;
    padding: 8px 12px;
    background: #D5D8D4;
    border: 1px solid #BCC0BB;
    border-radius: 4px;
}

.consent__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

/* Переключатель, который нельзя переключить: всегда включен и полупрозрачен */
.consent__switch {
    position: relative;
    flex-shrink: 0;
    width: 34px;
    height: 18px;
    background: #4D6158;
    border-radius: 9px;
    opacity: .75;
    cursor: not-allowed;
}

.consent__switch::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
}

.consent__small {
    margin-top: 4px;
    color: #7B817E;
    font-size: 10px;
}

.consent__check {
    display: block;
    margin-bottom: 8px;
    padding-left: 22px;
    text-indent: -22px;
    cursor: pointer;
}

.consent__check input {
    margin: 0 6px 0 0;
    vertical-align: -2px;
}

.consent__check--locked {
    color: #7B817E;
    cursor: default;
}

.consent__error {
    min-height: 18px;
    color: #6B1A1E;
    font-size: 12px;
    font-weight: 600;
}

.consent__foot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 20px 14px;
}

.consent__decline {
    margin-right: 14px;
    padding: 0;
    background: none;
    border: 0;
    color: #7B817E;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.consent__accept[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

.consent__tiny {
    margin: 0;
    padding: 0 20px 12px;
    color: #9EA39E;
    font-size: 8px;
    line-height: 1.3;
}

.consent__box.is-shake {
    animation: consent-shake .4s;
}

@keyframes consent-shake {
    0%, 100% { transform: none; }
    20% { transform: translateX(-9px); }
    40% { transform: translateX(9px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
    .consent__box.is-shake {
        animation: none;
    }
}
