#fs-consent-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
}

.fs-consent-btn:focus-visible,
.fs-consent-option input:focus-visible {
  outline: 2px solid rgba(31, 122, 79, 0.3);
  outline-offset: 2px;
}

.fs-consent-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(420px, calc(100vw - 32px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

#fs-consent-root.is-open .fs-consent-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fs-consent-body {
  border: 1px solid #dbe5f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  padding: 18px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
}

.fs-consent-eyebrow {
  margin: 0 0 8px;
  color: #1f7a4f;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fs-consent-title {
  margin: 0;
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1.2;
}

.fs-consent-desc {
  margin: 10px 0 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
}

.fs-consent-options {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.fs-consent-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid #dbe5f0;
  border-radius: 14px;
  background: #f8fafc;
}

.fs-consent-option.is-disabled {
  background: #f1f5f9;
}

.fs-consent-option-copy {
  display: grid;
  gap: 4px;
}

.fs-consent-option-title {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 700;
}

.fs-consent-option-desc {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.fs-consent-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #1f7a4f;
  flex: 0 0 auto;
}

.fs-consent-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fs-consent-btn {
  min-height: 42px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0 12px;
}

.fs-consent-btn-secondary {
  border: 1px solid #dbe5f0;
  background: #ffffff;
  color: #334155;
}

.fs-consent-btn-primary {
  border: 1px solid #1f7a4f;
  background: #1f7a4f;
  color: #ffffff;
}

@media (max-width: 640px) {
  .fs-consent-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 12px;
  }

  .fs-consent-actions {
    grid-template-columns: 1fr;
  }
}
