/* Cookie consent notice. Fixed to the bottom corner, so it never shifts the page (no layout shift).
   Compact by default (one line + Accept / Reject); "Cookie details" opens the full notice (.is-open). */
.bbcc { position: fixed; left: 16px; bottom: 16px; z-index: 99990; width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 14px 16px; border: 1px solid #e3e8f1; border-radius: 14px; font: 14px/1.5 "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #0f172a; background: #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .06), 0 24px 48px -20px rgba(15, 23, 42, .35); opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease; }
.bbcc.is-in { opacity: 1; transform: none; }
.bbcc[hidden] { display: none; }
.bbcc.is-open { width: min(460px, calc(100vw - 32px)); padding: 18px 20px 16px; }

/* Compact line */
.bbcc__short { margin: 0 0 12px; color: #334155; }
.bbcc__more { padding: 0; border: 0; font: inherit; font-weight: 700; color: #1446bf; background: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bbcc.is-open .bbcc__short { display: none; }

/* Full notice */
.bbcc__langs { display: flex; gap: 4px; margin: 0 0 10px; }
.bbcc:not(.is-open) .bbcc__langs { display: none; }
.bbcc__langs button { padding: 3px 10px; border: 1px solid #e3e8f1; border-radius: 999px; font: 600 12px/1.6 inherit; color: #475569; background: #fff; cursor: pointer; }
.bbcc__detail[hidden] { display: none; }
.bbcc__title { margin: 0 0 6px; font-weight: 700; font-size: 16px; color: #0f172a; }
.bbcc__body { margin: 0 0 12px; color: #334155; }
.bbcc__prefs { display: grid; gap: 8px; margin: 0 0 12px; }
.bbcc__pref { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0; padding: 10px 12px; border: 1px solid #e3e8f1; border-radius: 12px; cursor: pointer; }
.bbcc__pref b { display: block; font-size: 14px; color: #0f172a; }
.bbcc__pref small { display: block; font-size: 12.5px; line-height: 1.45; color: #5b6475; }
.bbcc__pref em { flex: none; font-size: 12px; font-style: normal; font-weight: 700; color: #0a7a52; }
.bbcc__pref input { flex: none; appearance: none; -webkit-appearance: none; position: relative; width: 40px; height: 22px; margin: 0; border-radius: 999px; background: #cbd2df; cursor: pointer; transition: background-color .2s; }
.bbcc__pref input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.bbcc__pref input:checked { background: #1446bf; }
.bbcc__pref input:checked::after { transform: translateX(18px); }
.bbcc__pref input:focus-visible { outline: 2px solid #1446bf; outline-offset: 2px; }
.bbcc__links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 12px; font-size: 12.5px; color: #5b6475; }
.bbcc__links a { color: #1446bf; }

/* Buttons: Accept and Reject look the same on purpose (equally easy, no nudging). */
.bbcc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bbcc.is-open .bbcc__actions { grid-template-columns: 1fr 1fr 1fr; }
.bbcc__btn { min-height: 40px; padding: 8px 10px; border-radius: 10px; font: 700 13.5px/1.2 inherit; cursor: pointer; }
.bbcc__btn[hidden] { display: none; }
.bbcc-open { padding: 0; border: 0; font: inherit; color: inherit; background: none; text-decoration: underline; cursor: pointer; }

@media (max-width: 520px) {
	.bbcc, .bbcc.is-open { left: 8px; right: 8px; bottom: 8px; width: auto; }
	.bbcc { padding: 12px 14px; font-size: 13.5px; }
	.bbcc.is-open { padding: 14px 14px 12px; }
	.bbcc.is-open .bbcc__actions { grid-template-columns: 1fr 1fr; }
	.bbcc__actions [data-bbcc="save"] { grid-column: 1 / -1; order: 2; }
}
@media (prefers-reduced-motion: reduce) { .bbcc { transition: none; } }

/* ---------- Button states ----------
   The theme styles every <button> on hover/focus (white text, its own background and border). These rules are scoped to
   the notice with an ID, so they always win, and they define every state explicitly. */
#bbcc .bbcc__btn,
#bbcc .bbcc__btn:visited { border: 1.5px solid #1446bf; color: #1446bf; background: #fff; box-shadow: none; text-decoration: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
#bbcc .bbcc__btn:hover { border-color: #1446bf; color: #fff; background: #1446bf; }
#bbcc .bbcc__btn:focus { border-color: #1446bf; color: #1446bf; background: #fff; outline: none; }
#bbcc .bbcc__btn:focus:hover { color: #fff; background: #1446bf; }
#bbcc .bbcc__btn:focus-visible { outline: 3px solid #93b0f5; outline-offset: 2px; }
#bbcc .bbcc__btn:active { border-color: #0f37a0; color: #fff; background: #0f37a0; }
#bbcc .bbcc__more,
#bbcc .bbcc__more:hover,
#bbcc .bbcc__more:focus { padding: 0; border: 0; color: #1446bf; background: none; box-shadow: none; }
#bbcc .bbcc__more:hover { color: #0f37a0; }
#bbcc .bbcc__more:focus-visible { outline: 3px solid #93b0f5; outline-offset: 2px; border-radius: 4px; }
#bbcc .bbcc__langs button,
#bbcc .bbcc__langs button:focus { border: 1px solid #e3e8f1; color: #475569; background: #fff; box-shadow: none; outline: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
#bbcc .bbcc__langs button:hover { border-color: #1446bf; color: #1446bf; background: #eef2fc; }
#bbcc .bbcc__langs button[aria-pressed="true"],
#bbcc .bbcc__langs button[aria-pressed="true"]:hover,
#bbcc .bbcc__langs button[aria-pressed="true"]:focus { border-color: #1446bf; color: #fff; background: #1446bf; }
#bbcc .bbcc__langs button:focus-visible { outline: 3px solid #93b0f5; outline-offset: 2px; }
#bbcc .bbcc__links a:hover { color: #0f37a0; }
