/* Cookie consent banner and choices panel (consent.js). Injected by nginx on
   every marketing page, so it carries its own tokens and touches nothing
   outside the fwc- prefix. */
.fwc-banner, .fwc-overlay {
  --fwc-pine: #122b1d;
  --fwc-pine-raised: #183626;
  --fwc-fairway: #17573c;
  --fwc-fairway-hover: #114630;
  --fwc-tint: #eaf2ed;
  --fwc-ink: #1b211d;
  --fwc-ink-soft: #5c665e;
  --fwc-rail-ink: #e9efe7;
  --fwc-rail-muted: #93a597;
  font-family: "Instrument Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.fwc-banner *, .fwc-overlay * { box-sizing: border-box; margin: 0; }

/* ---------------------------------------------------------------- banner */

.fwc-banner {
  position: fixed;
  z-index: 2147483646;
  left: 24px;
  bottom: 24px;
  width: min(420px, calc(100vw - 48px));
  padding: 20px 22px 18px;
  border-radius: 16px;
  background: var(--fwc-pine);
  color: var(--fwc-rail-ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), 0 24px 60px rgba(0, 0, 0, 0.32);
  animation: fwc-up 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.fwc-banner[hidden] { display: none; }
.fwc-title {
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7fc7a3;
}
.fwc-text {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(233, 239, 231, 0.88);
}
.fwc-text a { color: var(--fwc-rail-ink); text-decoration: underline; text-underline-offset: 2px; }
.fwc-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; }

/* ---------------------------------------------------------------- buttons */

.fwc-btn {
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 22px;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.fwc-btn:focus-visible { outline: 2px solid #7fc7a3; outline-offset: 3px; }
.fwc-banner .fwc-btn-accept { background: #fff; color: var(--fwc-pine); padding: 12px 30px; }
.fwc-banner .fwc-btn-accept:hover { background: var(--fwc-tint); }
.fwc-btn-manage {
  background: none;
  padding: 12px 4px;
  color: var(--fwc-rail-muted);
  font-weight: 500;
}
.fwc-btn-manage:hover { color: var(--fwc-rail-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- panel */

.fwc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(14, 36, 23, 0);
  transition: background-color 0.25s;
}
.fwc-overlay.fwc-open { background: rgba(14, 36, 23, 0.45); }
.fwc-dialog {
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  padding: 28px 28px 24px;
  border-radius: 20px 20px 0 0;
  background: #fff;
  color: var(--fwc-ink);
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fwc-open .fwc-dialog { transform: none; }
.fwc-dialog:focus { outline: none; }
.fwc-heading {
  font-family: "Newsreader", "Iowan Old Style", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.fwc-lede { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--fwc-ink-soft); }
.fwc-cats { list-style: none; padding: 0; margin-top: 18px; border-top: 1px solid rgba(27, 33, 29, 0.1); }
.fwc-cat { padding: 16px 0; border-bottom: 1px solid rgba(27, 33, 29, 0.1); }
.fwc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fwc-cat-name { font-size: 15.5px; font-weight: 600; cursor: pointer; }
.fwc-cat-body { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--fwc-ink-soft); }
.fwc-always {
  font-family: "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fwc-fairway);
}

/* A plain checkbox drawn as a switch: native semantics, custom look. */
.fwc-switch {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #cfd5d0;
  cursor: pointer;
  transition: background-color 0.15s;
}
.fwc-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.fwc-switch:checked { background: var(--fwc-fairway); }
.fwc-switch:checked::after { transform: translateX(18px); }
.fwc-switch:focus-visible { outline: 2px solid var(--fwc-fairway); outline-offset: 3px; }

.fwc-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 20px; }
.fwc-dialog .fwc-btn-accept { background: var(--fwc-fairway); color: #fff; padding: 13px 30px; }
.fwc-dialog .fwc-btn-accept:hover { background: var(--fwc-fairway-hover); }
.fwc-btn-save { background: #fff; color: var(--fwc-ink); border-color: rgba(27, 33, 29, 0.18); }
.fwc-btn-save:hover { border-color: rgba(27, 33, 29, 0.4); }
.fwc-btn-reject {
  margin-left: auto;
  background: none;
  padding: 12px 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fwc-ink-soft);
}
.fwc-btn-reject:hover { color: var(--fwc-ink); text-decoration: underline; text-underline-offset: 3px; }
.fwc-dialog .fwc-btn:focus-visible { outline-color: var(--fwc-fairway); }

html.fwc-locked, html.fwc-locked body { overflow: hidden; }

/* Desktop: the panel sits as a centered card rather than a sheet. */
@media (min-width: 640px) {
  .fwc-overlay { align-items: center; padding: 24px; }
  .fwc-dialog { border-radius: 20px; transform: translateY(24px); opacity: 0; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s; }
  .fwc-open .fwc-dialog { opacity: 1; }
}

/* Phones: the banner spans the width, and its buttons share the row. */
@media (max-width: 480px) {
  .fwc-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 18px 16px; }
  .fwc-actions { gap: 8px; }
  .fwc-banner .fwc-btn-accept { flex: 1; }
  .fwc-btn-reject { margin-left: 0; }
}

@keyframes fwc-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fwc-banner { animation: none; }
  .fwc-overlay, .fwc-dialog, .fwc-switch, .fwc-switch::after { transition: none; }
}
