/* Cookie consent (blocks/consent/consent.html.twig), all portals. Ported from MoLo.
   Loaded by blocks/consent/consent-head.html.twig next to consent.js.
   A portal sets its colour with body { --cc-accent: ...; --cc-accent-dark: ...; } in its layout CSS. */
:root { --cc-accent: #144f7a; --cc-accent-dark: #0e3a5a; }
.cc[hidden], .cc [hidden], .cc-media[hidden] { display: none; }

/* banner: above the relaunch bottom nav and everything else */
.cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000; padding: 14px; display: flex; justify-content: center; }
.cc-box { width: 100%; max-width: 920px; max-height: calc(100vh - 28px); overflow-y: auto; background: #fff;
    border: 1px solid #e2e2e2; border-radius: 12px; box-shadow: 0 6px 28px rgba(0,0,0,.22); padding: 18px 20px; }
.cc-h { font-size: 17px; margin: 0 0 8px; color: #222; font-weight: 700; }
.cc-text { font-size: 14px; line-height: 1.5; color: #444; margin: 0; }
.cc-text a { color: var(--cc-accent); text-decoration: underline; }
.cc-cats { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.cc-cat { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-weight: normal; cursor: pointer; }
.cc-cat--locked { opacity: .75; cursor: default; }
.cc-cat input { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 auto; }
.cc-cat-txt { display: flex; flex-direction: column; }
.cc-cat-txt strong { font-size: 14px; color: #222; }
.cc-cat-txt small { font-size: 12px; color: #666; line-height: 1.4; }
.cc-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.cc-btn { height: 42px; padding: 0 18px; border-radius: 8px; font-size: 14px; font-weight: 600; border: 1px solid transparent; cursor: pointer; }
.cc-btn-ghost { background: #fff; border-color: #c8c8c8; color: #444; }
.cc-btn-ghost:hover { border-color: #999; color: #222; }
.cc-btn-primary { background: var(--cc-accent); border-color: var(--cc-accent); color: #fff; }
.cc-btn-primary:hover { background: var(--cc-accent-dark); border-color: var(--cc-accent-dark); }
@media (max-width: 600px) {
    .cc { padding: 0; }
    .cc-box { max-width: none; max-height: 100vh; border-radius: 14px 14px 0 0; border-left: 0; border-right: 0; border-bottom: 0;
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
    .cc-actions .cc-btn { flex: 1 1 46%; }
    .cc-actions .cc-btn-primary { flex-basis: 100%; order: -1; }
}

/* prompt before an external embed loads (video, map) */
.cc-media { position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cc-media__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.cc-media__box { position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: 12px;
    box-shadow: 0 6px 28px rgba(0,0,0,.3); padding: 20px; }

/* placeholder in place of an embed (Calendly) until external media are allowed */
.cc-embed--blocked > :not(.cc-embed__placeholder) { display: none !important; }
.cc-embed__placeholder { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
    padding: 32px 20px; margin: 10px 0; background: #f5f7f9; border: 1px dashed #c8d2db; border-radius: 12px; }
.cc-embed__placeholder p { margin: 0; max-width: 520px; font-size: 14px; line-height: 1.5; color: #444; }

/* video thumbnails that wait for external media: neutral tile with a play mark */
img[data-consent-src] { background: #e9edf1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath fill='%23777' d='M66.5 7.7a8.5 8.5 0 0 0-6-6C55.2.3 34 .3 34 .3s-21.2 0-26.5 1.4a8.5 8.5 0 0 0-6 6C.1 13 .1 24 .1 24s0 11 1.4 16.3a8.5 8.5 0 0 0 6 6C12.8 47.7 34 47.7 34 47.7s21.2 0 26.5-1.4a8.5 8.5 0 0 0 6-6C67.9 35 67.9 24 67.9 24s0-11-1.4-16.3z'/%3E%3Cpath fill='%23fff' d='M27 34l18-10-18-10z'/%3E%3C/svg%3E") center / 48px auto no-repeat;
    min-height: 90px; }
