.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  color: #101513;
  border: 1px solid #d9e1ea;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

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

.cookie-consent p {
  margin: 4px 0 0;
  color: #59635d;
}

.cookie-consent__actions,
.cookie-modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 12, 10, 0.52);
}

.cookie-modal__panel {
  width: min(560px, 100%);
  padding: 22px;
  background: #fff;
  border: 1px solid #d9e1ea;
  border-radius: 18px;
}

.cookie-toggle,
.legal-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 10px 0;
  color: #1f2a22;
  line-height: 1.35;
}

.cookie-toggle input,
.legal-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #0b0f14;
}

.cookie-toggle small {
  display: block;
  margin-top: 3px;
  color: #657169;
}

.legal-consent-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #d9e1ea;
  border-radius: 14px;
  background: #f8fafc;
}

.legal-check.compact {
  width: 100%;
  max-width: none;
  padding: 12px;
  border: 1px solid #d9e1ea;
  border-radius: 14px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

@media (max-width: 720px) {
  .cookie-consent {
    grid-template-columns: 1fr;
  }
}
