/* ============================================================
   Cookie consent banner — opt-in (GTM loads only after Accept).
   Brand-matched to the V2 dark surface. Tokens fall back to
   literal values so the banner renders even if a token is absent.
   ============================================================ */

.fc-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: clamp(12px, 2.5vw, 22px);
  transform: translateY(130%);
  transition: transform 0.5s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
  pointer-events: none;
}

.fc-consent.is-open {
  transform: translateY(0);
  pointer-events: auto;
}

.fc-consent__panel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 3vw, 34px);
  background: rgba(13, 17, 22, 0.94);
  border: 1px solid var(--line-2, rgba(243, 244, 245, 0.14));
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

/* brand hairline accent on the leading edge */
.fc-consent__panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--frame-deepwater, #0f4c81);
}

.fc-consent__eyebrow {
  margin: 0 0 7px;
  font-family: var(--font-condensed, "IBM Plex Sans Condensed", sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--frame-conduit, #639dcd);
}

.fc-consent__msg {
  margin: 0;
  max-width: 64ch;
  font-family: var(--font-body, "IBM Plex Sans", system-ui, sans-serif);
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.5;
  color: var(--frame-clearspan, #f3f4f5);
}

.fc-consent__msg a {
  color: var(--frame-conduit, #639dcd);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fc-consent__msg a:hover {
  color: var(--frame-clearspan, #f3f4f5);
}

.fc-consent__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fc-btn {
  font-family: var(--font-condensed, "IBM Plex Sans Condensed", sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fc-btn--accept {
  background: var(--frame-deepwater, #0f4c81);
  border-color: var(--frame-deepwater, #0f4c81);
  color: #fff;
}

.fc-btn--accept:hover {
  background: var(--frame-ballast, #0b3559);
  border-color: var(--frame-ballast, #0b3559);
}

.fc-btn--decline {
  background: transparent;
  border-color: var(--line-3, rgba(243, 244, 245, 0.22));
  color: var(--frame-clearspan, #f3f4f5);
}

.fc-btn--decline:hover {
  border-color: var(--frame-galvanized, #8f98a3);
  background: rgba(243, 244, 245, 0.05);
}

.fc-btn:focus-visible {
  outline: 2px solid var(--focus-ring, #639dcd);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .fc-consent__panel {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .fc-consent__actions {
    width: 100%;
  }
  .fc-btn {
    flex: 1;
    text-align: center;
  }
}

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