.soel-consent-root {
  font-family: var(--font-sans, "Outfit", sans-serif);
}
.soel-consent-root[hidden] { display: none !important; }

.soel-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(42rem, calc(100% - 1.5rem));
  margin: 0 auto 1rem;
  background: var(--ink, #161814);
  color: var(--paper, #f6f1e8);
  box-shadow: 0 12px 40px rgba(22, 24, 20, 0.28);
}
.soel-consent-banner-inner { padding: 1.15rem 1.25rem 1.2rem; }
.soel-consent-banner h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif, "Fraunces", serif);
  font-size: 1.25rem;
  font-weight: 560;
  color: inherit;
}
.soel-consent-banner p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(246, 241, 232, 0.78);
}
.soel-consent-banner a { color: inherit; text-decoration: underline; }

.soel-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.soel-consent-btn {
  appearance: none;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(246, 241, 232, 0.35);
  background: transparent;
  color: var(--paper, #f6f1e8);
  cursor: pointer;
}
.soel-consent-btn--primary {
  background: var(--paper, #f6f1e8);
  color: var(--ink, #161814);
  border-color: transparent;
}
.soel-consent-btn:hover { background: #2a312e; }
.soel-consent-btn--primary:hover { background: #efe7d8; }
.soel-consent-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.4rem 0.2rem;
}

.soel-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(22, 24, 20, 0.45);
}

.soel-consent-dialog {
  position: fixed;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 auto;
  z-index: 91;
  width: min(32rem, calc(100% - 1.5rem));
  max-height: min(38rem, calc(100vh - 2rem));
  overflow: auto;
  background: var(--ink, #161814);
  color: var(--paper, #f6f1e8);
  box-shadow: 0 12px 40px rgba(22, 24, 20, 0.28);
}
.soel-consent-dialog-header {
  padding: 1.1rem 1.2rem 0.85rem;
  border-bottom: 1px solid rgba(246, 241, 232, 0.14);
}
.soel-consent-dialog-header h2 {
  margin: 0;
  font-family: var(--font-serif, "Fraunces", serif);
  font-size: 1.2rem;
  font-weight: 560;
}
.soel-consent-dialog-body { padding: 1rem 1.2rem; }
.soel-consent-dialog-body > p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(246, 241, 232, 0.78);
}
.soel-consent-group {
  margin-bottom: 0.7rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(246, 241, 232, 0.16);
}
.soel-consent-group h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 560;
}
.soel-consent-group p {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(246, 241, 232, 0.72);
}
.soel-consent-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.soel-consent-toggle input { width: 1rem; height: 1rem; accent-color: #efe7d8; }
.soel-consent-dialog-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0 1.2rem 1.15rem;
}

.soel-consent-history-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.soel-consent-history-list li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(246, 241, 232, 0.14);
  font-size: 0.88rem;
  line-height: 1.45;
}
.soel-consent-history-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

@media (max-width: 900px) {
  .soel-consent-banner { margin-bottom: 4.5rem; }
  .soel-consent-actions { flex-direction: column; align-items: stretch; }
  .soel-consent-btn, .soel-consent-link { width: 100%; text-align: center; }
}
