/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 3px solid var(--navy);
    box-shadow: 0 -4px 20px rgba(26, 35, 50, 0.15);
    z-index: 10000;
    display: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h3 {
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.cookie-banner-text p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-policy-link {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-policy-link:hover {
    color: var(--navy);
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-reject {
    background-color: transparent;
    color: var(--medium-gray);
    border: 1px solid var(--medium-gray);
}

.cookie-btn-reject:hover {
    background-color: var(--medium-gray);
    color: var(--white);
}

.cookie-btn-customize {
    background-color: var(--light-gray);
    color: var(--navy);
    border: 1px solid var(--navy);
}

.cookie-btn-customize:hover {
    background-color: var(--navy);
    color: var(--white);
}

.cookie-btn-accept {
    background-color: var(--ice-blue);
    color: var(--navy);
}

.cookie-btn-accept:hover {
    background-color: var(--dark-ice);
}

.cookie-btn-save {
    background-color: var(--ice-blue);
    color: var(--navy);
}

.cookie-btn-save:hover {
    background-color: var(--dark-ice);
}

.cookie-btn-cancel {
    background-color: transparent;
    color: var(--medium-gray);
    border: 1px solid var(--medium-gray);
}

.cookie-btn-cancel:hover {
    background-color: var(--medium-gray);
    color: var(--white);
}

/* Cookie Customizer */
.cookie-customizer {
    border-top: 1px solid var(--light-gray);
    background-color: var(--light-gray);
}

.cookie-customizer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.cookie-customizer-content h4 {
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.cookie-category-header {
    margin-bottom: 0.5rem;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 1rem;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.cookie-toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.3s ease;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--white);
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-slider {
    background-color: var(--ice-blue);
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-slider::before {
    transform: translateX(26px);
}

.cookie-toggle input[type="checkbox"]:disabled + .cookie-toggle-slider {
    background-color: var(--ice-blue);
    opacity: 0.7;
}

.cookie-category-name {
    font-weight: 600;
    color: var(--navy);
    font-size: 1rem;
}

.cookie-category-description {
    color: var(--medium-gray);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.cookie-customizer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* Prevent body scroll when banner is visible */
body.cookie-banner-visible {
    padding-bottom: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-btn {
        padding: 0.75rem;
        text-align: center;
    }

    .cookie-customizer-content {
        padding: 1.5rem;
    }

    .cookie-customizer-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    body.cookie-banner-visible {
        padding-bottom: 200px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-content {
        padding: 1rem;
    }

    .cookie-banner-text h3 {
        font-size: 1.1rem;
    }

    .cookie-banner-text p {
        font-size: 0.9rem;
    }

    .cookie-customizer-content {
        padding: 1rem;
    }

    .cookie-toggle {
        gap: 0.75rem;
    }

    .cookie-category-name {
        font-size: 0.95rem;
    }

    body.cookie-banner-visible {
        padding-bottom: 250px;
    }
}