.marketing-footer[hidden], .marketing-footer [hidden] { display: none !important; }

.marketing-footer {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #253951;
  text-align: center;
  font: 14px/1.45 system-ui, sans-serif;
}
.marketing-footer:has(.marketing-consent:not([hidden])) {
  min-height: calc(var(--cookie-bar-height, 58px) + max(6px, env(safe-area-inset-bottom)) + 6px);
}
html:has(.marketing-consent:not([hidden])) {
  scroll-padding-bottom: calc(var(--cookie-bar-height, 58px) + max(6px, env(safe-area-inset-bottom)) + 8px);
}

.marketing-consent {
  position: fixed;
  z-index: 40;
  left: max(6px, env(safe-area-inset-left));
  right: max(6px, env(safe-area-inset-right));
  bottom: max(6px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  max-height: 48vh;
  max-height: 48dvh;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 5px 14px;
  border: 1px solid #cbd9e9;
  border-radius: 8px;
  background: #f7faff;
  box-shadow: 0 3px 15px #20486e26;
  text-align: left;
}
.marketing-consent p { margin: 0; font: inherit; color: inherit; }
.marketing-consent__brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.marketing-consent__brand strong { color: #133e72; }
.marketing-consent__brand span { font-size: 0.9em; }
.marketing-consent a { color: #174e94; text-decoration: underline; text-underline-offset: 2px; }
.marketing-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.marketing-consent button {
  min-height: 36px;
  padding: 5px 15px;
  border: 1px solid #afc0d5;
  border-radius: 7px;
  background: #fff;
  color: #173c69;
  font: inherit;
  cursor: pointer;
}
.marketing-consent [data-marketing-choice="granted"] { background: #1459a8; border-color: #1459a8; color: #fff; }
.marketing-privacy {
  position: fixed;
  z-index: 40;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  height: 44px;
  padding: 0 14px 0 10px;
  border: 1px solid #afc6e2;
  border-radius: 24px;
  background: #fff;
  color: #174578;
  box-shadow: 0 3px 12px #16395733;
  font: 650 13px/1 system-ui, sans-serif;
  cursor: pointer;
}
.marketing-privacy:hover { border-color: #5486bb; background: #f3f8ff; }
body:has(.marketing-privacy:not([hidden])) .site-footer .footer-bottom {
  padding-inline-end: calc(106px + max(10px, env(safe-area-inset-right)));
}
.marketing-footer :focus-visible { outline: 2px solid #175bb1; outline-offset: 2px; }

@media (max-width: 700px) {
  .marketing-consent { justify-content: flex-start; padding: 7px 10px; }
  .marketing-consent button { min-height: 44px; }
  .marketing-privacy { width: 44px; padding: 0; }
  .marketing-privacy span { display: none; }
  body:has(.marketing-privacy:not([hidden])) .site-footer .footer-bottom {
    padding-inline-end: calc(50px + max(10px, env(safe-area-inset-right)));
  }
}
@media print { .marketing-footer { display: none; } }
