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

.cookie-consent {
  position: fixed;
  z-index: 1000;
  inset: auto 16px max(16px, env(safe-area-inset-bottom));
  max-width: 960px;
  max-height: calc(100dvh - 32px);
  margin-inline: auto;
  overflow-y: auto;
  border: 1px solid rgb(33 73 116 / 0.18);
  border-radius: 8px;
  background: #edf2f7;
  color: var(--protocol-blue);
  box-shadow: 0 4px 16px rgb(33 73 116 / 0.08);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-base);
}

.cookie-consent-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
}

.cookie-consent p {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.cookie-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-consent button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid rgb(33 73 116 / 0.3);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-consent button:hover {
  background: rgb(33 73 116 / 0.06);
}

.cookie-consent :is(a, button):focus-visible,
.cookie-settings:focus-visible {
  outline: 3px solid var(--protocol-blue);
  outline-offset: 3px;
}

.loon-page .cookie-settings {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 800px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  .cookie-consent-actions button {
    flex: 1;
  }
}
