/* Cookie consent banner */
.cookie-consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1500;
    display: flex;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
}

.cookie-consent-card {
    pointer-events: auto;
    max-width: 720px;
    width: 100%;
    background: var(--surface-bg, #ffffff);
    color: var(--surface-fg, #111827);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theme-dark .cookie-consent-card {
    background: #1f2937;
    color: #f3f4f6;
    border-color: rgba(255, 255, 255, 0.12);
}

.cookie-consent-title {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.cookie-consent-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
}

.cookie-consent-text a {
    color: #b04a2c;
    text-decoration: underline;
}

.theme-dark .cookie-consent-text a {
    color: #fdba74;
}

.cookie-consent-list {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
}

.cookie-consent-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cookie-consent-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

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

.cookie-consent-btn {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: inherit;
}

.cookie-consent-btn-primary {
    background: #b04a2c;
    color: #ffffff;
    border-color: #b04a2c;
}

.cookie-consent-btn-primary:hover,
.cookie-consent-btn-primary:focus-visible {
    background: #7a3a1f;
    border-color: #7a3a1f;
}

.cookie-consent-btn-secondary {
    background: transparent;
    color: inherit;
    border-color: currentColor;
}

.cookie-consent-btn-link {
    background: transparent;
    border: none;
    color: #b04a2c;
    text-decoration: underline;
    padding: 8px 6px;
}

.theme-dark .cookie-consent-btn-link {
    color: #fdba74;
}

.cookie-consent-btn:focus-visible {
    outline: 2px solid #b04a2c;
    outline-offset: 2px;
}

@media (max-width: 540px) {
    .cookie-consent-actions {
        justify-content: stretch;
    }

    .cookie-consent-btn {
        flex: 1 1 auto;
    }
}
