/* ============================================================================
   Cookie consent banner
   ----------------------------------------------------------------------------
   No external dependencies. Designed to render without layout shift and to
   work without JavaScript (the panel below the action row becomes visible
   via a <noscript>-injected style override so the user can pick categories
   and submit the form natively).
   ========================================================================= */

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #1a1a1a;
    color: #f5f5f5;
    border-top: 3px solid #f0a020;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.cookie-consent__copy {
    flex: 1 1 380px;
    min-width: 0;
}

.cookie-consent__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
}

.cookie-consent__text {
    margin: 0 0 6px;
    font-size: 13px;
    color: #e0e0e0;
}

.cookie-consent__text--muted {
    color: #b0b0b0;
    font-size: 12px;
}

.cookie-consent__link {
    color: #f0a020;
    text-decoration: underline;
}

.cookie-consent__form {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.cookie-consent__btn {
    appearance: none;
    border: 1px solid transparent;
    padding: 10px 16px;
    font: inherit;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1.2;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cookie-consent__btn--primary {
    background: #f0a020;
    color: #1a1a1a;
    border-color: #f0a020;
}

.cookie-consent__btn--primary:hover,
.cookie-consent__btn--primary:focus {
    background: #d88a10;
    border-color: #d88a10;
}

.cookie-consent__btn--ghost {
    background: transparent;
    color: #f5f5f5;
    border-color: #555;
}

.cookie-consent__btn--ghost:hover,
.cookie-consent__btn--ghost:focus {
    background: #2a2a2a;
    border-color: #888;
}

.cookie-consent__btn:focus-visible {
    outline: 2px solid #f0a020;
    outline-offset: 2px;
}

.cookie-consent__panel {
    background: #222;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-consent__panel[hidden] {
    /* Defensive: HTML5 `hidden` already hides this, but some legacy
       UA stylesheets use display:inline-block on aside descendants. */
    display: none;
}

.cookie-consent__fieldset {
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cookie-consent__legend {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #f0a020;
}

.cookie-consent__option {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 8px;
    align-items: start;
    font-size: 13px;
    cursor: pointer;
}

.cookie-consent__option input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.cookie-consent__option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-consent__option strong {
    display: block;
    font-weight: 600;
}

.cookie-consent__option small {
    display: block;
    color: #b0b0b0;
    font-size: 12px;
    margin-top: 2px;
}

@media (max-width: 640px) {
    .cookie-consent__inner {
        flex-direction: column;
        gap: 12px;
        padding: 12px 14px;
    }

    .cookie-consent__actions {
        justify-content: stretch;
    }

    .cookie-consent__btn {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent__btn {
        transition: none;
    }
}
