/* Uses the existing brand tokens, icon, typography and button variants. */
body { padding-bottom: var(--cookie-space, 0px); }
.cookie-notice, .cookie-panel { position: fixed; z-index: 80; bottom: max(12px, env(safe-area-inset-bottom)); right: 20px; width: min(600px, calc(100% - 40px)); padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 12px 50px #0008; font-size: 14px; line-height: 1.5; }
.cookie-notice[hidden], .cookie-panel[hidden], .cookie-panel [hidden] { display: none !important; }
.cookie-heading { display: flex; align-items: center; gap: 10px; }
.cookie-heading img { flex: 0 0 auto; }
.cookie-heading h2 { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -.02em; text-transform: none; }
.cookie-notice p, .cookie-panel p { margin: 10px 0; color: var(--soft-text); }
.cookie-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cookie-actions .button { min-height: 44px; padding: 10px 16px; font-size: 11px; letter-spacing: .04em; }
.cookie-policy-link { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions .cookie-policy-link { margin-right: auto; }
.cookie-panel { width: min(480px, calc(100% - 40px)); max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; }
.cookie-close { flex: 0 0 44px; height: 44px; margin: -8px -8px -8px auto; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--soft-text); font-size: 26px; cursor: pointer; }
.cookie-category { padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin: 14px 0; }
.cookie-category-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.cookie-category h3 { font-size: 15px; margin: 0; }
.cookie-category p { margin-bottom: 0; }
.cookie-active { color: var(--mint); font-size: 12px; }
.cookie-record, .cookie-error { font-size: 12px; }
.cookie-panel .cookie-error { color: #fda4af; }
.cookie-footer-link { appearance: none; background: none; border: 0; padding: 8px 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.cookie-inventory { width: 100%; border-collapse: collapse; font-size: 14px; margin-block: 24px; }
.cookie-inventory th, .cookie-inventory td { text-align: left; vertical-align: top; padding: 14px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.cookie-inventory code { font-size: 12px; }
@media (max-width: 600px) {
  .cookie-notice, .cookie-panel { right: 10px; width: calc(100% - 20px); padding: 14px; border-radius: 16px; font-size: 13px; }
  .cookie-heading h2 { font-size: 16px; }
  .cookie-notice .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cookie-notice .cookie-policy-link { grid-column: 1 / -1; }
  .cookie-notice p { margin: 8px 0 0; }
  .cookie-notice .cookie-actions { margin-top: 8px; }
  .cookie-panel { max-height: calc(100dvh - 92px); }
  .cookie-category { padding: 10px; margin: 10px 0; }
  .cookie-inventory thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cookie-inventory tr, .cookie-inventory tbody { display: block; }
  .cookie-inventory tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; padding: 10px; }
  .cookie-inventory th, .cookie-inventory td { display: block; border: 0; padding: 4px; }
}
