/* ============================================
   Cookie Consent Banner Styles
   ============================================ */

.cookie-consent-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-banner {
    background: var(--mud-palette-surface);
    border-radius: 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    padding: 24px;
    width: 100%;
    margin: 0;
    border: none;
    border-top: 1px solid var(--mud-palette-divider);
}

.cookie-consent-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.cookie-consent-icon {
    flex-shrink: 0;
}

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

.cookie-consent-title {
    margin-bottom: 8px;
    font-weight: 600;
}

.cookie-consent-description {
    line-height: 1.6;
    opacity: 0.9;
}

.cookie-learn-more {
    text-decoration: underline;
    margin-left: 4px;
}

.cookie-consent-settings {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--mud-palette-background);
    border-radius: 8px;
}

.cookie-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.cookie-setting-item:last-child {
    border-bottom: none;
}

.cookie-setting-info {
    flex: 1;
    min-width: 0;
}

.cookie-setting-desc {
    opacity: 0.7;
    margin-top: 4px;
    line-height: 1.4;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-btn {
    text-transform: none;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-overlay {
        padding: 0;
    }

    .cookie-consent-banner {
        padding: 20px;
        border-radius: 0;
    }

    .cookie-consent-content {
        flex-direction: column;
        gap: 16px;
    }

    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 16px;
    }

    .cookie-consent-title {
        font-size: 1.1rem;
    }

    .cookie-consent-description {
        font-size: 0.875rem;
    }
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    .cookie-consent-banner {
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    }
}

/* Animation for settings panel */
.cookie-consent-settings {
    animation: expandDown 0.3s ease-out;
}

@keyframes expandDown {
    from {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
        padding-top: 16px;
        padding-bottom: 16px;
    }
}
