
.f-consent {
  --f-cn-glass: var(--brand-glass, rgba(26, 26, 26, 0.70));
  --f-cn-ink: var(--brand-ink-on-dark, #FCFCFC);
  --f-cn-quiet: color-mix(in srgb, var(--f-cn-ink) 88%, transparent);
  --f-cn-edge: var(--brand-glass-edge-on-dark,
                var(--brand-glass-edge, rgba(255, 255, 255, 0.14)));
  --f-cn-line: color-mix(in srgb, #fff 16%, transparent);
  --f-cn-shadow: 0 14px 34px -18px rgb(0 0 0 / 0.55);
  --f-cn-ring: var(--brand-accent-bright, var(--brand-accent, #0074C8));
  --f-cn-btn-edge: color-mix(in srgb, var(--f-cn-ink) 40%, transparent);
  position: fixed;
  inset-inline: auto;
  left: clamp(12px, 2.5vw, 22px);
  bottom: calc(var(--f-stage-h, 0px) + clamp(12px, 2.5vw, 22px));
  z-index: 40;
  width: min(348px, calc(100vw - 24px));
  padding: 15px 16px 16px;
  border-radius: 12px;
  border: 1px solid var(--f-cn-edge);
  background: var(--f-cn-glass);
  -webkit-backdrop-filter: blur(var(--brand-glass-blur, 5px))
                           saturate(var(--brand-glass-saturate, 1.5));
  backdrop-filter: blur(var(--brand-glass-blur, 5px))
                   saturate(var(--brand-glass-saturate, 1.5));
  color: var(--f-cn-ink);
  box-shadow: var(--brand-glass-shadow, var(--f-cn-shadow));
  font: 400 13px/1.5 var(--brand-font-body, system-ui, sans-serif);
  text-wrap: pretty;
  clip-path: var(--brand-card-shape, none);
  transition: background-color .28s var(--f-ease, ease),
              color .28s var(--f-ease, ease),
              border-color .28s var(--f-ease, ease),
              box-shadow .28s var(--f-ease, ease);
}
html.f-cn-on-light .f-consent {
  --f-cn-glass: var(--brand-glass-light,
    color-mix(in srgb, var(--brand-bg, #FCFCFC) 74%, transparent));
  --f-cn-ink: var(--brand-ink-strong, #1A1A1A);
  --f-cn-quiet: color-mix(in srgb, var(--f-cn-ink) 88%, transparent);
  --f-cn-edge: var(--brand-glass-edge, color-mix(in srgb,
    var(--brand-ink, #333) 22%, transparent));
  --f-cn-line: color-mix(in srgb, #fff 60%, transparent);
  --f-cn-shadow: 0 14px 34px -20px rgb(0 0 0 / 0.30);
  --f-cn-btn-edge: color-mix(in srgb, var(--f-cn-ink) 55%, transparent);
  --f-cn-ring: var(--brand-accent, #0074C8);
}
.f-consent::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: var(--brand-card-cut, 0px);
  height: var(--brand-card-cut, 0px);
  background: linear-gradient(to bottom left,
    transparent 50%,
    var(--f-cn-edge) 50% calc(50% + 1px),
    transparent 0);
  pointer-events: none;
  z-index: 1;
}
.f-consent[hidden] { display: none; }
.f-consent-inner {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.f-consent-say { margin: 0; color: var(--f-cn-quiet); }
.f-consent-say b {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--f-cn-ink);
}
.f-consent-acts { display: flex; gap: 7px; }
.f-consent-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms var(--f-ease, ease),
              border-color 140ms var(--f-ease, ease);
}
.f-consent-yes {
  background: var(--brand-consent-fill, var(--brand-cta-bg, #E2211C));
  color: var(--brand-consent-fill-ink, var(--brand-cta-ink, #FFFFFF));
}
.f-consent-yes:hover {
  background: var(--brand-consent-fill-hover, var(--brand-cta-bg-hover, #7C1313));
}
.f-consent-yes:active {
  background: var(--brand-consent-fill-active, var(--brand-cta-bg-active, #5E0F0F));
}
.f-consent-no {
  background: transparent;
  color: var(--f-cn-ink);
  border-color: var(--f-cn-btn-edge);
}
.f-consent-no:hover {
  background: color-mix(in srgb, var(--f-cn-ink) 10%, transparent);
  border-color: var(--f-cn-ink);
}
.f-consent-more {
  align-self: flex-start;
  padding: 2px 0 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12.5px;
  color: var(--f-cn-quiet);
  text-decoration: none;
  cursor: pointer;
}
.f-consent-more:hover {
  color: var(--f-cn-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.f-consent :is(button, input, a):focus-visible {
  outline: 2px solid var(--f-cn-ring);
  outline-offset: 2px;
}
.f-consent-panel {
  display: grid;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid color-mix(in srgb, var(--f-cn-ink) 16%, transparent);
  max-height: 46dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.f-consent-panel[hidden] { display: none; }
.f-consent-opt {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px 10px;
}
.f-consent-opt input {
  margin: 1px 0 0;
  width: 18px; height: 18px;
  accent-color: var(--f-cn-ring);
}
.f-consent-opt label { font-weight: 600; cursor: pointer; color: var(--f-cn-ink); }
.f-consent-note {
  grid-column: 2;
  margin: 0;
  font-size: 12px;
  color: var(--f-cn-quiet);
}
.f-consent-fixed { margin: 0; font-size: 12px; color: var(--f-cn-quiet); }
.f-consent-fixed b { color: var(--f-cn-ink); font-weight: 600; }
.f-consent-reopen {
  position: fixed;
  inset-inline: auto;
  left: clamp(12px, 2.5vw, 22px);
  bottom: calc(var(--f-stage-h, 0px) + clamp(12px, 2.5vw, 22px)
               + var(--f-cn-lift, 0px));
  z-index: 39;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid var(--f-cn-edge, rgba(255, 255, 255, 0.14));
  background: var(--f-cn-glass, var(--brand-glass, rgba(26, 26, 26, 0.70)));
  -webkit-backdrop-filter: blur(var(--brand-glass-blur, 5px))
                           saturate(var(--brand-glass-saturate, 1.5));
  backdrop-filter: blur(var(--brand-glass-blur, 5px))
                   saturate(var(--brand-glass-saturate, 1.5));
  color: var(--brand-consent-mark-on-dark,
             var(--f-cn-ink, var(--brand-ink-on-dark, #FCFCFC)));
  box-shadow: var(--brand-glass-shadow, 0 10px 24px -14px rgb(0 0 0 / 0.5));
  transition: background-color .28s var(--f-ease, ease),
              color .28s var(--f-ease, ease),
              border-color .28s var(--f-ease, ease),
              opacity .24s var(--f-ease, ease),
              transform .18s var(--f-ease, ease);
}
.f-consent-reopen[hidden] { display: none; }
html.f-menu-open .f-consent-reopen { display: none; }
.f-consent-reopen:hover {
  border-color: var(--f-cn-ink, var(--brand-ink-on-dark, #FCFCFC));
  transform: translateY(-1px);
}
.f-consent-reopen:focus-visible {
  outline: 2px solid var(--f-cn-ring, var(--brand-accent-bright, #0074C8));
  outline-offset: 3px;
}
.f-consent-glyph { width: 22px; height: 22px; display: block; }
body:has(.f-form-engine[data-layout="page"]) .f-consent,
body:has(.f-form-engine[data-layout="page"]) .f-consent-reopen {
  display: none;
}
html.f-cn-on-light .f-consent-reopen {
  --f-cn-glass: var(--brand-glass-light,
    color-mix(in srgb, var(--brand-bg, #FCFCFC) 74%, transparent));
  --f-cn-ink: var(--brand-ink-strong, #1A1A1A);
  --f-cn-edge: var(--brand-glass-edge, color-mix(in srgb,
    var(--brand-ink, #333) 22%, transparent));
  --f-cn-ring: var(--brand-accent, #0074C8);
  background: var(--f-cn-glass);
  color: var(--brand-consent-mark, var(--f-cn-ink));
  border-color: var(--f-cn-edge);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .f-consent-reopen { background: var(--brand-surface-dark, #1A1A1A); }
  html.f-cn-on-light .f-consent-reopen { background: var(--brand-bg, #FCFCFC); }
}
@media (prefers-reduced-motion: reduce) {
  .f-consent-reopen:hover { transform: none; }
}
@media (max-width: 430px) {
  .f-consent { left: 12px; right: 12px; bottom: calc(var(--f-stage-h, 0px) + 12px);
               width: auto; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .f-consent { background: var(--brand-surface-dark, #1A1A1A); }
  html.f-cn-on-light .f-consent { background: var(--brand-bg, #FCFCFC); }
}
@media (prefers-reduced-motion: no-preference) {
  .f-consent[data-entered] {
    animation: f-consent-rise 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes f-consent-rise {
    from { transform: translateY(14px); }
    to   { transform: translateY(0); }
  }
}
@media print {
  .f-consent, .f-consent-reopen { display: none !important; }
}
