.sb-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  max-width: 520px;
  margin-left: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(20, 20, 18, .18), 0 2px 6px rgba(20, 20, 18, .06);
  border: 1px solid rgba(20, 20, 18, .08);
  padding: 1.4rem 1.4rem 1.2rem;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  color: var(--ink, #131211);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.sb-consent.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.sb-consent[hidden] { display: none !important; }

.sb-consent h2 {
  font-family: var(--serif, Georgia, serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 .55rem;
  letter-spacing: .005em;
}
.sb-consent p {
  font-size: .88rem;
  line-height: 1.55;
  color: var(--muted, #5a554d);
  margin: 0 0 1rem;
}
.sb-consent p a { color: var(--ink, #131211); text-decoration: underline; text-underline-offset: 2px; }

.sb-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.sb-consent-btn {
  appearance: none;
  border: 1px solid rgba(20, 20, 18, .14);
  background: #fff;
  color: var(--ink, #131211);
  font: inherit;
  font-size: .88rem;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.sb-consent-btn:hover { border-color: rgba(20, 20, 18, .28); }
.sb-consent-btn-primary {
  background: var(--ink, #131211);
  color: #fff;
  border-color: var(--ink, #131211);
}
.sb-consent-btn-primary:hover { background: #2a2825; border-color: #2a2825; color: #fff; }

.sb-consent-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  border-top: 1px solid rgba(20, 20, 18, .08);
  font-size: .9rem;
}
.sb-consent-toggle:first-of-type { border-top: 0; padding-top: 0; }
.sb-consent-toggle-label { font-weight: 500; }
.sb-consent-toggle-desc { color: var(--muted, #5a554d); font-size: .8rem; margin-top: .2rem; line-height: 1.45; }
.sb-consent-toggle-text { flex: 1; min-width: 0; }
.sb-consent-toggle-text small { display: block; }

.sb-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.sb-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.sb-switch input:disabled { cursor: not-allowed; }
.sb-switch-track {
  position: absolute;
  inset: 0;
  background: #d4cfc4;
  border-radius: 999px;
  transition: background .2s ease;
}
.sb-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.sb-switch input:checked ~ .sb-switch-track { background: var(--gold, #b89968); }
.sb-switch input:checked ~ .sb-switch-thumb { transform: translateX(18px); }
.sb-switch input:disabled ~ .sb-switch-track { background: #c2ad8c; opacity: .6; }

.sb-consent-details { margin: 0 0 1rem; }
.sb-consent[data-view="overview"] .sb-consent-details { display: none; }
.sb-consent[data-view="details"] .sb-consent-text-overview { display: none; }
.sb-consent[data-view="details"] .sb-consent-actions .sb-consent-btn-customize { display: none; }

.sb-consent-link {
  background: none;
  border: 0;
  color: var(--muted, #5a554d);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  padding: .3rem 0 0;
}

@media (max-width: 480px) {
  .sb-consent {
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    padding: 1.1rem 1rem 1rem;
  }
  .sb-consent h2 { font-size: 1.05rem; }
  .sb-consent-btn { flex: 1 1 auto; padding: .7rem .8rem; }
}
