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

.cookie-consent {
  position: fixed;
  z-index: 2000;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent__panel {
  width: min(100%, 720px);
  padding: 24px;
  border: 1px solid var(--primary);
  background: rgba(13, 17, 32, .98);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  pointer-events: auto;
}

.cookie-consent__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.cookie-consent__eyebrow {
  margin: 0 0 12px;
  color: var(--secondary);
  font: 400 11px/16px 'Geist Mono', monospace;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.cookie-consent h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
}

.cookie-consent__text {
  max-width: 610px;
  margin: 16px 0 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.6;
}

.cookie-consent__text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__close {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

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

.cookie-consent__close:hover,
.cookie-consent__close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.cookie-consent__button {
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
  outline: none;
}

.cookie-consent__button:active {
  background: var(--accent-active);
}

@media (max-width: 620px) {
  .cookie-consent {
    right: 0;
    bottom: 0;
    left: 0;
  }

  .cookie-consent__panel {
    width: 100%;
    padding: 20px 24px 24px;
    border-width: 1px 0 0;
  }

  .cookie-consent__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent *,
  .cookie-consent *::before,
  .cookie-consent *::after {
    transition-duration: .01ms !important;
  }
}
