/* The cookie notice. Loaded only on pages that carry a consent-gated tag,
 * which the server decides per request — a site with no analytics never
 * ships this file. Colours are the site's tokens. */
.dw-consent {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 80;
  max-width: 34rem;
  margin-inline: auto;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line-blue);
  border-radius: var(--r-lg);
  background: var(--surface-overlay);
  color: var(--text-body);
  box-shadow: 0 18px 48px rgb(var(--navy-0-rgb) / 0.6);
}

.dw-consent[hidden],
.dw-consent-reopen[hidden] {
  display: none;
}

.dw-consent-h {
  margin: 0 0 0.35rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-hi);
}

.dw-consent p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.dw-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem !important;
}

.dw-consent-accept,
.dw-consent-decline {
  padding: 0.55rem 1rem;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
}

.dw-consent-accept {
  border: 1px solid var(--blue-500);
  background: var(--blue-500);
  color: var(--text-on-inverse);
  font-weight: 600;
}

.dw-consent-decline {
  border: 1px solid var(--line-hover);
  background: transparent;
  color: var(--text-hi);
}

/* The way back after a "no": a small round cookie, bottom-left, out of the way
 * of the scroll cue and the CTAs that live on the right. It is only shown to a
 * visitor who declined — after a "yes" nothing is left on screen. */
.dw-consent-reopen {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 79;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-blue);
  border-radius: var(--r-round);
  background: var(--surface-overlay);
  color: var(--text-dim);
  cursor: pointer;
  box-shadow: 0 8px 24px rgb(var(--navy-0-rgb) / 0.5);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.dw-consent-reopen:hover {
  color: var(--text-hi);
  border-color: var(--line-hover);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .dw-consent-reopen {
    transition: none;
  }
}

.dw-consent-accept:focus-visible,
.dw-consent-decline:focus-visible,
.dw-consent-reopen:focus-visible {
  outline: 2px solid var(--text-accent);
  outline-offset: 2px;
}
