/* The Analytics question. It sits above the film's bar, so Pause and Sound on stay free. */
.consent { position: fixed; z-index: 11; left: 0; right: 0; bottom: var(--film-bar-room, 0px); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 20px; max-height: calc(100vh - var(--film-bar-room, 0px)); max-height: calc(100dvh - var(--film-bar-room, 0px)); overflow-y: auto; padding: 10px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left)); background: var(--pane); border-top: 1px solid var(--dim); }
.consent[hidden] { display: none; }
.consent p { flex: 0 1 60ch; margin: 0; font-size: 14px; line-height: 1.4; color: var(--fg); }
.consent p a { display: inline; min-height: 0; color: var(--fg); }
/* Decline and Allow are alike in size, colour and weight, so neither is the suggested answer. */
.consent-choices { flex: 0 1 320px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-choices button { justify-content: center; min-height: 48px; padding: 4px 12px; border: 2px solid var(--fg); border-radius: 4px; background: var(--night); color: var(--fg); font-weight: 700; }
/* The current choice on the privacy page, with one button to change it. */
.consent-panel { display: grid; gap: 12px; max-width: 60ch; padding: 14px 16px; border: 2px solid var(--lamp); border-radius: 4px; background: var(--pane); }
.consent-panel[hidden] { display: none; }
.consent-panel p { margin: 0; }
.consent-panel [data-state] { display: none; }
.consent-panel[data-choice="allow"] [data-state="allow"], .consent-panel[data-choice="decline"] [data-state="decline"],
.consent-panel[data-choice="none"] [data-state="none"] { display: inline; }
.consent-panel .consent-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-panel button { min-height: 48px; padding: 4px 16px; border: 2px solid var(--fg); border-radius: 4px; background: var(--night); color: var(--fg); font-weight: 700; }
.consent-panel[data-choice="allow"] .consent-accept, .consent-panel:not([data-choice="allow"]) .consent-withdraw { display: none; }
html.asking body { padding-bottom: calc(var(--film-bar-room, 0px) + var(--consent-room, 0px) + 20px); }
html.asking { scroll-padding-bottom: calc(var(--film-bar-room, 0px) + var(--consent-room, 0px) + 12px); }
html.asking body .share-status { bottom: calc(var(--film-bar-room, 0px) + var(--consent-room, 0px) + 8px); }
