/* ===========================================
   cookie-consent.css — 152-ФЗ cookie banner
   Frosted glass, slide-up, mobile-friendly
   =========================================== */

.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 0 16px 16px;
    font-family: var(--brand-font-body, 'Inter', sans-serif);
    animation: ccSlideUp 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ccSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cc-banner__inner {
    max-width: 680px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 12px 48px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* ---- Main panel ---- */
.cc-banner__main {
    padding: 20px 24px;
}

.cc-banner__text {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.cc-banner__cookie-icon {
    flex-shrink: 0;
    color: var(--brand-primary, #2563EB);
    opacity: 0.7;
    margin-top: 1px;
}

.cc-banner__text p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--brand-text-secondary, #6B7280);
}

/* Actions */
.cc-banner__actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

/* Buttons */
.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1;
    border: none;
    border-radius: var(--brand-btn-radius, 8px);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.cc-btn:active { transform: scale(0.97); }

.cc-btn--primary {
    background: var(--brand-btn-bg, #2563EB);
    color: var(--brand-btn-text, #fff);
}

.cc-btn--primary:hover {
    background: var(--brand-btn-hover, #1D4ED8);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
}

.cc-btn--ghost {
    background: transparent;
    color: var(--brand-text-secondary, #6B7280);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cc-btn--ghost:hover {
    color: var(--brand-primary, #2563EB);
    border-color: var(--brand-primary, #2563EB);
    background: rgba(37, 99, 235, 0.04);
}

/* Links */
.cc-banner__links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cc-banner__links a {
    font-size: 12px;
    color: var(--brand-text-secondary, #6B7280);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}

.cc-banner__links a:hover {
    opacity: 1;
    color: var(--brand-primary, #2563EB);
}

/* ---- Settings panel ---- */
.cc-settings {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 20px 24px;
    animation: ccFadeIn 0.3s ease;
}

@keyframes ccFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.cc-settings__group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
}

.cc-settings__row {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.cc-settings__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cc-settings__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.cc-settings__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-text, #111827);
}

.cc-settings__badge {
    font-size: 11px;
    font-weight: 500;
    color: var(--brand-success, #10B981);
    background: rgba(16, 185, 129, 0.08);
    padding: 3px 8px;
    border-radius: 20px;
}

.cc-settings__desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--brand-text-secondary, #6B7280);
}

/* Toggle switch */
.cc-toggle {
    position: relative;
    display: inline-block;
    cursor: pointer;
    flex-shrink: 0;
}

.cc-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-toggle__track {
    display: block;
    width: 40px;
    height: 22px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    position: relative;
    transition: background 0.25s;
}

.cc-toggle__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cc-toggle input:checked + .cc-toggle__track {
    background: var(--brand-primary, #2563EB);
}

.cc-toggle input:checked + .cc-toggle__track::after {
    transform: translateX(18px);
}

/* Settings actions */
.cc-settings__actions {
    display: flex;
    gap: 8px;
}

/* ---- Mobile ---- */
@media (max-width: 520px) {
    .cc-banner { padding: 0 8px 8px; }
    .cc-banner__inner { border-radius: 12px; }
    .cc-banner__main { padding: 16px; }
    .cc-settings { padding: 16px; }
    .cc-banner__actions { flex-direction: column; }
    .cc-settings__actions { flex-direction: column; }
    .cc-btn { width: 100%; }
}
