/* The native dialog lives above the sticky header, navigation and contact dock. */
html.adi-consent-is-open,
body.adi-consent-is-open {
  overflow: hidden;
  overscroll-behavior: none;
}

#adi-consent-dialog {
  --adi-consent-ink: #102033;
  --adi-consent-muted: #586474;
  --adi-consent-line: #c9d1da;
  position: fixed;
  inset: auto clamp(12px, 2.3vw, 32px) clamp(12px, 2.3vw, 32px) auto;
  z-index: 2147483000;
  width: min(660px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid rgba(16, 32, 51, .17);
  border-radius: 4px;
  background: #fff;
  color: var(--adi-consent-ink);
  font-family: Sora, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
  box-shadow: 0 24px 90px rgba(5, 18, 35, .22);
  -webkit-font-smoothing: antialiased;
}

#adi-consent-dialog:not([open]) { display: none; }
#adi-consent-dialog[open] { display: block; }
#adi-consent-dialog [hidden] { display: none !important; }
#adi-consent-dialog,
#adi-consent-dialog * { box-sizing: border-box; }

#adi-consent-dialog::backdrop {
  background: rgba(8, 19, 34, .53);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

#adi-consent-dialog .adi-consent__shell { padding: clamp(22px, 3.2vw, 38px); }
#adi-consent-dialog .adi-consent__eyebrow {
  display: block;
  margin: 0 50px 17px 0;
  color: var(--adi-consent-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .13em;
  text-transform: uppercase;
}

#adi-consent-dialog h2,
#adi-consent-dialog h3 {
  margin: 0 35px 18px 0;
  color: var(--adi-consent-ink);
  font-family: inherit;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.045em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

#adi-consent-dialog h3 { margin-top: 24px; font-size: 19px; letter-spacing: -.025em; }
#adi-consent-dialog p { margin: 0 0 16px; max-width: none; font-size: inherit; line-height: inherit; }
#adi-consent-dialog p:last-child { margin-bottom: 0; }
#adi-consent-dialog strong { font-weight: 600; }
#adi-consent-dialog a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
#adi-consent-dialog :is(a, button, input):focus-visible {
  outline: 2px solid #0654ae;
  outline-offset: 4px;
}
#adi-consent-dialog :is(h2, h3, [data-adi-consent-status])[tabindex="-1"]:focus { outline: none; }

#adi-consent-dialog [data-adi-consent-close] {
  position: absolute;
  top: 13px;
  right: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--adi-consent-ink);
  font: inherit;
  cursor: pointer;
}
#adi-consent-dialog [data-adi-consent-close]:hover { border-color: var(--adi-consent-line); background: #f4f6f9; }
#adi-consent-dialog [data-adi-consent-close] svg { display: block; width: 20px; height: 20px; flex: 0 0 20px; }

#adi-consent-dialog .adi-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

/* Accept and reject have exactly the same visual weight and touch target. */
#adi-consent-dialog :is([data-adi-consent-accept], [data-adi-consent-reject], [data-adi-consent-save]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid var(--adi-consent-ink);
  border-radius: 2px;
  background: var(--adi-consent-ink);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
#adi-consent-dialog :is([data-adi-consent-accept], [data-adi-consent-reject], [data-adi-consent-save]):hover {
  border-color: #293b50;
  background: #293b50;
  color: #fff;
  transform: none;
}

#adi-consent-dialog [data-adi-consent-settings] {
  grid-column: 1 / -1;
  justify-self: center;
  min-height: 44px;
  margin: 0;
  padding: 9px 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--adi-consent-ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
#adi-consent-dialog [data-adi-consent-save] { grid-column: 1 / -1; }

#adi-consent-dialog .adi-consent__option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--adi-consent-line);
  color: var(--adi-consent-ink);
  line-height: 1.6;
}
#adi-consent-dialog .adi-consent__option > :only-child { grid-column: 1 / -1; }
#adi-consent-dialog .adi-consent__option > :is(div, label) { min-width: 0; }
#adi-consent-dialog .adi-consent__option h3 { margin: 0; font-size: 17px; line-height: 1.4; letter-spacing: -.025em; }
#adi-consent-dialog .adi-consent__option p { margin-top: 6px; color: var(--adi-consent-muted); font-size: 12px; }
#adi-consent-dialog .adi-consent__option-title { display: block; font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: -.025em; }
#adi-consent-dialog .adi-consent__option-copy { display: block; margin-top: 6px; color: var(--adi-consent-muted); font-size: 12px; line-height: 1.65; }
#adi-consent-dialog .adi-consent__required { display: inline-flex; align-items: center; align-self: start; min-height: 25px; padding: 3px 7px; background: #f0f3f7; font-size: 10px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
#adi-consent-dialog .adi-consent__option input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 21px;
  min-width: 21px;
  height: 21px;
  min-height: 21px;
  margin: 3px 0 0;
  justify-self: end;
  padding: 0;
  accent-color: var(--adi-consent-ink);
  cursor: pointer;
}
#adi-consent-dialog .adi-consent__option.is-disabled { color: var(--adi-consent-muted); }
#adi-consent-dialog .adi-consent__option input:disabled { cursor: not-allowed; }
#adi-consent-dialog [data-adi-consent-signal],
#adi-consent-dialog [data-adi-consent-status] {
  margin-top: 18px;
  padding: 13px 15px;
  border-left: 2px solid var(--adi-consent-ink);
  background: #f0f3f7;
  color: var(--adi-consent-ink);
  font-size: 12px;
  line-height: 1.65;
}
#adi-consent-dialog [data-adi-consent-status].is-error { border-color: #8e2633; background: #fff1f2; color: #76222d; }
#adi-consent-dialog [data-adi-consent-status]:empty { display: none; }
#adi-consent-dialog .adi-consent__project { margin-top: 8px; border-top: 1px solid var(--adi-consent-line); border-bottom: 1px solid var(--adi-consent-line); }
#adi-consent-dialog .adi-consent__project > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding: 12px 0; list-style: none; font-size: 12px; font-weight: 500; line-height: 1.5; cursor: pointer; }
#adi-consent-dialog .adi-consent__project > summary::-webkit-details-marker { display: none; }
#adi-consent-dialog .adi-consent__project > summary::after { content: ""; display: block; flex: 0 0 18px; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat; }
#adi-consent-dialog .adi-consent__project[open] > summary::after { transform: rotate(180deg); }
#adi-consent-dialog .adi-consent__project > p { margin-bottom: 14px; color: var(--adi-consent-muted); font-size: 12px; }
#adi-consent-dialog [data-adi-delete-project] { min-height: 44px; margin: 0 0 14px; padding: 9px 13px; border: 1px solid var(--adi-consent-line); border-radius: 2px; background: #fff; color: var(--adi-consent-ink); font: inherit; font-size: 12px; line-height: 1.5; cursor: pointer; }
#adi-consent-dialog [data-adi-delete-project]:hover { background: #f0f3f7; }
#adi-consent-dialog [data-adi-privacy-status]:empty { display: none; }
#adi-consent-dialog .adi-consent__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--adi-consent-line); font-size: 12px; line-height: 1.5; }
#adi-consent-dialog .adi-consent__legal a { display: inline-flex; align-items: center; min-height: 44px; }

.adi-cookie-settings {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.4;
  text-align: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.adi-cookie-settings:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

@media (max-width: 479px) {
  #adi-consent-dialog { inset: auto 12px 12px; width: calc(100% - 24px); font-size: 13px; }
  #adi-consent-dialog .adi-consent__shell { padding: 24px 20px 20px; }
  #adi-consent-dialog .adi-consent__actions { grid-template-columns: 1fr; gap: 9px; margin-top: 20px; }
  #adi-consent-dialog h2 { margin-right: 20px; font-size: 26px; }
  #adi-consent-dialog .adi-consent__eyebrow { margin-bottom: 15px; }
  #adi-consent-dialog [data-adi-consent-close] { top: 8px; right: 8px; }
}

@media (max-width: 359px) {
  #adi-consent-dialog h2 { hyphens: none; font-size: 24px; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #adi-consent-dialog,
  #adi-consent-dialog * { scroll-behavior: auto; transition: none; animation: none; }
}
