.marketing-consent {
  position: fixed; z-index: 5; inset: auto 0 0; background: #153342; color: #fff;
  border-top: 2px solid #45c2de; padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 12px #15334224; font-size: .82rem; line-height: 1.3;
}
.marketing-consent[hidden], .marketing-preferences[hidden] { display: none; }
.marketing-consent-inner {
  display: flex; align-items: center; justify-content: space-between; gap: .4rem 1rem;
  max-width: 74rem; margin: auto; padding: .32rem max(.8rem, env(safe-area-inset-left)) .32rem max(.8rem, env(safe-area-inset-right));
}
.marketing-consent p { margin: 0; }
.marketing-consent-actions, .cookie-settings-actions { display: flex; gap: .4rem; justify-content: flex-end; }
.marketing-consent button, .cookie-settings button {
  min-height: 44px; border: 1px solid currentColor; border-radius: .3rem;
  padding: .25rem .6rem; background: transparent; color: inherit; font: inherit;
  font-weight: 650; line-height: 1.1; cursor: pointer;
}
.marketing-consent .cookie-action-primary { background: #63d7ed; border-color: #63d7ed; color: #102c39; }
.marketing-consent button:focus-visible, .cookie-settings :is(button, input):focus-visible {
  outline: 2px solid currentColor; outline-offset: 2px;
}
.nm-app ~ .marketing-consent {
  bottom: calc(83px + env(safe-area-inset-bottom, 0px)); max-width: 480px; margin-inline: auto; padding-bottom: 0;
}
.nm-app ~ .marketing-consent .marketing-consent-inner { flex-direction: column; align-items: stretch; }

.cookie-settings {
  position: fixed; inset: 0; margin: auto; width: min(30rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem); overflow: auto; padding: 1rem; color: #153342; background: #fff;
  border: 1px solid #c9d7da; border-radius: .5rem; line-height: 1.35;
}
.cookie-settings::backdrop { background: #102c398c; }
.cookie-settings-heading { display: flex; gap: .45rem; align-items: center; justify-content: space-between; }
.cookie-settings h2 { margin: 0; font-size: 1.28rem; }
.cookie-settings-heading button { min-width: 44px; font-size: 1.3rem; }
.cookie-settings dl { margin: .65rem 0 1rem; }
.cookie-settings dl > div { border-top: 1px solid #dce5e7; padding: .55rem 0; }
.cookie-settings dt { display: flex; align-items: center; gap: .55rem; justify-content: space-between; font-weight: 700; }
.cookie-settings dt span { font-size: .74rem; color: #43545b; }
.cookie-settings dd { margin: .05rem 0 0; font-size: .84rem; color: #43545b; }
.cookie-settings input { width: 1.1rem; height: 1.1rem; accent-color: #006987; flex: none; }
.cookie-settings label { display: flex; align-items: center; min-height: 36px; cursor: pointer; }
.cookie-settings .cookie-action-primary { background: #153342; color: #fff; }
.cookie-settings-actions { flex-wrap: wrap; }

.marketing-preferences {
  min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit;
  font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer;
}
@media (max-width: 680px) {
  .marketing-consent-inner { flex-direction: column; align-items: stretch; gap: .3rem; padding: .35rem .55rem; }
  .marketing-consent-actions { justify-content: stretch; }
  .marketing-consent-actions button { flex: 1 1 0; padding-inline: .25rem; }
}
