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

.cookie-consent {
  position: fixed;
  inset: auto 24px 24px;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  max-width: 1120px;
  max-height: calc(100dvh - 48px);
  margin-inline: auto;
  overflow-y: auto;
  padding: 26px 30px;
  border: 1px solid #36465f;
  border-radius: 18px;
  background: #0d182d;
  color: #f5f8ff;
  box-shadow: 0 16px 60px rgb(10 18 34 / 35%);
  font-family: var(--font-display, 'Sora', sans-serif);
}

.cookie-consent h2 {
  margin: 0 0 10px;
  color: #f5f8ff;
  font-family: inherit;
  font-size: 1.1rem;
  line-height: 1.4;
}

.cookie-consent p {
  max-width: none;
  margin: 0;
  color: #d6deeb;
  font-family: inherit;
  font-size: .85rem;
  line-height: 1.65;
}

.cookie-consent .cookie-consent__note {
  margin-top: 10px;
  color: #b8c5da;
  font-size: .78rem;
}

.cookie-consent__actions {
  display: grid;
  gap: 10px;
}

.cookie-consent__button {
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid #9cb4d6;
  border-radius: 9px;
  background: #182b47;
  color: #f5f8ff;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.cookie-consent__button:hover {
  background: #243d60;
}

.cookie-settings {
  display: block;
  min-height: 44px;
  margin-top: 8px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #c5d6ed;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.cookie-settings:hover {
  color: #f5f8ff;
}

.cookie-consent__button:focus-visible,
.cookie-settings:focus-visible {
  outline: 3px solid #80c8ef;
  outline-offset: 4px;
}

@media (max-width: 800px) {
  .cookie-consent {
    inset: auto 12px 12px;
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 24px);
    gap: 18px;
    padding: 22px;
    border-radius: 14px;
  }

  .cookie-consent__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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