.marketing-consent { padding: 0; }
.marketing-consent__banner {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 12px;
  padding: 1rem;
  background: var(--pp-color-surface, #fff);
  color: var(--pp-color-ink, #18241e);
  border-top: 1px solid var(--pp-color-line, #d8dfda);
  box-shadow: 0 -3px 16px rgb(0 0 0 / 6%);
}
.marketing-consent__banner a:not(.btn) { color: inherit; text-decoration: underline; }
.marketing-consent__title { color: inherit; font-size: 1rem; margin: 0 0 .25rem; }
.marketing-consent__actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.marketing-consent__actions form { margin: 0; }
.marketing-consent button { min-height: 44px; cursor: pointer; }
.marketing-consent__actions button { min-width: 5.5rem; }
/* Shared footer disclosure remains usable without JavaScript. */
.marketing-consent__footer { padding: 1rem; }
.marketing-footer__privacy { font-size: .875rem; max-inline-size: 100%; text-align: start; }
.marketing-footer__privacy summary { display: inline-flex; align-items: center; min-block-size: 44px; cursor: pointer; list-style: none; }
.marketing-footer__privacy summary::-webkit-details-marker { display: none; }
.marketing-footer__privacy summary:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: .18em; }
.marketing-footer__privacy details[open] { max-inline-size: 32rem; }
.marketing-footer__privacy details[open] .marketing-consent__dialog-content { background: #fff; color: #18241e; }
.marketing-consent__dialog {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  border: 0;
  border-radius: .5rem;
  padding: 0;
  background: #fff;
  color: #18241e;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 30%);
}
.marketing-consent__dialog::backdrop { background: rgb(0 0 0 / 55%); }
.marketing-consent__dialog-content { display: grid; gap: 16px; padding: 1.5rem; }
.checkout-field-error { color: #a52a2a; margin-block: .5rem 0; }
.event-reminder__active { display: flex; align-items: center; gap: .5rem; }
@media (min-width: 48rem) {
  .marketing-consent__banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 1rem 2rem; }
  .marketing-consent__banner .marketing-consent__actions { flex-shrink: 0; }
}

.marketing-consent__description { margin: 0; font-size: .8125rem; line-height: 1.5; }
.marketing-consent__dialog-content h2 { margin: 0; font-size: 1.25rem; }
.marketing-preferences__toggle { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.marketing-preferences__label { cursor: pointer; }
.marketing-preferences__note { font-size: .8125rem; color: var(--pp-color-muted, #59665e); }
.marketing-preferences__switch { appearance: none; flex-shrink: 0; width: 44px; height: 26px; border: 1px solid #62756a; border-radius: 20px; background: #e2e8e4; cursor: pointer; padding: 3px; }
.marketing-preferences__switch::before { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: #59665e; }
.marketing-preferences__switch:checked { background: var(--pp-color-brand, #198754); }
.marketing-preferences__switch:checked::before { background: #fff; transform: translateX(18px); }
.marketing-preferences__switch:focus-visible { outline: 3px solid var(--pp-color-brand, #198754); outline-offset: 3px; }
.surface-body:has(.marketing-consent--bottom .marketing-consent__banner) { padding-bottom: var(--marketing-consent-height, 240px); }
.surface-body .marketing-consent--bottom .marketing-consent__banner {
  position: fixed;
  inset-inline: 0;
  bottom: calc(var(--navigation-mobile-height, 64px) + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  max-height: 45dvh;
  overflow-y: auto;
}
@media (min-width: 1024px) {
  .surface-body .marketing-consent--bottom .marketing-consent__banner { left: var(--side-nav-inset, 72px); bottom: 0; }
}
