/* Custom GDPR consent banner. Self-hosted, no third-party CMP dependency.
   See views/layouts/header.php and cookie-consent.js. */

.cc-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    color: #212529;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

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

.cc-consent-banner__text {
    flex: 1 1 320px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cc-consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.cc-consent-reopen {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1070;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #212529;
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

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

@media (prefers-color-scheme: dark) {
    .cc-consent-banner {
        background: #1a1d20;
        color: #f8f9fa;
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}
