/*
 * Measurement choice panel.
 *
 * Light paper surface, neutral ink and graphite only. Declining is not an
 * error, so nothing in this panel uses the red signal colour — including the
 * focus ring, which must override the page-level `:focus-visible` outline.
 */

.consent-banner {
  position: fixed;
  z-index: 1000;
  right: clamp(14px, 2.4vw, 32px);
  bottom: clamp(14px, 2.4vw, 32px);
  width: min(560px, calc(100vw - 28px));
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid #c3c0b7;
  background:
    radial-gradient(circle at 82% 0%, rgb(255 255 255 / 70%), transparent 52%),
    #f3f1eb;
  color: #11110f;
  box-shadow: 0 20px 60px rgb(17 17 15 / 18%);
  font-family: "Hanken Grotesk", sans-serif;
}

.consent-banner[hidden] { display: none; }

.consent-banner::after {
  position: absolute;
  inset: 0;
  background: url("/brand-assets/identity-photography/grain-overlay.svg");
  content: "";
  opacity: .1;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.consent-banner__content,
.consent-banner__actions { position: relative; z-index: 1; }

.consent-banner__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #5c5d58;
  font: 500 10px/1.2 "IBM Plex Mono", monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.consent-banner__eyebrow::before {
  width: 7px;
  height: 7px;
  background: #11110f;
  content: "";
}

.consent-banner h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 300;
  letter-spacing: -.042em;
  line-height: 1;
}

.consent-banner p {
  max-width: 54ch;
  margin: 16px 0 0;
  color: #3d3e3a;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.55;
}

.consent-banner a { color: inherit; text-underline-offset: 4px; }

.consent-banner__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.consent-banner__button,
.cookie-settings {
  border-radius: 0;
  font: 500 10px/1 "IBM Plex Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.consent-banner__button {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #11110f;
  background: transparent;
  color: #11110f;
  transition: background .2s ease, color .2s ease;
}

.consent-banner__button--accept {
  background: #11110f;
  color: #faf8f2;
}

.consent-banner__button:hover { background: #5c5d58; border-color: #5c5d58; color: #faf8f2; }

/* Class + pseudo-class beats the pages' bare `:focus-visible { outline: red }`,
   whichever stylesheet loads last. Declining must never look like a warning. */
.consent-banner__button:focus-visible {
  outline: 2px solid #11110f;
  outline-offset: 3px;
  border-color: #11110f;
}

.cookie-settings {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

.cookie-settings:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 560px) {
  .consent-banner {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    padding: 18px 16px 16px;
  }

  .consent-banner h2 { font-size: 24px; }
  .consent-banner p { margin-top: 12px; font-size: 14px; }
  .consent-banner__actions { grid-template-columns: 1fr; margin-top: 18px; }
  .consent-banner__button { min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner *, .consent-banner *::before, .consent-banner *::after { transition: none !important; }
}
