.cookie-consent[hidden],
.cookie-consent [hidden] { display: none !important; }

.cookie-consent {
  position: fixed;
  z-index: 90;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2rem);
  max-height: 85vh;
  overflow: auto;
  padding: 1.25rem clamp(1rem, 3vw, 3rem);
  border: 0;
  background: #fff;
  box-shadow: none;
  color: #666;
  font: 400 .88rem/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cookie-consent:focus-visible { outline: none; }

.cookie-consent__heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cookie-consent__description { max-width: 66rem; margin: 0; }
.cookie-consent__description a { color: #111; text-decoration: underline; text-underline-offset: .12em; }
.cookie-consent__description a:hover { color: #333; }
.cookie-consent__actions { display: flex; align-items: center; gap: .75rem; flex: none; }
.cookie-consent__button {
  min-width: 6.5rem;
  min-height: 2.75rem;
  padding: .55rem 1.2rem;
  border: 1px solid #dedede;
  border-radius: .38rem;
  font-family: inherit;
  font-size: .86rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}
.cookie-consent__button--outline { background: #fff; color: #111; }
.cookie-consent__button--primary { border-color: #111; background: #111; color: #fff; }
.cookie-consent__button--outline:hover,
.cookie-consent__button--primary:hover {
  border-color: var(--home-blue, #146bff);
  background: var(--home-blue, #146bff);
  color: #fff;
}
.cookie-settings-trigger { padding: 0; border: 0; background: none; font: inherit; text-align: start; cursor: pointer; }
body.has-cookie-banner .a11y-fab { bottom: calc(var(--cookie-banner-height, 0px) + 1rem); }

.cookie-consent.is-customizing {
  inset-inline: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: block;
  width: min(46rem, calc(100% - 2rem));
  max-height: min(85vh, 44rem);
  margin-inline: auto;
  padding: 1.4rem;
  border: 1px solid #d1d5db;
  border-radius: .85rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .2);
  color: #111827;
}
.cookie-consent.is-customizing .cookie-consent__heading {
  position: static;
  display: flex;
  align-items: center;
  width: auto;
  height: auto;
  margin-bottom: .6rem;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}
.cookie-consent__heading h2 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.cookie-consent__close { margin-inline-start: auto; padding: 0 .35rem; border: 0; background: none; color: #475569; font-size: 1.6rem; cursor: pointer; }
.cookie-consent.is-customizing .cookie-consent__description { margin-bottom: 1rem; }
.cookie-consent__details { margin-bottom: 1rem; border: 1px solid #e2e8f0; border-radius: .7rem; overflow: hidden; }
.cookie-consent__category { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; }
.cookie-consent__category + .cookie-consent__category { border-top: 1px solid #e2e8f0; }
.cookie-consent__category strong { display: block; font-size: .94rem; }
.cookie-consent__category small { display: block; margin-top: .18rem; color: #475569; font-size: .81rem; }
.cookie-consent__always { flex: none; color: #475569; font-size: .78rem; }
.cookie-consent__category input { width: 1.25rem; height: 1.25rem; flex: none; accent-color: #111; cursor: pointer; }
.cookie-consent.is-customizing .cookie-consent__actions { justify-content: flex-end; }

@media (max-width: 900px) {
  .cookie-consent:not(.is-customizing) { flex-direction: column; align-items: stretch; gap: .85rem; }
  .cookie-consent:not(.is-customizing) .cookie-consent__actions { justify-content: center; }
}

@media (max-width: 480px) {
  .cookie-consent { padding: 1rem; max-height: 85dvh; }
  .cookie-consent__actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .cookie-consent__button { min-width: 0; padding-inline: .55rem; }
  .cookie-consent.is-customizing { inset-inline: .65rem; bottom: max(.65rem, env(safe-area-inset-bottom)); width: calc(100% - 1.3rem); max-height: calc(100dvh - 1.3rem); padding: 1rem; }
}
