/* ============================================================
 * dh-analytics.css — consent banner + re-open control.
 *
 * Deliberately self-contained: hard-coded brand values instead of
 * var(--token), because this loads on legacy pages (PDPs, collections,
 * search) that do NOT include dh-v2.css, so the design tokens are absent
 * there. Values mirror dh-v2.css: ink #1F1D1A, paper #FBF8F1, sand #F5F0E6,
 * terra #B85543, line rgba(31,29,26,.13).
 * No inline styles anywhere (classes only) to satisfy the strict per-path CSP.
 * ============================================================ */

.dh-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000; /* above everything, incl. cart drawer */
  display: flex;
  justify-content: center;
  padding: clamp(0.75rem, 0.5rem + 1.5vw, 1.25rem);
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.dh-cookie[data-open="true"] { transform: translateY(0); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .dh-cookie { transition: none; }
}

.dh-cookie__inner {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.4rem;
  background: #FBF8F1;
  color: #1F1D1A;
  border: 1px solid rgba(31, 29, 26, 0.13);
  border-radius: 14px;
  box-shadow: 0 12px 40px -12px rgba(31, 29, 26, 0.32);
  padding: clamp(0.9rem, 0.7rem + 1vw, 1.25rem) clamp(1rem, 0.8rem + 1.2vw, 1.5rem);
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

.dh-cookie__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #3a352f;
}
.dh-cookie__text strong { color: #1F1D1A; font-weight: 600; }
.dh-cookie__text a {
  color: #B85543;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dh-cookie__text a:hover { color: #95412f; }

.dh-cookie__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 0.6rem;
}

.dh-cookie__btn {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid #1F1D1A;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}
/* Reject is given equal weight to Accept (TDDDG / EDPB: reject as easy as
   accept) — same size, same click, solid border, full-contrast dark text. */
.dh-cookie__btn--ghost { background: transparent; color: #1F1D1A; }
.dh-cookie__btn--ghost:hover { background: rgba(31, 29, 26, 0.06); }
.dh-cookie__btn--solid { background: #B85543; border-color: #B85543; color: #FBF8F1; }
.dh-cookie__btn--solid:hover { background: #a44a39; border-color: #a44a39; }
.dh-cookie__btn:focus-visible { outline: 2px solid #B85543; outline-offset: 3px; }

@media (max-width: 560px) {
  .dh-cookie__actions { flex: 1 1 100%; }
  .dh-cookie__btn { flex: 1 1 0; text-align: center; }
}

/* Persistent, re-openable withdrawal control (appears once a choice exists). */
.dh-cookie-reopen {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 2147482000;
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c655c;
  background: rgba(251, 248, 241, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(31, 29, 26, 0.13);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.18s ease, color 0.18s ease;
}
.dh-cookie-reopen:hover { opacity: 1; color: #1F1D1A; }
.dh-cookie-reopen:focus-visible { outline: 2px solid #B85543; outline-offset: 2px; opacity: 1; }
