/* ===== Cookie Consent Banner - Modern Design ===== */

.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-consent-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-consent-banner {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 900px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 24px 32px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 107, 53, 0.2);
    z-index: 9999;
    transition: top 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-banner.show {
    top: 0;
}

.cookie-consent-container {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 100%;
}

.cookie-consent-icon {
    font-size: 48px;
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.cookie-consent-content {
    flex: 1;
    min-width: 0;
}

.cookie-consent-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-consent-title::before {
    content: '🍪';
    font-size: 24px;
}

.cookie-consent-message {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0;
}

.cookie-consent-link {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.cookie-consent-link:hover {
    color: #FF8C42;
    border-bottom-color: #FF8C42;
}

.cookie-consent-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    min-width: 180px;
}

.cookie-consent-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.cookie-consent-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cookie-consent-btn:hover::before {
    left: 100%;
}

.cookie-consent-btn-accept {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.cookie-consent-btn-accept:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

.cookie-consent-btn-accept:active {
    transform: translateY(-1px);
}

.cookie-consent-btn-decline {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-consent-btn-decline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-consent-btn-decline:active {
    transform: translateY(-1px);
}

.cookie-consent-settings {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-settings-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    font-weight: 500;
}

.cookie-consent-toggles {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.cookie-toggle input {
    display: none;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-toggle input:checked + .toggle-switch {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
}

.cookie-toggle input:checked + .toggle-switch::after {
    left: 23px;
}

.cookie-toggle:hover .toggle-switch {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== Адаптив ===== */
@media (max-width: 900px) {
    .cookie-consent-banner {
        width: calc(100% - 30px);
        padding: 20px 24px;
    }

    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .cookie-consent-icon {
        font-size: 40px;
        text-align: center;
    }

    .cookie-consent-buttons {
        flex-direction: row;
        min-width: auto;
        width: 100%;
    }

    .cookie-consent-btn {
        flex: 1;
    }
}

@media (max-width: 600px) {
    .cookie-consent-banner {
        width: calc(100% - 20px);
        padding: 18px 16px;
        border-radius: 16px;
    }

    .cookie-consent-title {
        font-size: 17px;
    }

    .cookie-consent-message {
        font-size: 14px;
    }

    .cookie-consent-buttons {
        flex-direction: column;
    }

    .cookie-consent-toggles {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .cookie-consent-icon {
        font-size: 36px;
    }

    .cookie-consent-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}
