/* Sekolah Digital Tracking - banner consent (netral, tiga tombol berbobot setara) */
.sdt-consent {
  --sdt-bg: #ffffff;
  --sdt-fg: #1f2933;
  --sdt-muted: #52606d;
  --sdt-line: #d5dbe1;
  --sdt-accent: #1f2933;
  --sdt-focus: #2563eb;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  padding: 12px;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--sdt-fg);
}
.sdt-consent[hidden] { display: none; }

@media (prefers-color-scheme: dark) {
  .sdt-consent {
    --sdt-bg: #1b1f24;
    --sdt-fg: #e8ecf0;
    --sdt-muted: #aab4be;
    --sdt-line: #3a434d;
    --sdt-accent: #e8ecf0;
    --sdt-focus: #7aa7ff;
  }
}

.sdt-consent__inner {
  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 20px;
  background: var(--sdt-bg);
  border: 1px solid var(--sdt-line);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.18);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

.sdt-consent__title {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--sdt-fg);
}
.sdt-consent__text { margin: 0; color: var(--sdt-muted); }
.sdt-consent__text a { color: var(--sdt-fg); text-decoration: underline; }

.sdt-consent__panel { margin-top: 14px; border-top: 1px solid var(--sdt-line); }
.sdt-consent__panel[hidden] { display: none; }
.sdt-consent__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sdt-line);
}
.sdt-consent__label { display: flex; flex-direction: column; gap: 2px; }
.sdt-consent__label strong { font-weight: 600; }
.sdt-consent__label span { color: var(--sdt-muted); font-size: 14px; }

.sdt-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
/* Semua tombol memakai gaya yang sama: tidak ada pilihan yang lebih menonjol. */
.sdt-btn {
  flex: 1 1 140px;
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  color: var(--sdt-fg);
  background: transparent;
  border: 1.5px solid var(--sdt-accent);
  border-radius: 8px;
  cursor: pointer;
}
.sdt-btn[hidden] { display: none; }
.sdt-btn:hover { background: rgba(127, 127, 127, 0.12); }
.sdt-btn:focus-visible,
.sdt-switch input:focus-visible + .sdt-switch__ui {
  outline: 3px solid var(--sdt-focus);
  outline-offset: 2px;
}

/* Saklar */
.sdt-switch { position: relative; flex: 0 0 auto; display: inline-block; width: 46px; height: 26px; margin-top: 2px; }
.sdt-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sdt-switch__ui {
  position: absolute;
  inset: 0;
  background: var(--sdt-line);
  border-radius: 26px;
  transition: background 0.15s ease;
  pointer-events: none;
}
.sdt-switch__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--sdt-bg);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}
.sdt-switch input:checked + .sdt-switch__ui { background: var(--sdt-accent); }
.sdt-switch input:checked + .sdt-switch__ui::after { transform: translateX(20px); }
.sdt-switch input:disabled + .sdt-switch__ui { opacity: 0.55; }
.sdt-switch input:disabled { cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
  .sdt-switch__ui,
  .sdt-switch__ui::after { transition: none; }
}

@media (max-width: 480px) {
  .sdt-consent { padding: 8px; }
  .sdt-consent__inner { padding: 16px; }
  .sdt-btn { flex-basis: 100%; }
}
