.cookie-banner {
  position: fixed;
  z-index: 45;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  width: calc(100% - 48px);
  max-width: 1120px;
  padding: 25px 52px 25px 28px;
  border: 1px solid #ecdfe0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 70px #25202a25;
}
.cookie-banner[hidden],
.cookie-current[hidden] {
  display: none;
}
.cookie-copy {
  min-width: 0;
}
.cookie-copy h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.35px;
  font-weight: 800;
  margin: 0 0 9px;
}
.cookie-copy p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.cookie-copy a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-copy .cookie-current {
  font-size: 13px;
  margin-top: 8px;
  color: var(--ink);
}
.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cookie-actions .button {
  min-height: 45px;
  padding: 11px 17px;
  font-size: 14px;
  white-space: normal;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
  padding-block: 24px;
  border-top: 1px solid #ffffff26;
  color: #e1e1e1;
  font-size: 13px;
  line-height: 1.6;
}
.footer-legal button {
  font: inherit;
  color: inherit;
  padding: 0;
  text-align: left;
}
.footer-legal :is(a, button):hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.request-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  cursor: pointer;
}
.request-consent input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--red);
}
.request-consent a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.request-consent-help {
  font-size: 12px;
  color: var(--muted);
  margin-top: -6px;
}
@media (max-width: 760px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 17px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    padding: 22px 48px 22px 22px;
    max-height: calc(100dvh - 150px);
    overflow: auto;
  }
  .cookie-actions {
    flex-direction: row;
    gap: 10px;
  }
  .cookie-actions .button {
    flex: 1;
    padding: 11px;
    font-size: 13px;
  }
  .cookie-copy h2 {
    font-size: 20px;
  }
  .cookie-copy p {
    font-size: 14px;
  }
  .footer-legal {
    gap: 13px 22px;
    padding-block: 22px;
  }
  .request-consent {
    font-size: 13px;
  }
}

.cookie-option[hidden] {
  display: none;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.cookie-option input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: var(--red);
}
.cookie-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.cookie-close:hover {
  background: #f4f4f5;
  color: var(--ink);
}
.cookie-close:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .cookie-actions {
    flex-wrap: wrap;
  }
  .cookie-option {
    width: 100%;
  }
}
