/* ============================================================
   SCDUET Cookie Consent Banner Styles v1.0
   Спортивный клуб «Дуэт» — scduet.ru
   ============================================================ */

/* ---- Чекбокс согласия на обработку ПД в формах ---- */
.scduet-consent-group {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.scduet-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: #444444;
    margin: 0;
}

.scduet-consent-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #e30613;
    cursor: pointer;
}

.scduet-consent-text {
    flex: 1;
}

.scduet-consent-text a {
    color: #e30613;
    text-decoration: underline;
}

.scduet-consent-text a:hover {
    color: #b80510;
}

.scduet-consent-checkbox:invalid {
    outline: 2px solid #e30613;
    outline-offset: 2px;
}

/* ---- Основной контейнер баннера ---- */
.scduet-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #ffffff;
    border-top: 3px solid #e30613;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
    font-family: 'Open Sans', 'Arial', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    animation: scduet-cookie-slide-up 0.4s ease-out;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.scduet-cookie-banner--hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

@keyframes scduet-cookie-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ---- Контент баннера ---- */
.scduet-cookie-banner__content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.scduet-cookie-banner__icon {
    font-size: 28px;
    flex-shrink: 0;
    padding-top: 2px;
}

.scduet-cookie-banner__text {
    flex: 1 1 400px;
    min-width: 250px;
}

.scduet-cookie-banner__title {
    font-family: 'Oswald', 'Arial', sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin: 0 0 6px 0;
    color: #1a1a1a;
}

.scduet-cookie-banner__desc {
    margin: 0;
    font-size: 13px;
    color: #555555;
}

.scduet-cookie-banner__desc a {
    color: #e30613;
    text-decoration: underline;
}

.scduet-cookie-banner__desc a:hover {
    color: #b80510;
}

/* ---- Кнопки ---- */
.scduet-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.scduet-cookie-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-family: 'Oswald', 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    outline: none;
}

.scduet-cookie-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.3);
}

.scduet-cookie-btn--primary {
    background: #e30613;
    color: #ffffff;
    border-color: #e30613;
}

.scduet-cookie-btn--primary:hover {
    background: #c70510;
    border-color: #c70510;
}

.scduet-cookie-btn--secondary {
    background: #f5f5f5;
    color: #333333;
    border-color: #cccccc;
}

.scduet-cookie-btn--secondary:hover {
    background: #e8e8e8;
    border-color: #aaaaaa;
}

.scduet-cookie-btn--outline {
    background: transparent;
    color: #555555;
    border-color: #cccccc;
}

.scduet-cookie-btn--outline:hover {
    background: #f5f5f5;
    border-color: #aaaaaa;
    color: #333333;
}

/* ---- Панель настроек ---- */
.scduet-cookie-banner__settings {
    padding: 0 24px 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
    animation: scduet-cookie-fade-in 0.3s ease;
}

@keyframes scduet-cookie-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scduet-cookie-banner__settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
}

.scduet-cookie-banner__settings-title {
    font-family: 'Oswald', 'Arial', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #1a1a1a;
}

.scduet-cookie-banner__settings-back {
    background: none;
    border: none;
    color: #e30613;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
}

.scduet-cookie-banner__settings-back:hover {
    text-decoration: underline;
}

.scduet-cookie-banner__categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.scduet-cookie-banner__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #eeeeee;
}

.scduet-cookie-banner__category-info {
    flex: 1;
    min-width: 0;
}

.scduet-cookie-banner__category-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333333;
    margin-bottom: 2px;
}

.scduet-cookie-banner__category-desc {
    display: block;
    font-size: 12px;
    color: #777777;
    line-height: 1.4;
}

.scduet-cookie-banner__settings-actions {
    display: flex;
    justify-content: flex-end;
}

/* ---- Переключатель (toggle) ---- */
.scduet-cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.scduet-cookie-toggle--disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.scduet-cookie-toggle__input {
    opacity: 0;
    width: 0;
    height: 0;
}

.scduet-cookie-toggle__slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cccccc;
    border-radius: 13px;
    transition: background-color 0.3s ease;
}

.scduet-cookie-toggle__slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.scduet-cookie-toggle__input:checked + .scduet-cookie-toggle__slider {
    background-color: #e30613;
}

.scduet-cookie-toggle__input:checked + .scduet-cookie-toggle__slider::before {
    transform: translateX(22px);
}

.scduet-cookie-toggle__input:focus-visible + .scduet-cookie-toggle__slider {
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.3);
}

/* ---- Кнопка «Настройки cookies» в футере ---- */
.scduet-cookie-reopen-btn {
    display: inline-block;
    margin: 10px 0;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid #cccccc;
    border-radius: 4px;
    color: #777777;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scduet-cookie-reopen-btn:hover {
    background: #f5f5f5;
    border-color: #999999;
    color: #555555;
}

/* ---- Адаптивность ---- */
@media (max-width: 768px) {
    .scduet-cookie-banner__content {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }

    .scduet-cookie-banner__icon {
        display: none;
    }

    .scduet-cookie-banner__text {
        flex: none;
        min-width: 0;
    }

    .scduet-cookie-banner__title {
        font-size: 16px;
    }

    .scduet-cookie-banner__actions {
        width: 100%;
        flex-direction: column;
    }

    .scduet-cookie-btn {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    .scduet-cookie-banner__settings {
        padding: 0 16px 16px 16px;
    }

    .scduet-cookie-banner__category {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .scduet-cookie-banner {
        font-size: 13px;
    }

    .scduet-cookie-banner__desc {
        font-size: 12px;
    }

    .scduet-cookie-btn {
        font-size: 13px;
        padding: 10px 14px;
    }
}