.consent {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 2147483000;                 
  width: min(26rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: var(--_spacing---space--lg, 1.5rem);
  background: var(--_theme---background, var(--swatch--off-white, #f8f7f4));
  color: var(--_theme---text, var(--swatch--secondary-text, #6b6b6b));
  border-radius: var(--radius--md, 0.5rem);

  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--_theme---heading-text, #1b2a4a) 14%, transparent),
    0 1rem 2.75rem rgba(0, 0, 0, 0.18);
}
.consent[hidden] { display: none; }
.consent {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease-in, transform 180ms ease-in;
}
.consent.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 450ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}
.consent.is-in .consent_view > * {
  animation: consent-item-in 400ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.consent.is-in .consent_view > *:nth-child(1) { animation-delay: 60ms; }
.consent.is-in .consent_view > *:nth-child(2) { animation-delay: 160ms; }
.consent.is-in .consent_view > *:nth-child(3) { animation-delay: 260ms; }
.consent.is-in .consent_view > *:nth-child(4) { animation-delay: 360ms; }
@keyframes consent-item-in {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .consent { transition: none; transform: none; }
  .consent.is-in { transition: none; }
  .consent.is-in .consent_view > * { animation: none; }
}
.consent_heading { color: var(--_theme---heading-text, #1b2a4a); margin: 0 0 var(--_spacing---space--sm, 0.75rem); text-wrap: balance; }
.consent_body { color: var(--_theme---text, #6b6b6b); margin: 0 0 var(--_spacing---space--md, 1rem); text-wrap: pretty; }
.consent_link { color: var(--_theme---text-link--text, var(--swatch--navy, #1b2a4a)); text-decoration: underline; text-underline-offset: 2px; }
.consent_actions { display: flex; flex-direction: column; gap: var(--_spacing---space--sm, 0.75rem); }
.consent_actions--triple { display: grid; grid-template-columns: 1fr 1fr; gap: var(--_spacing---space--sm, 0.75rem); }
.consent_actions--triple .consent_btn--wide { grid-column: 1 / -1; }
.consent_btn_short { display: none; }
.consent_btn {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  padding: 0.75rem 1rem;   
  color: var(--_theme---button-secondary--text, var(--swatch--navy, #1b2a4a));
  background: var(--_theme---button-secondary--background, transparent);
  border: 1px solid var(--_theme---button-secondary--border, var(--swatch--navy, #1b2a4a));
  border-radius: var(--radius--md, 0.5rem);
  transition:
    background-color 200ms cubic-bezier(0.22, 1, 0.36, 1),
    color 200ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 200ms cubic-bezier(0.22, 1, 0.36, 1),
    scale 150ms ease-out;
}
.consent_btn:active { scale: 0.96; }
.consent_btn.is-block { width: 100%; }
.consent_btn:hover,
.consent_btn:focus-visible {
  background: var(--_theme---button-secondary--background-hover, var(--swatch--navy, #1b2a4a));
  color: var(--_theme---button-secondary--text-hover, var(--swatch--pure-white, #fff));
  border-color: var(--_theme---button-secondary--background-hover, var(--swatch--navy, #1b2a4a));
}
.consent_btn:focus-visible { outline: 2px solid var(--swatch--copper, #c67a3c); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .consent_btn { transition: none; } }
@media (max-width: 479px) {
  .consent_actions--triple { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .consent_actions--triple .consent_btn--wide { grid-column: auto; }
  .consent_actions--triple .consent_btn { padding: 0.75rem 0.5rem; white-space: nowrap; }
  .consent_btn_full { display: none; }
  .consent_btn_short { display: inline; }
}
.consent_categories { list-style: none; margin: 0 0 var(--_spacing---space--md, 1rem); padding: 0; display: flex; flex-direction: column; gap: var(--_spacing---space--sm, 0.75rem); }
.consent_category {
  display: flex;
  align-items: center;
  gap: var(--_spacing---space--sm, 0.75rem);
  padding: var(--_spacing---space--sm, 0.75rem);
  background: color-mix(in srgb, var(--_theme---heading-text, #1b2a4a) 6%, transparent);
  border-radius: var(--radius--md, 0.5rem);
}
.consent_category_text { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.consent_category_label { color: var(--_theme---heading-text, #1b2a4a); font-weight: 500; }
.consent_category_desc { color: var(--_theme---text, #6b6b6b); }
.consent_required { color: var(--_theme---text, #6b6b6b); white-space: nowrap; }
.consent_switch { position: relative; flex: none; width: 2.75rem; height: 1.5rem; display: inline-flex; align-items: center; cursor: pointer; }
.consent_switch:not(.is-locked)::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 2.75rem; height: 2.75rem; transform: translate(-50%, -50%);
}
.consent_switch.is-locked { cursor: default; opacity: 0.55; }
.consent_switch.is-locked .consent_switch_knob::after { transform: translate(1.25rem, -50%); }
.consent_switch_input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.consent_switch_knob {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--_theme---heading-text, #1b2a4a) 22%, transparent);
  border-radius: 999px;
  transition: background-color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.consent_switch_knob::after {
  content: ""; position: absolute; top: 50%; left: 0.2rem;
  width: 1.1rem; height: 1.1rem; transform: translate(0, -50%);
  background: var(--_theme---heading-text, #1b2a4a); border-radius: 50%;

  transition:
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.consent_switch_input:checked + .consent_switch_knob { background: var(--swatch--copper, #c67a3c); }
.consent_switch_input:checked + .consent_switch_knob::after { transform: translate(1.25rem, -50%); background: var(--swatch--pure-white, #fff); }
.consent_switch_input:focus-visible + .consent_switch_knob { outline: 2px solid var(--swatch--copper, #c67a3c); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .consent_switch_knob, .consent_switch_knob::after { transition: none; } }
.u-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
