/* Cookie consent: native to the site's tokens (cream surface, charcoal text, terracotta accent). */
.dp-consent {
  --dpc-primary: var(--dp-primary, #CA4B00);
  --dpc-primary-dark: #B84624;
  --dpc-ink: #1C1B1F;
  --dpc-muted: #49454F;
  --dpc-border: #E6DDD7;
  --dpc-bg: #FFFBF9;
  position: fixed;
  z-index: 9990;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  pointer-events: none;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.dp-consent[hidden] { display: none; }
.dp-consent--bottom-right { justify-content: flex-end; }
.dp-consent--bottom-left { justify-content: flex-start; }
.dp-consent--bottom-bar { left: 0; right: 0; bottom: 0; justify-content: center; }

.dp-consent__card {
  pointer-events: auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 26rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.25rem;
  background: var(--dpc-bg);
  color: var(--dpc-ink);
  border: 1px solid var(--dpc-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(28, 27, 31, .12), 0 2px 6px rgba(28, 27, 31, .06);
  animation: dp-consent-in .18s ease-out;
}
.dp-consent--bottom-bar .dp-consent__card {
  max-width: none;
  border-radius: 16px 16px 0 0;
  border-width: 1px 0 0;
}
.dp-consent--bottom-bar .dp-consent__view[data-dp-view="banner"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .25rem 2rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
}
.dp-consent--bottom-bar .dp-consent__view[data-dp-view="banner"] .dp-consent__actions { grid-row: 1 / span 2; grid-column: 2; margin: 0; flex-wrap: nowrap; }
.dp-consent--bottom-bar .dp-consent__view[data-dp-view="prefs"] { max-width: 40rem; margin: 0 auto; }

@keyframes dp-consent-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dp-consent__title {
  margin: 0 0 .4rem;
  font: 700 1.0625rem/1.3 "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  letter-spacing: -.01em;
  color: var(--dpc-ink);
}
.dp-consent__text { margin: 0; font-size: .875rem; line-height: 1.55; color: var(--dpc-muted); }
.dp-consent__text a, .dp-consent__links a { color: var(--dpc-primary); text-decoration: underline; text-underline-offset: 2px; }
.dp-consent__text a:hover, .dp-consent__links a:hover { color: var(--dpc-primary-dark); }

.dp-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; }
.dp-consent__btn {
  min-height: 2.75rem;
  padding: .6rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 .875rem/1.2 Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.dp-consent__btn--primary { background: var(--dpc-primary); color: #fff; }
.dp-consent__btn--primary:hover { background: var(--dpc-primary-dark); }
.dp-consent__btn--secondary { background: #fff; color: var(--dpc-ink); border-color: #D2C6BE; }
.dp-consent__btn--secondary:hover { border-color: var(--dpc-ink); }
.dp-consent__btn--link { background: transparent; color: var(--dpc-muted); padding-inline: .5rem; text-decoration: underline; text-underline-offset: 3px; }
.dp-consent__btn--link:hover { color: var(--dpc-primary); }
.dp-consent__btn:focus-visible, .dp-consent__close:focus-visible, .dp-consent-open:focus-visible, .dp-consent__switch input:focus-visible + .dp-consent__slider {
  outline: 2px solid var(--dpc-primary);
  outline-offset: 2px;
}

.dp-consent__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.dp-consent__close { background: none; border: 0; font-size: 1.5rem; line-height: 1; padding: .1rem .4rem; border-radius: 8px; color: var(--dpc-muted); cursor: pointer; }
.dp-consent__close:hover { color: var(--dpc-ink); }

.dp-consent__cats { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.dp-consent__cat { padding: .85rem 1rem; background: #fff; border: 1px solid var(--dpc-border); border-radius: 12px; }
.dp-consent__cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dp-consent__cat-name { font-weight: 700; font-size: .9375rem; color: var(--dpc-ink); }
.dp-consent__always { font: 600 .6875rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .04em; text-transform: uppercase; color: #166534; }
.dp-consent__cat-desc { margin: .35rem 0 0; font-size: .8125rem; line-height: 1.5; color: var(--dpc-muted); }
.dp-consent__note { margin: .75rem 0 0; font-size: .8125rem; line-height: 1.5; color: var(--dpc-muted); }
.dp-consent__links { display: flex; gap: 1rem; margin: .9rem 0 0; font-size: .8125rem; }

.dp-consent__switch { position: relative; flex: 0 0 auto; width: 2.75rem; height: 1.5rem; }
.dp-consent__switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.dp-consent__slider { position: absolute; inset: 0; border-radius: 999px; background: #CFC5BD; transition: background-color .15s; }
.dp-consent__slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.dp-consent__switch input:checked + .dp-consent__slider { background: var(--dpc-primary); }
.dp-consent__switch input:checked + .dp-consent__slider::after { transform: translateX(1.25rem); }

.dp-consent-open {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: color .15s ease;
}
.dp-footer-bottom-links .dp-consent-open { color: #94A3B8; }
.dp-footer-bottom-links .dp-consent-open:hover { color: #CA4B00; }

/* Phones: full-width bottom sheet with comfortable buttons. */
@media (max-width: 640px) {
  .dp-consent, .dp-consent--bottom-bar { left: 0; right: 0; bottom: 0; }
  .dp-consent__card, .dp-consent--bottom-bar .dp-consent__card {
    max-width: none;
    max-height: 85vh;
    border-radius: 18px 18px 0 0;
    border-width: 1px 0 0;
    padding: 1.1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }
  .dp-consent--bottom-bar .dp-consent__view[data-dp-view="banner"] { display: block; }
  .dp-consent__actions { flex-direction: column; align-items: stretch; }
  .dp-consent--bottom-bar .dp-consent__view[data-dp-view="banner"] .dp-consent__actions { flex-wrap: wrap; margin-top: 1rem; }
  .dp-consent__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .dp-consent__card { animation: none; }
  .dp-consent__btn, .dp-consent__slider, .dp-consent__slider::after { transition: none; }
}
