:root {
  --fcc-ink: #112d46;
  --fcc-ink-hover: #1d4564;
  --fcc-paper: #fffdf8;
  --fcc-text: #182433;
  --fcc-muted: #566574;
  --fcc-border: #d9e1e7;
  --fcc-soft: #eef4f7;
  --fcc-accent: #078ca0;
  --fcc-focus: #f4b942;
  --fcc-shadow: 0 18px 54px rgba(17, 45, 70, 0.2);
}

.fcc-root,
.fcc-root * {
  box-sizing: border-box;
}

.fcc-root button,
.fcc-root input {
  font: inherit;
}

.fcc-banner {
  position: fixed;
  z-index: 999998;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  width: min(1160px, calc(100% - 36px));
  padding: 20px 22px;
  transform: translateX(-50%);
  border: 1px solid var(--fcc-border);
  border-radius: 18px;
  background: var(--fcc-paper);
  color: var(--fcc-text);
  box-shadow: var(--fcc-shadow);
}

.fcc-banner__inner {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.fcc-banner__copy {
  display: flex;
  flex: 1 1 440px;
  align-items: flex-start;
  gap: 13px;
}

.fcc-shield {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #e8f6f7;
  color: var(--fcc-accent);
}

.fcc-shield svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.fcc-banner h2,
.fcc-modal h2,
.fcc-category h3 {
  margin: 0;
  color: var(--fcc-ink);
  line-height: 1.2;
}

.fcc-banner h2 {
  margin-bottom: 5px;
  font-size: 18px;
}

.fcc-banner p,
.fcc-modal p,
.fcc-category small {
  margin: 0;
  color: var(--fcc-muted);
  line-height: 1.55;
}

.fcc-banner p {
  font-size: 13.5px;
  line-height: 1.45;
}

.fcc-banner a {
  display: block;
  width: fit-content;
  margin-top: 7px;
  color: var(--fcc-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fcc-banner__actions {
  display: flex;
  flex: 0 0 auto;
  padding-left: 22px;
  align-items: center;
  gap: 8px;
  border-left: 1px solid var(--fcc-border);
}

.fcc-banner__actions .fcc-button {
  min-width: 128px;
  white-space: nowrap;
}

.fcc-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fcc-button {
  min-height: 42px;
  padding: 9px 14px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.fcc-button:hover {
  transform: translateY(-1px);
}

.fcc-button--primary {
  border-color: var(--fcc-ink);
  background: var(--fcc-ink);
  color: #fff;
}

.fcc-button--primary:hover {
  border-color: var(--fcc-ink-hover);
  background: var(--fcc-ink-hover);
}

.fcc-button--secondary {
  border-color: var(--fcc-ink);
  background: transparent;
  color: var(--fcc-ink);
}

.fcc-button--secondary:hover {
  background: var(--fcc-soft);
}

.fcc-button:focus-visible,
.fcc-icon-button:focus-visible,
.fcc-settings-trigger:focus-visible,
.fcc-inline-settings:focus-visible,
.fcc-switch input:focus-visible + span {
  outline: 3px solid var(--fcc-focus);
  outline-offset: 3px;
}

.fcc-modal[hidden],
.fcc-banner[hidden],
.fcc-settings-trigger[hidden] {
  display: none !important;
}

.fcc-modal {
  position: fixed;
  z-index: 1000000;
  inset: 0;
  display: grid;
  padding: 16px;
  place-items: center;
}

.fcc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 37, 0.68);
  backdrop-filter: blur(3px);
}

.fcc-modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(650px, calc(100dvh - 32px));
  overflow-y: auto;
  padding: 26px;
  border-radius: 18px;
  background: var(--fcc-paper);
  color: var(--fcc-text);
  box-shadow: 0 26px 80px rgba(5, 21, 33, 0.34);
}

.fcc-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.fcc-eyebrow {
  margin-bottom: 4px !important;
  color: var(--fcc-ink) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fcc-modal h2 {
  font-size: clamp(23px, 3vw, 28px);
}

.fcc-icon-button {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--fcc-border);
  border-radius: 50%;
  background: #fff;
  color: var(--fcc-ink);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.fcc-modal__intro {
  margin: 13px 0 16px !important;
  font-size: 13.5px;
  line-height: 1.45 !important;
}

.fcc-categories {
  overflow: hidden;
  border: 1px solid var(--fcc-border);
  border-radius: 14px;
  background: #fff;
}

.fcc-category {
  display: flex;
  min-height: 76px;
  padding: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--fcc-border);
}

.fcc-category:last-child {
  border-bottom: 0;
}

.fcc-category strong,
.fcc-category h3 {
  display: block;
  margin-bottom: 4px;
  color: var(--fcc-ink);
  font-size: 16px;
}

.fcc-category p,
.fcc-category small {
  display: block;
  font-size: 13px;
  line-height: 1.4;
}

.fcc-always-on {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--fcc-soft);
  color: var(--fcc-ink);
  font-size: 11px;
  font-weight: 800;
}

.fcc-switch {
  position: relative;
  display: inline-block;
  flex: 0 0 46px;
  width: 46px;
  height: 26px;
}

.fcc-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fcc-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #aeb9c2;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.fcc-switch span::before {
  position: absolute;
  bottom: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(13, 35, 51, 0.25);
  content: '';
  transition: transform 160ms ease;
}

.fcc-switch input:checked + span {
  background: var(--fcc-ink);
}

.fcc-switch input:checked + span::before {
  transform: translateX(20px);
}

.fcc-modal__actions {
  margin-top: 16px;
}

.fcc-settings-trigger {
  position: fixed;
  z-index: 999997;
  bottom: 14px;
  left: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: var(--fcc-ink);
  color: #fff;
  box-shadow: 0 6px 18px rgba(17, 45, 70, 0.2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.fcc-inline-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html.fcc-modal-open {
  overflow: hidden;
}

@media (max-width: 840px) {
  .fcc-banner {
    bottom: max(14px, env(safe-area-inset-bottom));
    width: min(680px, calc(100% - 28px));
    padding: 18px;
  }

  .fcc-banner__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .fcc-banner__copy,
  .fcc-banner__actions {
    flex-basis: auto;
  }

  .fcc-banner__actions {
    display: grid;
    width: 100%;
    padding-top: 14px;
    padding-left: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--fcc-border);
    border-left: 0;
  }

  .fcc-banner__actions .fcc-button {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .fcc-banner {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    padding: 15px;
    border-radius: 16px;
  }

  .fcc-shield {
    display: none;
  }

  .fcc-banner h2 {
    margin-bottom: 4px;
    font-size: 19px;
  }

  .fcc-banner p {
    font-size: 13px;
    line-height: 1.4;
  }

  .fcc-banner a {
    margin-top: 5px;
    font-size: 12.5px;
  }

  .fcc-banner__actions {
    padding-top: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .fcc-banner__actions .fcc-button--secondary {
    grid-column: 1 / -1;
  }

  .fcc-button {
    min-height: 40px;
    padding: 8px 6px;
    font-size: 12.5px;
  }

  .fcc-modal {
    padding: 10px;
    align-items: end;
  }

  .fcc-modal__panel {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 19px 17px max(19px, env(safe-area-inset-bottom));
    border-radius: 18px;
  }

  .fcc-modal__header {
    gap: 12px;
  }

  .fcc-modal h2 {
    max-width: 270px;
    font-size: 23px;
  }

  .fcc-icon-button {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    font-size: 23px;
  }

  .fcc-modal__intro {
    margin: 11px 0 13px !important;
    font-size: 13px;
  }

  .fcc-category {
    min-height: 68px;
    padding: 12px;
    gap: 10px;
  }

  .fcc-category strong,
  .fcc-category h3 {
    font-size: 15px;
  }

  .fcc-category p,
  .fcc-category small {
    font-size: 12.5px;
  }

  .fcc-always-on {
    padding: 5px 7px;
    font-size: 10px;
    white-space: nowrap;
  }

  .fcc-modal__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
}

@media (max-width: 360px) {
  .fcc-banner__actions,
  .fcc-modal__actions {
    grid-template-columns: 1fr;
  }

  .fcc-banner__actions .fcc-button--secondary {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fcc-root *,
  .fcc-root *::before,
  .fcc-root *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
