.cookie-notice {
  position: fixed;
  z-index: 40;
  inset-inline-start: 8px;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: calc(100% - 16px);
  padding: 0 4px 0 10px;
  border: 1px solid #cbd5de;
  border-radius: 8px;
  background: #fff;
  color: #172438;
  box-shadow: 0 2px 12px #17243820;
  font-size: .75rem;
  line-height: 1.15;
}

.cookie-notice[hidden] { display: none; }
.cookie-notice span { margin-inline-end: 4px; }

.cookie-notice button {
  flex: none;
  min-width: 64px;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .15em;
  cursor: pointer;
}

.cookie-notice button:hover { background: #eef2f7; }
.cookie-notice button:focus-visible { outline: 2px solid #172438; outline-offset: -3px; }
.cookie-preferences summary { cursor: pointer; text-decoration: underline; }
.cookie-preferences .button-row { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 550px) {
  body:has(.mobile-actions:not([hidden])) .cookie-notice {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

@media print { .cookie-notice { display: none; } }
