/*
  Cookie bar: same forest panel as the footer, hard corners, gold accept.
  Reject sits as a full button, not a grey text link.
*/

.cookie-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1100;
    background: var(--primary-darker);
    color: var(--text-light);
    border-top: 3px solid var(--accent-gold);
    padding: 28px 0 32px;
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.28);
}

.cookie-banner[hidden],
.cookie-prefs[hidden] {
    display: none !important;
}

.cookie-banner-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 28px 48px;
    align-items: end;
}

.cookie-copy h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 400;
    color: var(--text-light);
    margin: 0 0 10px;
    letter-spacing: 0.02em;
}

.cookie-copy p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
    max-width: 42rem;
}

.cookie-copy a {
    color: var(--accent-gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-copy a:hover {
    color: var(--text-light);
}

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

.cookie-btn {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
    padding: 12px 22px;
    border: 2px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-btn-solid {
    background: var(--accent-gold);
    color: var(--text-light);
    border-color: var(--accent-gold);
}

.cookie-btn-solid:hover,
.cookie-btn-solid:focus-visible {
    background: var(--accent-gold-light);
    border-color: var(--accent-gold-light);
}

.cookie-btn-ghost {
    background: transparent;
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.35);
}

.cookie-btn-ghost:hover,
.cookie-btn-ghost:focus-visible {
    border-color: var(--text-light);
    background: rgba(255, 255, 255, 0.06);
}

.cookie-prefs {
    grid-column: 1 / -1;
    display: grid;
    gap: 14px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-choice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-choice input {
    margin-top: 4px;
    accent-color: var(--accent-gold);
}

.cookie-choice strong {
    display: block;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 2px;
}

.cookie-prefs .cookie-btn-solid {
    justify-self: start;
}

.footer-legal button {
    background: none;
    border: 0;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
}

.footer-legal button:hover,
.footer-legal button:focus-visible {
    color: var(--accent-gold);
}

@media (max-width: 800px) {
    .cookie-banner-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .cookie-btn {
        flex: 1 1 100%;
        text-align: center;
    }
}
