:root {
  --font-display: "Aptos Display", "Segoe UI", Arial, sans-serif;
  --font-body: "Aptos", "Segoe UI", Arial, sans-serif;
}

body.consent-dialog-open { overflow: hidden; }

.footer-consent-button {
  padding: 0;
  color: inherit;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  font-size: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.consent-banner {
  position: fixed;
  z-index: 500;
  right: 24px;
  bottom: 24px;
  width: min(520px, calc(100vw - 48px));
  padding: 28px;
  color: var(--ink);
  border: 1px solid rgba(9, 27, 42, .14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(9, 27, 42, .2);
}

.consent-banner[hidden] { display: none; }
.consent-banner__eyebrow {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.consent-banner h2 { margin-bottom: 10px; font: 600 25px/1.2 var(--font-display); }
.consent-banner p { margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.consent-button--solid { background: var(--blue); color: #fff; }
.consent-button:disabled { cursor: wait; opacity: .55; }
.consent-status { min-height: 1.5em; margin: 12px 0 0; color: #8a341c; font-size: 12px; }

.consent-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  color: var(--ink);
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(9, 27, 42, .34);
}
.consent-dialog::backdrop { background: rgba(4, 17, 27, .68); }
.consent-dialog__inner { padding: 32px; }
.consent-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.consent-dialog__header h2 { margin-bottom: 8px; font: 600 30px/1.15 var(--font-display); }
.consent-dialog__header p { color: var(--muted); font-size: 14px; }
.consent-dialog__close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.consent-category { margin: 24px 0; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: #f7f9f8; }
.consent-category__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.consent-category strong { font: 600 17px var(--font-display); }
.consent-category p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.consent-category input { width: 20px; height: 20px; accent-color: var(--blue); }
.consent-dialog__note { padding-left: 14px; border-left: 3px solid var(--cyan); color: var(--muted); font-size: 13px; }
.consent-dialog .consent-actions { justify-content: flex-end; margin-top: 26px; }

@media (max-width: 600px) {
  .consent-banner { right: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 22px; }
  .consent-actions { align-items: stretch; flex-direction: column; }
  .consent-button { width: 100%; }
  .consent-dialog__inner { padding: 24px 20px; }
  .consent-dialog__header h2 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner, .consent-dialog { scroll-behavior: auto; }
}
