.consent { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 24px 60px var(--shadow-pop); }
.consent:focus { outline: none; }
.consent::backdrop { background: var(--overlay); }
.consent-overlay { margin: auto auto 12px; }
.consent h2 { font-size: 20px; letter-spacing: -.01em; }
.consent p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.consent-overlay p { font-size: 14px; line-height: 1.4; margin-top: 6px; }
.consent-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.consent-actions .button { flex: 1 1 auto; }
.consent-categories { list-style: none; margin: 4px 0 0; padding: 0; }
.consent-category { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; padding: 14px 0 0; margin-top: 14px; border-top: 1px solid var(--border); }
.consent-category h3 { font-size: 16px; font-weight: 650; }
.consent-category label { cursor: pointer; }
.consent-category p { grid-column: 1 / -1; font-size: 14px; margin-top: 4px; }
.consent-always { font-size: 13px; font-weight: 650; color: var(--muted); }
.consent-switch { -webkit-appearance: none; appearance: none; margin: 0; width: 46px; height: 28px; border-radius: 14px; border: 2px solid var(--field-border); background: radial-gradient(circle at 12px 50%, var(--field-border) 8px, var(--surface) 9px); cursor: pointer; }
.consent-switch:checked { border-color: var(--seg-on); background: radial-gradient(circle at calc(100% - 12px) 50%, var(--seg-on-text) 8px, var(--seg-on) 9px); }
.consent-float { position: fixed; left: 15px; bottom: 15px; z-index: 30; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--result-bg); color: var(--result-text); box-shadow: 0 8px 24px var(--shadow-pop); cursor: pointer; transition: transform .2s ease-in-out; }
.consent-float:hover { transform: scale(1.1); }
.consent-float:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.consent-float[hidden] { display: none; }
.consent-float svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) {
  .consent-float { transition: none; }
  .consent-float:hover { transform: none; }
}
@media (max-width: 640px) {
  .consent { padding: 18px; }
  body:has(.result-bar:not([hidden])) .consent-float { bottom: 88px; }
}
