.fx-consent {
  --fx-consent-surface: rgba(255, 255, 255, .75);
  --fx-consent-text: #071c38;
  --fx-consent-muted: #263d5c;
  --fx-consent-border: rgba(66, 105, 155, .32);
  --fx-consent-button: #ffffff;
  --fx-consent-accent: #005fc7;
  font-family: "Century Gothic FormaFX", "Century Gothic", Arial, sans-serif;
  color: var(--fx-consent-text);
}
:root[data-theme="dark"] .fx-consent {
  --fx-consent-surface: rgba(10, 18, 33, .75);
  --fx-consent-text: #f7faff;
  --fx-consent-muted: #d2dff2;
  --fx-consent-border: rgba(135, 174, 226, .38);
  --fx-consent-button: #16253e;
  --fx-consent-accent: #216bca;
}
.fx-consent [hidden] { display: none !important; }
.fx-consent-banner, .fx-consent-dialog, .fx-consent-manage {
  background: var(--fx-consent-surface);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid var(--fx-consent-border);
  box-shadow: 0 16px 48px rgba(0, 15, 38, .2);
  color: var(--fx-consent-text);
}
.fx-consent-banner {
  position: fixed;
  z-index: 10020;
  inset-inline: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(960px, calc(100% - 32px));
  margin-inline: auto;
  border-radius: 20px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.fx-consent-introduction { flex: 1; min-width: 0; }
.fx-consent h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--fx-consent-text);
}
.fx-consent p {
  color: var(--fx-consent-muted);
  margin: 0 0 9px;
  font-size: .87rem;
  line-height: 1.55;
}
.fx-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-consent-button, .fx-consent-manage, .fx-consent-close {
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border: 1px solid var(--fx-consent-border);
  color: var(--fx-consent-text);
  background: var(--fx-consent-button);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.fx-consent-button { border-radius: 11px; padding: 11px 15px; min-height: 44px; font-size: .82rem; }
.fx-consent-primary { color: #fff; background: var(--fx-consent-accent); border-color: var(--fx-consent-accent); }
.fx-consent button:hover { border-color: var(--fx-consent-accent); box-shadow: 0 0 0 2px rgba(38, 126, 232, .14); }
.fx-consent :is(button, a, input):focus-visible { outline: 3px solid #2b95ff; outline-offset: 3px; }
.fx-consent-policy { color: var(--fx-consent-text); text-decoration: underline; text-underline-offset: 3px; font-size: .8rem; }
.fx-consent-manage {
  display: flex;
  align-items: center;
  gap: 8px;
  position: fixed;
  z-index: 10015;
  bottom: max(12px, env(safe-area-inset-bottom));
  inset-inline-start: 12px;
  max-width: calc(100vw - 24px);
  border-radius: 24px;
  padding: 10px 15px;
  min-height: 44px;
  font-size: .76rem;
}
.fx-consent :is(h2, .fx-consent-manage) svg { width: 20px; height: 20px; flex: 0 0 20px; }
.fx-consent-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: min(740px, calc(100dvh - 32px));
  margin: auto;
  padding: 23px;
  border-radius: 22px;
  overflow: auto;
  overscroll-behavior: contain;
}
.fx-consent-dialog::backdrop { background: rgba(2, 10, 24, .24); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.fx-consent-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.fx-consent-dialog-header h2 { padding-top: 8px; }
.fx-consent-close { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; font-size: 1.6rem; line-height: 1; }
.fx-consent-fields { display: grid; gap: 10px; margin-bottom: 15px; }
.fx-consent-preference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--fx-consent-border);
  border-radius: 13px;
  padding: 14px;
  cursor: pointer;
}
.fx-consent-preference strong { display: block; font-size: .92rem; margin-bottom: 4px; }
.fx-consent-detail { display: block; font-size: .82rem; line-height: 1.5; color: var(--fx-consent-muted); }
.fx-consent input { flex: 0 0 21px; width: 21px; height: 21px; margin: 0; accent-color: var(--fx-consent-accent); }
.fx-consent input:disabled { opacity: .75; cursor: default; }
.fx-consent-retention { margin-block: 13px !important; }
.fx-consent-dialog .fx-consent-actions { margin-top: 20px; justify-content: flex-end; }
.fx-consent p.fx-consent-error { color: #ad1641; font-weight: 700; margin-top: 9px; }
:root[data-theme="dark"] .fx-consent p.fx-consent-error { color: #ffb0c5; }
.fx-consent-notice { font-weight: 700; }
@media (max-width: 780px) {
  .fx-consent-banner { display: block; padding: 17px; border-radius: 17px; max-height: calc(100dvh - 24px); overflow: auto; }
  .fx-consent-banner .fx-consent-actions { margin-top: 14px; }
  .fx-consent-banner .fx-consent-button { flex: 1; padding-inline: 10px; }
}
@media (max-width: 380px) {
  .fx-consent-banner { inset-inline: 10px; width: calc(100% - 20px); bottom: max(10px, env(safe-area-inset-bottom)); }
  .fx-consent-dialog { padding: 17px; }
  .fx-consent-dialog .fx-consent-button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-consent *, .fx-consent *::before, .fx-consent *::after { transition: none !important; animation: none !important; }
}
