/* Consent banner + preferences — keeps essential UI usable after reject */

.sa-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 16px;
  background: var(--bg-card, #141b2d);
  border-top: 1px solid var(--border, rgba(148, 163, 184, 0.25));
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.28);
  color: var(--text, #e2e8f0);
}

.sa-consent-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-end;
  justify-content: space-between;
}

.sa-consent-banner__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text, #1a202c);
}

.sa-consent-banner__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary, #334155);
  max-width: 62ch;
}

.sa-consent-banner__text a {
  color: var(--primary, #0d9488);
  text-decoration: underline;
}

.sa-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sa-consent__btn {
  appearance: none;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

.sa-consent__btn:focus-visible {
  outline: 2px solid var(--primary, #0d9488);
  outline-offset: 2px;
}

.sa-consent__btn--primary {
  background: var(--primary, #0f766e);
  color: #ffffff;
  border-color: var(--primary, #0f766e);
}

.sa-consent__btn--ghost {
  background: transparent;
  color: var(--text, #1a202c);
  border-color: var(--border, #cbd5e1);
}

.sa-consent-prefs {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 15, 26, 0.62);
}

.sa-consent-prefs.is-open {
  display: flex;
}

.sa-consent-prefs__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: var(--bg, #fff);
  color: var(--text, #1a202c);
  border-radius: 16px;
  border: 1px solid var(--border, #e2e8f0);
  padding: 28px 24px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.sa-consent-prefs__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary, #334155);
  min-width: 44px;
  min-height: 44px;
}

.sa-consent-prefs__close:focus-visible {
  outline: 2px solid var(--primary, #0d9488);
  outline-offset: 2px;
}

.sa-consent-prefs h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.sa-consent-prefs__lead {
  margin: 0 0 18px;
  color: var(--text-secondary, #334155);
  font-size: 0.92rem;
  line-height: 1.55;
}

.sa-consent-prefs__group {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 12px 14px 6px;
  margin: 0 0 12px;
}

.sa-consent-prefs__group legend {
  padding: 0 6px;
  font-weight: 700;
  font-size: 0.85rem;
}

.sa-consent-prefs__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary, #334155);
  cursor: pointer;
}

.sa-consent-prefs__row input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sa-consent-prefs__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .sa-consent-banner__actions {
    width: 100%;
  }
  .sa-consent-banner__actions .sa-consent__btn {
    flex: 1 1 auto;
  }
}
