/**
 * SisOS v1.0 — Cookie Consent Banner Styles
 * Referência: P037.SP09
 */

/* ═══════════════════════════════════════════════════════════
   BANNER
   ═══════════════════════════════════════════════════════════ */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1080;
    background: var(--sisos-bg-surface);
    border-top: 1px solid var(--sisos-border-color);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

html.dark .cookie-consent-banner {
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

.cookie-consent-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.cookie-consent-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--sisos-text-secondary);
    flex: 1;
}

.cookie-consent-text a {
    color: var(--sisos-primary);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    align-items: center;
}

.cookie-consent-actions .btn {
    font-size: 0.8rem;
    padding: 0.375rem 1rem;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .cookie-consent-inner {
        flex-direction: row;
        align-items: center;
    }
    .cookie-consent-banner {
        padding: 1rem 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   MODAL DE DETALHES
   ═══════════════════════════════════════════════════════════ */
.cookie-detail-content {
    max-height: 60vh;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--sisos-text-primary);
}

.cookie-detail-content h2,
.cookie-detail-content h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.cookie-detail-fallback {
    color: var(--sisos-text-secondary);
}

.cookie-detail-fallback h6 {
    font-weight: 600;
    margin-top: 0.75rem;
}

.cookie-detail-fallback ul {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner {
        transition: none;
    }
}
