.cookie-consent {
  position: fixed;
  z-index: 1100;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
  color: #172034;
  background: #fff;
  border: 1px solid #d8deea;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgb(16 28 52 / 20%);
  font: 400 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cookie-consent[hidden] { display: none; }
.cookie-consent__content { min-width: 0; }
.cookie-consent__content strong { display: block; margin-bottom: 8px; font-size: 16px; }
.cookie-consent__content p { margin: 0; }
.cookie-consent__content p + p { margin-top: 8px; }
.cookie-consent__legal { color: #586174; font-size: 12px; }
.cookie-consent a { color: #075dcc; }
.cookie-consent__actions { display: grid; grid-template-columns: repeat(2, minmax(112px, 1fr)); gap: 10px; }
.cookie-consent__button {
  min-height: 44px;
  padding: 10px 18px;
  color: #172034;
  background: #fff;
  border: 1px solid #aeb8ca;
  border-radius: 6px;
  font: 600 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}
.cookie-consent__button--primary { color: #fff; background: #075dcc; border-color: #075dcc; }
.cookie-consent__button:focus-visible,
.cookie-settings:focus-visible { outline: 3px solid #8ebeff; outline-offset: 2px; }
.cookie-consent__button:disabled { cursor: wait; opacity: .62; }
.cookie-consent__error { color: #a42020; font-weight: 600; }
.cookie-settings {
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 1fr;
    gap: 16px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 16px;
  }
  .cookie-consent__actions { grid-template-columns: 1fr 1fr; }
}
