/* ==========================================================================
   Cookie consent banner.

   Loaded by every shipped page, which is why it is its own file: the landing
   page uses v4.css, the legal pages use legal.css and 404 uses 404.css, so
   there is no existing stylesheet all four share.

   Deliberately outside the .stage/.scaler canvas that v4.js scales, so the
   banner keeps its real size at every viewport width instead of shrinking
   with the artboard.
   ========================================================================== */

.consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 100;
  width: calc(100vw - 48px);
  max-width: 360px;
  padding: 20px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #1e1e1e;
  background: #fff;
  border: 1px solid #e9e7e0;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(33, 20, 10, 0.12);
}

.consent[hidden] {
  display: none;
}

.consent-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.consent-body {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #3e3e3e;
}

.consent-body a {
  color: #48599d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-body a:hover {
  text-decoration: none;
}

.consent-actions {
  display: flex;
  gap: 12px;
}

.consent-btn {
  flex: 1;
  height: 42px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  color: #1e1e1e;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d9d6cd;
  border-radius: 10px;
}

.consent-btn:hover {
  background: #f6f6f6;
}

.consent-btn-accept {
  color: #fff;
  background: #48599d;
  border-color: #48599d;
}

.consent-btn-accept:hover {
  background: #3d4d8b;
}

.consent-btn:focus-visible,
.consent a:focus-visible {
  outline: 2px solid #48599d;
  outline-offset: 2px;
}

/* Acknowledgement shown for a few seconds after a choice, so the banner
   confirms what happened rather than just vanishing. */
.consent-ack {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.consent-ack-mark {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  border-radius: 50%;
}

.consent-ack-accepted .consent-ack-mark { background: #078f0c; }
.consent-ack-rejected .consent-ack-mark { background: #6c6c6c; }

.consent-ack-title {
  margin: 0 0 2px;
  font-size: 14.5px;
  font-weight: 600;
}

.consent-ack-detail {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #3e3e3e;
}

@media (max-width: 560px) {
  .consent {
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-width: none;
  }
}
