/* ================= УВЕДОМЛЕНИЕ О COOKIE ================= */
.cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    max-height: 90vh;
    overflow-y: auto;
    background: #fefbf6;
    box-shadow: 0 -8px 24px rgba(40, 40, 40, 0.12);
    padding: 20px 0;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.5s,
        opacity 0.5s;
}
.cookie-notice.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cookie-notice__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.cookie-notice__text {
    flex: 1 1 380px;
    font: 14px/150% CormorantGaramond, sans-serif;
    color: #282828;
}
.cookie-notice__link {
    color: #4a7987;
}
.cookie-notice__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    flex-shrink: 0;
}
.cookie-notice__settings-btn,
.cookie-notice__decline-btn {
    font: 12px/130% CormorantGaramond, sans-serif;
    text-transform: uppercase;
    color: #282828;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.5s;
}
.cookie-notice__settings-btn:hover,
.cookie-notice__decline-btn:hover {
    color: #4a7987;
}
.cookie-notice__accept-btn {
    padding: 15px 32px;
}

/* ================= ПАНЕЛЬ НАСТРОЕК ================= */
.cookie-notice__settings {
    max-width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        max-height 0.4s,
        opacity 0.35s,
        margin-top 0.4s;
}
.cookie-notice.settings-open .cookie-notice__settings {
    max-height: 400px;
    opacity: 1;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5dcd2;
}
.cookie-notice__settings-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
}
.cookie-notice__settings-item:not(:last-of-type) {
    border-bottom: 1px solid #e5dcd2;
}
.cookie-notice__settings-item-text {
    display: flex;
    flex-flow: column;
    gap: 4px;
}
.cookie-notice__settings-item-title {
    font: 500 14px/130% LivretDisplay, serif;
    text-transform: uppercase;
    color: #282828;
}
.cookie-notice__settings-item-descr {
    font: 13px/140% CormorantGaramond, sans-serif;
    color: #5e5e5e;
}
.cookie-notice__save-btn {
    margin-top: 20px;
    padding: 15px 32px;
}

/* Переключатель */
.cookie-switch {
    position: relative;
    flex-shrink: 0;
    display: inline-block;
    width: 40px;
    height: 22px;
    cursor: pointer;
}
.cookie-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-switch input:checked + .cookie-switch__track {
    background: #4a7987;
}
.cookie-switch input:checked + .cookie-switch__track::before {
    transform: translateX(18px);
}
.cookie-switch__track {
    position: absolute;
    inset: 0;
    background: #d9cfc7;
    border-radius: 20px;
    transition: background-color 0.35s;
}
.cookie-switch__track::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.35s;
}
.cookie-switch--disabled {
    cursor: not-allowed;
}
.cookie-switch--disabled input:checked + .cookie-switch__track {
    background: #b9cdd2;
}

@media (max-width: 575.98px) {
    .cookie-notice {
        padding: 16px 0;
    }
    .cookie-notice__inner {
        flex-flow: column;
        align-items: stretch;
        gap: 14px;
    }
    .cookie-notice__actions {
        flex-flow: column;
        align-items: stretch;
        gap: 12px;
    }
    .cookie-notice__settings-btn,
    .cookie-notice__decline-btn {
        order: 3;
        text-align: center;
    }
    .cookie-notice__accept-btn,
    .cookie-notice__save-btn {
        width: 100%;
    }
}
