/* Cookie consent — public landings */
#sim-cc-root {
  --sim-cc-bg: #0f172a;
  --sim-cc-surface: #ffffff;
  --sim-cc-text: #0f172a;
  --sim-cc-muted: #64748b;
  --sim-cc-border: #e2e8f0;
  --sim-cc-accent: #0d6efd;
  --sim-cc-accent-hover: #0b5ed7;
  --sim-cc-danger: #334155;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.45;
  z-index: 1080;
}

#sim-cc-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1081;
}

#sim-cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1082;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: var(--sim-cc-surface);
  color: var(--sim-cc-text);
  border-top: 1px solid var(--sim-cc-border);
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
}

.sim-cc-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .sim-cc-banner__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.sim-cc-banner__title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.sim-cc-banner__text {
  margin: 0;
  color: var(--sim-cc-muted);
  font-size: 0.875rem;
}

.sim-cc-banner__text a {
  color: var(--sim-cc-accent);
  text-decoration: underline;
}

.sim-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.sim-cc-btn {
  appearance: none;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  line-height: 1.2;
}

.sim-cc-btn:focus-visible {
  outline: 2px solid var(--sim-cc-accent);
  outline-offset: 2px;
}

.sim-cc-btn--primary {
  background: var(--sim-cc-accent);
  color: #fff;
}

.sim-cc-btn--primary:hover {
  background: var(--sim-cc-accent-hover);
}

.sim-cc-btn--secondary {
  background: #fff;
  border-color: var(--sim-cc-border);
  color: var(--sim-cc-text);
}

.sim-cc-btn--secondary:hover {
  background: #f8fafc;
}

.sim-cc-btn--ghost {
  background: transparent;
  border-color: var(--sim-cc-border);
  color: var(--sim-cc-danger);
}

.sim-cc-btn--ghost:hover {
  background: #f1f5f9;
}

#sim-cc-panel {
  position: fixed;
  z-index: 1083;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 1.5rem));
  max-height: min(88vh, 720px);
  overflow: auto;
  background: var(--sim-cc-surface);
  color: var(--sim-cc-text);
  border-radius: 0.75rem;
  border: 1px solid var(--sim-cc-border);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  padding: 1.15rem 1.15rem 1rem;
}

.sim-cc-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sim-cc-panel__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.sim-cc-panel__close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--sim-cc-muted);
  padding: 0.15rem 0.35rem;
}

.sim-cc-panel__intro {
  margin: 0 0 1rem;
  color: var(--sim-cc-muted);
  font-size: 0.875rem;
}

.sim-cc-cat {
  border: 1px solid var(--sim-cc-border);
  border-radius: 0.5rem;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.6rem;
}

.sim-cc-cat__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sim-cc-cat__label {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.sim-cc-cat__desc {
  margin: 0.35rem 0 0;
  color: var(--sim-cc-muted);
  font-size: 0.8125rem;
}

.sim-cc-switch {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.sim-cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.sim-cc-switch__slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sim-cc-switch__slider::before {
  content: "";
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  left: 0.18rem;
  top: 0.175rem;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
}

.sim-cc-switch input:checked + .sim-cc-switch__slider {
  background: var(--sim-cc-accent);
}

.sim-cc-switch input:checked + .sim-cc-switch__slider::before {
  transform: translateX(1.2rem);
}

.sim-cc-switch input:disabled + .sim-cc-switch__slider {
  opacity: 0.7;
  cursor: not-allowed;
}

.sim-cc-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--sim-cc-border);
}

[hidden] {
  display: none !important;
}
