.nstv-consent {
  color: var(--nstv-ink, #193d29);
  background: var(--nstv-paper, #f7f4e8);
  font-size: 16px;
  line-height: 1.6;
  /* Keep footer controls above the fixed back-to-top control supplied by Astra. */
  padding: 16px 24px 72px;
}
.nstv-consent [hidden] { display: none !important; }
.nstv-consent-bar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.nstv-consent-bar p { margin: 0; }
.nstv-consent-button,
.nstv-consent-close {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--nstv-brand, #174c30);
  border-radius: 10px;
  background: #fff;
  color: var(--nstv-brand, #174c30);
  font: inherit;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
}
.nstv-consent-button:hover,
.nstv-consent-close:hover { background: var(--nstv-soft, #eef3e6); }
.nstv-consent button:focus-visible,
.nstv-consent-error:focus {
  outline: 3px solid var(--nstv-action, #246b45);
  outline-offset: 3px;
}
.nstv-consent-dialog {
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 620px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border: 1px solid var(--nstv-line, #dfe5d8);
  border-radius: var(--nstv-radius, 18px);
  color: var(--nstv-ink, #193d29);
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
}
.nstv-consent-dialog:not([open]) { display: none; }
.nstv-consent-dialog::backdrop { background: rgb(13 35 22 / 65%); }
.nstv-consent-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.nstv-consent-heading h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.nstv-consent-close { flex: 0 0 44px; padding: 4px; font-size: 24px; }
.nstv-consent-dialog p { margin: 0 0 16px; }
.nstv-consent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nstv-consent-actions button { flex: 1 1 220px; }
.nstv-consent-error { color: #7a271a; background: #fff3ed; padding: 12px; border-radius: 8px; }
@media (max-width: 390px) {
  .nstv-consent { padding: 16px 16px 72px; }
  .nstv-consent-dialog { padding: 20px; }
  .nstv-consent-heading h2 { font-size: 22px; }
}
