/* ============================================================
   БАННЕР COOKIE — стили
   ============================================================ */

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: #e8edf5;
    font-size: 15px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.cookie-banner__title {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 8px;
    color: #ffffff;
}
.cookie-banner__text {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 15px;
}
.cookie-banner__text a {
    color: #ff8c00;
    text-decoration: underline;
}
.cookie-banner__text a:hover {
    color: #ff5700;
}
.cookie-banner__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.cookie-banner__btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}
.cookie-banner__btn--accept {
    background: #ff5700;
    color: #fff;
}
.cookie-banner__btn--accept:hover {
    background: #ff8c00;
}
.cookie-banner__btn--decline {
    background: rgba(255, 255, 255, 0.1);
    color: #e8edf5;
}
.cookie-banner__btn--decline:hover {
    background: rgba(255, 255, 255, 0.2);
}
.cookie-banner__btn--settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    padding: 10px 5px;
}
.cookie-banner__btn--settings:hover {
    color: #fff;
}

/* Модальное окно настроек */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cookie-modal-overlay.visible {
    display: flex;
}
.cookie-modal {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 25px;
    color: #e8edf5;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.cookie-modal__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}
.cookie-modal__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cookie-modal__row:last-of-type {
    border-bottom: none;
}
.cookie-modal__label {
    flex: 1;
    cursor: pointer;
}
.cookie-modal__label strong {
    display: block;
    color: #fff;
    margin-bottom: 3px;
    font-weight: 700;
}
.cookie-modal__label small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.4;
    display: block;
}
.cookie-modal__row input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #ff5700;
    flex-shrink: 0;
    cursor: pointer;
}
.cookie-modal__row input[type="checkbox"][disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
.cookie-modal__actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.cookie-modal__actions button {
    flex: 1;
    min-width: 120px;
}

/* Ссылка/кнопка «Настройки cookie» в футере */
.cookie-settings-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    text-align: left;
}
.cookie-settings-link:hover {
    background: rgba(11, 14, 20, 0.5);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding-left: 18px;
}

/* Мобильная адаптация */
@media (max-width: 600px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 18px;
    }
    .cookie-banner__buttons {
        flex-direction: column;
    }
    .cookie-banner__btn {
        width: 100%;
    }
    .cookie-modal__actions {
        flex-direction: column;
    }
}