:root {
  --bc-consent-accent: #7c0a02;
  --bc-consent-accent-dark: #5e0701;
  --bc-consent-gold: #c9a95b;
  --bc-consent-bg: #fffdf9;
  --bc-consent-text: #282421;
  --bc-consent-muted: #6e6660;
  --bc-consent-border: #e6ddd3;
}
html.bc-consent-open { overflow: hidden; }
.bc-consent[hidden], .bc-consent-reopen[hidden] { display: none !important; }
.bc-consent { position: fixed; inset: 0; z-index: 2147483000; font-family: inherit; color: var(--bc-consent-text); }
.bc-consent__backdrop { position: absolute; inset: 0; background: rgba(20,16,14,.55); backdrop-filter: blur(2px); }
.bc-consent__dialog { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow: auto; background: var(--bc-consent-bg); border: 1px solid var(--bc-consent-border); border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.28); padding: 24px; outline: 0; }
.bc-consent__close { position: absolute; right: 12px; top: 8px; border: 0; background: transparent; font-size: 28px; line-height: 1; padding: 8px; cursor: pointer; color: var(--bc-consent-muted); }
.bc-consent__eyebrow { margin: 0 0 6px; color: var(--bc-consent-accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bc-consent h2 { margin: 0 36px 10px 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; }
.bc-consent p { line-height: 1.5; }
.bc-consent__links { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0 0; font-size: 14px; }
.bc-consent__links a { color: var(--bc-consent-accent); text-decoration: underline; text-underline-offset: 3px; }
.bc-consent__actions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 20px; }
.bc-consent__actions--settings { grid-template-columns: 1fr 1fr; }
.bc-consent__btn { min-height: 46px; border-radius: 10px; padding: 10px 14px; font-weight: 700; cursor: pointer; border: 1px solid transparent; }
.bc-consent__btn:focus-visible, .bc-consent__close:focus-visible, .bc-consent-reopen:focus-visible, .bc-switch input:focus-visible + span { outline: 3px solid rgba(124,10,2,.28); outline-offset: 2px; }
.bc-consent__btn--primary { background: var(--bc-consent-accent); color: #fff; }
.bc-consent__btn--primary:hover { background: var(--bc-consent-accent-dark); }
.bc-consent__btn--secondary { background: #fff; border-color: var(--bc-consent-text); color: var(--bc-consent-text); }
.bc-consent__btn--outline { background: #fff; border-color: var(--bc-consent-gold); color: var(--bc-consent-text); }
.bc-consent__settings { margin-top: 20px; border-top: 1px solid var(--bc-consent-border); padding-top: 8px; }
.bc-consent__category { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--bc-consent-border); cursor: pointer; }
.bc-consent__category strong { display: block; font-size: 16px; margin-bottom: 3px; }
.bc-consent__category p { margin: 0; color: var(--bc-consent-muted); font-size: 14px; }
.bc-consent__always { white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--bc-consent-accent); }
.bc-switch { position: relative; flex: 0 0 auto; }
.bc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bc-switch span { display: block; width: 48px; height: 28px; background: #c9c2bc; border-radius: 999px; position: relative; transition: .2s ease; }
.bc-switch span:after { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: .2s ease; }
.bc-switch input:checked + span { background: var(--bc-consent-accent); }
.bc-switch input:checked + span:after { transform: translateX(20px); }
.bc-consent-reopen { position: fixed; left: 14px; bottom: 14px; z-index: 2147482000; border: 1px solid var(--bc-consent-border); background: #fff; color: var(--bc-consent-text); border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 12px; font-weight: 700; box-shadow: 0 5px 18px rgba(0,0,0,.12); cursor: pointer; }
@media (max-width: 650px) {
  .bc-consent__dialog { bottom: 0; width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; padding: 20px 16px calc(18px + env(safe-area-inset-bottom)); }
  .bc-consent__actions, .bc-consent__actions--settings { grid-template-columns: 1fr; }
  .bc-consent__category { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .bc-switch span, .bc-switch span:after { transition: none; }
}
