/* Focus Actual: cookie consent (GDPR) */
.fa-cc, .fa-cc-prefs, .fa-cc-float, .fa-cc-embed { --fa-cc-accent: #e74c3c; --fa-cc-dark: #222e33; --fa-cc-text: #333; --fa-cc-muted: #666; font-size: 14px; line-height: 1.5; }
.fa-cc[hidden], .fa-cc-prefs[hidden], .fa-cc-float[hidden] { display: none !important; }
html.fa-cc-lock { overflow: hidden; }

.fa-cc { position: fixed; z-index: 99990; color: var(--fa-cc-text); }
.fa-cc-inner { background: #fff; box-shadow: 0 -2px 24px rgba(0, 0, 0, .18); }
.fa-cc-title { font-weight: 700; font-size: 16px; margin: 0 0 6px; color: var(--fa-cc-dark); }
.fa-cc-text p { margin: 0 0 6px; color: var(--fa-cc-text); font-size: 14px; }
.fa-cc-policy { color: var(--fa-cc-accent); text-decoration: underline; font-weight: 600; }
.fa-cc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* bar: full width at the bottom */
.fa-cc--bar { left: 0; right: 0; bottom: 0; }
.fa-cc--bar .fa-cc-inner { display: flex; align-items: center; gap: 24px; padding: 18px 24px; max-width: 1200px; margin: 0 auto; border-radius: 0; }
.fa-cc--bar { background: #fff; box-shadow: 0 -2px 24px rgba(0, 0, 0, .18); }
.fa-cc--bar .fa-cc-inner { box-shadow: none; }
.fa-cc--bar .fa-cc-body { flex: 1 1 auto; }
.fa-cc--bar .fa-cc-actions { flex: 0 0 auto; }

/* box: card in the bottom-left corner */
.fa-cc--box { left: 20px; bottom: 20px; width: 400px; max-width: calc(100vw - 40px); }
.fa-cc--box .fa-cc-inner { padding: 20px; border-radius: 10px; box-shadow: 0 6px 30px rgba(0, 0, 0, .22); }
.fa-cc--box .fa-cc-actions { margin-top: 14px; }
.fa-cc--box .fa-cc-btn-primary, .fa-cc--box .fa-cc-btn-dark { flex: 1 1 0; }

/* modal: centred window over a dimmed page */
.fa-cc--modal { inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .5); padding: 20px; }
.fa-cc--modal .fa-cc-inner { width: 520px; max-width: 100%; padding: 26px; border-radius: 10px; }
.fa-cc--modal .fa-cc-actions { margin-top: 16px; }
.fa-cc--modal .fa-cc-btn-primary, .fa-cc--modal .fa-cc-btn-dark { flex: 1 1 0; }

/* buttons: accept and reject have the same size and weight (GDPR) */
.fa-cc-btn { display: inline-block; border: 2px solid transparent; border-radius: 6px; padding: 9px 18px; font-size: 14px; font-weight: 700; line-height: 1.2; cursor: pointer; text-align: center; white-space: nowrap; transition: opacity .15s; }
.fa-cc-btn:hover { opacity: .88; }
.fa-cc-btn:focus-visible, .fa-cc-link:focus-visible, .fa-cc-float:focus-visible, .fa-cc-close:focus-visible, .fa-cc-switch input:focus-visible + .fa-cc-slider { outline: 3px solid #1a73e8; outline-offset: 2px; }
.fa-cc-btn-primary { background: var(--fa-cc-accent); border-color: var(--fa-cc-accent); color: #fff; }
.fa-cc-btn-dark { background: var(--fa-cc-dark); border-color: var(--fa-cc-dark); color: #fff; }
.fa-cc-btn-outline { background: #fff; border-color: var(--fa-cc-dark); color: var(--fa-cc-dark); }
.fa-cc-btn-link { background: transparent; color: var(--fa-cc-dark); text-decoration: underline; padding-left: 6px; padding-right: 6px; }
.fa-cc-link { background: none; border: 0; padding: 0; color: var(--fa-cc-accent); text-decoration: underline; cursor: pointer; font-size: 13px; }

/* preferences */
.fa-cc-prefs { position: fixed; inset: 0; z-index: 99995; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; padding: 20px; color: var(--fa-cc-text); }
.fa-cc-prefs-box { position: relative; background: #fff; border-radius: 10px; width: 560px; max-width: 100%; max-height: calc(100vh - 40px); overflow-y: auto; padding: 26px; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.fa-cc-prefs .fa-cc-title { font-size: 19px; margin-bottom: 14px; padding-right: 30px; }
.fa-cc-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--fa-cc-muted); cursor: pointer; }
.fa-cc-cat { border: 1px solid #e5e5e5; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.fa-cc-cat p { margin: 6px 0 0; font-size: 13px; color: var(--fa-cc-muted); }
.fa-cc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; color: var(--fa-cc-dark); margin: 0; cursor: pointer; width: 100%; }
.fa-cc-always { font-size: 12px; font-weight: 700; color: #2e7d32; white-space: nowrap; }
.fa-cc-small { font-size: 13px; margin: 4px 0 14px; }
.fa-cc-small a { color: var(--fa-cc-accent); text-decoration: underline; }
.fa-cc-prefs .fa-cc-actions { justify-content: flex-end; margin-top: 6px; }

.fa-cc-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 44px; }
.fa-cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.fa-cc-slider { position: absolute; inset: 0; background: #bbb; border-radius: 24px; transition: background .2s; }
.fa-cc-slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.fa-cc-switch input:checked + .fa-cc-slider { background: var(--fa-cc-accent); }
.fa-cc-switch input:checked + .fa-cc-slider::before { transform: translateX(20px); }

/* button to reopen the settings */
.fa-cc-float { position: fixed; left: 16px; bottom: 16px; z-index: 99980; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--fa-cc-dark); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 12px rgba(0, 0, 0, .3); opacity: .85; }
.fa-cc-float:hover { opacity: 1; }

/* blocked embed */
.fa-cc-embed .fa-cc-ph { position: relative; width: 100%; padding-top: 56.25%; background: #1f2427; color: #fff; border-radius: 4px; }
.fa-cc-embed .fa-cc-ph-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; gap: 10px; }
.fa-cc-embed .fa-cc-ph-in p { color: #eee; margin: 0; max-width: 520px; }
.fa-cc-embed .fa-cc-ph-in strong { color: #fff; }
.fa-cc-embed .fa-cc-link { color: #ddd; }

@media (max-width: 767px) {
    .fa-cc--bar .fa-cc-inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
    .fa-cc--bar .fa-cc-actions, .fa-cc-prefs .fa-cc-actions { justify-content: stretch; }
    .fa-cc-actions .fa-cc-btn-primary, .fa-cc-actions .fa-cc-btn-dark, .fa-cc-actions .fa-cc-btn-outline { flex: 1 1 40%; }
    .fa-cc-actions .fa-cc-btn-link { order: 3; flex: 1 1 100%; }
    .fa-cc--box { left: 10px; right: 10px; bottom: 10px; width: auto; max-width: none; }
    .fa-cc-text p { font-size: 13px; }
    .fa-cc-embed .fa-cc-ph { padding-top: 0; min-height: 220px; }
    .fa-cc-embed .fa-cc-ph-in { position: static; min-height: 220px; }
}
