#fs-consent-root {
  --fs-consent-blue: #0b57d0;
  --fs-consent-blue-dark: #0842a0;
  --fs-consent-text: #202124;
  --fs-consent-muted: #5f6368;
  --fs-consent-border: #d9dde3;
  color: var(--fs-consent-text);
  font: 15px/1.45 var(--font-sans, Inter, system-ui, sans-serif);
  position: relative;
  z-index: 2147483000;
}

#fs-consent-root [hidden] { display: none !important; }
#fs-consent-root *, #fs-consent-root *::before, #fs-consent-root *::after { box-sizing: border-box; }

.fs-consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(560px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--fs-consent-border);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(20, 28, 42, .28);
  z-index: 2147483002;
}

.fs-consent-banner h2,
.fs-consent-modal h2 {
  color: var(--fs-consent-text);
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0 0 10px;
}

.fs-consent-banner p,
.fs-consent-modal p { margin: 0 0 12px; }
.fs-consent-policy-links { font-size: .92rem; }
.fs-consent-policy-links a { color: var(--fs-consent-blue); text-decoration: underline; }

.fs-consent-actions,
.fs-consent-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.fs-consent-button,
.fs-consent-close,
.fs-consent-icon {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.fs-consent-button {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--fs-consent-blue);
  border-radius: 8px;
  font-weight: 700;
}

.fs-consent-primary { background: var(--fs-consent-blue); color: #fff; }
.fs-consent-primary:hover { background: var(--fs-consent-blue-dark); }
.fs-consent-secondary { background: #fff; color: var(--fs-consent-blue); }
.fs-consent-secondary:hover { background: #eef4ff; }
.fs-consent-link-button { background: transparent; border-color: transparent; color: var(--fs-consent-blue); text-decoration: underline; }

.fs-consent-button:focus-visible,
.fs-consent-close:focus-visible,
.fs-consent-icon:focus-visible,
.fs-consent-switch input:focus-visible + .fs-consent-switch-track {
  outline: 3px solid #f9ab00;
  outline-offset: 3px;
}

.fs-consent-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, .64);
  z-index: 2147483003;
}

.fs-consent-modal {
  position: fixed;
  z-index: 2147483004;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  padding: 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.fs-consent-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.fs-consent-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eef1f5;
  color: #202124;
  font-size: 1.8rem;
  line-height: 1;
}

.fs-consent-intro { color: var(--fs-consent-muted); }
.fs-consent-categories { border-top: 1px solid var(--fs-consent-border); }

.fs-consent-category {
  min-width: 0;
  margin: 0;
  padding: 17px 0;
  border: 0;
  border-bottom: 1px solid var(--fs-consent-border);
}

.fs-consent-category legend {
  float: none;
  width: auto;
  margin: 0 0 6px;
  padding: 0;
  color: var(--fs-consent-text);
  font-size: 1rem;
  font-weight: 750;
}

.fs-consent-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.fs-consent-category-row p { color: var(--fs-consent-muted); margin: 0; }
.fs-consent-required, .fs-consent-gpc-note { display: block; margin-top: 7px; color: var(--fs-consent-blue-dark); font-weight: 700; }

.fs-consent-switch { position: relative; display: inline-flex; cursor: pointer; }
.fs-consent-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fs-consent-switch-track {
  display: block;
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #747b85;
  transition: background-color .16s ease;
}
.fs-consent-switch-track::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  transition: transform .16s ease;
}
.fs-consent-switch input:checked + .fs-consent-switch-track { background: var(--fs-consent-blue); }
.fs-consent-switch input:checked + .fs-consent-switch-track::after { transform: translateX(20px); }
.fs-consent-switch input:disabled + .fs-consent-switch-track { cursor: not-allowed; opacity: .58; }

.fs-consent-modal footer.fs-consent-modal-footer {
  justify-content: flex-end;
  margin: 0;
  padding: 18px 0 0;
  border: 0;
  background: #fff !important;
  box-shadow: none;
  color: var(--fs-consent-text);
}
.fs-consent-modal-footer .fs-consent-button {
  display: inline-flex;
  flex: 0 1 200px;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  line-height: 1.2;
  text-align: center;
}
.fs-consent-icon {
  position: fixed;
  left: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fs-consent-blue);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  z-index: 2147483002;
}
.fs-consent-icon:hover { background: var(--fs-consent-blue-dark); }
.fs-consent-icon svg { width: 27px; height: 27px; fill: currentColor; }
body.fs-consent-modal-open { overflow: hidden !important; }

@media (max-width: 600px) {
  .fs-consent-banner { right: 10px; bottom: 10px; width: calc(100vw - 20px); padding: 18px; }
  .fs-consent-modal { width: calc(100vw - 20px); max-height: calc(100vh - 20px); padding: 18px; }
  .fs-consent-actions .fs-consent-button { width: 100%; }
  .fs-consent-modal-footer .fs-consent-button { flex: 1 1 100%; width: 100%; min-width: 0; }
  .fs-consent-category-row { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  #fs-consent-root *, #fs-consent-root *::before, #fs-consent-root *::after { scroll-behavior: auto !important; transition: none !important; }
}
