/* Consent banner + preference modal */
.consent-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 11000;
    background: #1c1c1c;
    color: #f5f5f5;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.25);
}
.consent-banner[hidden] { display: none; }
.consent-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.consent-banner-text {
    flex: 1 1 380px;
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
}
.consent-banner-text a { color: #ffd47a; text-decoration: underline; }
.consent-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.consent-btn {
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
}
.consent-btn-primary { background: #ffd47a; color: #1c1c1c; }
.consent-btn-primary:hover { background: #ffc94d; }
.consent-btn-secondary { background: transparent; color: #f5f5f5; border-color: #6a6a6a; }
.consent-btn-secondary:hover { border-color: #f5f5f5; }

/* Modal */
.consent-modal { position: fixed; inset: 0; z-index: 11001; }
.consent-modal[hidden] { display: none; }
.consent-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
}
.consent-modal-box {
    position: relative;
    max-width: 560px;
    margin: 6vh auto;
    max-height: 88vh;
    overflow-y: auto;
    background: #fff;
    color: #1c1c1c;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.consent-modal-box h2 { margin-top: 0; }
.consent-modal-close {
    position: absolute; top: 10px; right: 14px;
    background: none; border: 0; font-size: 1.8rem; line-height: 1;
    cursor: pointer; color: #666;
}
.consent-gpc-note {
    background: #e7f5ec;
    border: 1px solid #a7d8b9;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}
.consent-gpc-note[hidden] { display: none; }

.consent-categories { list-style: none; padding: 0; margin: 16px 0; }
.consent-category { border-top: 1px solid #eee; padding: 14px 0; }
.consent-category p { margin: 6px 0 0; font-size: 0.85rem; opacity: 0.85; }
.consent-category-head {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.consent-category-name { font-weight: 600; }
.consent-toggle-locked { font-size: 0.8rem; opacity: 0.6; }

/* Switch */
.consent-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 auto; }
.consent-switch input { opacity: 0; width: 0; height: 0; }
.consent-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: #ccc; border-radius: 24px; transition: 0.2s;
}
.consent-slider:before {
    content: ""; position: absolute; height: 18px; width: 18px;
    left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.2s;
}
.consent-switch input:checked + .consent-slider { background: #2e7d4f; }
.consent-switch input:checked + .consent-slider:before { transform: translateX(20px); }
.consent-switch input:disabled + .consent-slider { opacity: 0.5; cursor: not-allowed; }

.consent-modal-actions {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 20px;
}
.consent-modal-actions .consent-btn-secondary { color: #1c1c1c; border-color: #bbb; }
.consent-modal-actions .consent-btn-secondary:hover { border-color: #1c1c1c; }

@media (max-width: 600px) {
    .consent-banner-actions { width: 100%; }
    .consent-banner-actions .consent-btn { flex: 1 1 auto; }
}

/* Footer compliance links (rendered on every page) */
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    padding: 12px 16px 4px;
    font-size: 0.78em;
    line-height: 1.4;
    opacity: 0.85;
}
.footer-legal-links a { text-decoration: none; }
.footer-legal-links a:hover { text-decoration: underline; }
