/**
 * modules/analytics/consent.css (P0.6): cookie consent banner.
 * Loaded only where GA4 runs (core/assets.php, 'when' => 'tz_analytics_enabled').
 * Colours use the theme tokens with neutral fallbacks.
 */
.tz-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 18px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--bg-card, #111318);
    color: var(--text-secondary, #d4d4d8);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    font-size: 0.875rem;
    line-height: 1.5;
}

.tz-consent[hidden] {
    display: none;
}

.tz-consent__text {
    flex: 1 1 auto;
    margin: 0;
}

.tz-consent__link {
    color: var(--accent, #f97316);
    text-decoration: underline;
    white-space: nowrap;
}

.tz-consent__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.tz-consent__btn {
    min-width: 96px;
    min-height: 40px;
}

@media (max-width: 640px) {
    .tz-consent {
        left: 8px;
        right: 8px;
        bottom: 8px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .tz-consent__actions {
        width: 100%;
    }
    .tz-consent__btn {
        flex: 1 1 0;
    }
}

@media print {
    .tz-consent {
        display: none !important;
    }
}
