/* Cookie consent */

#cookie-banner[hidden] {
  display: none !important;
}

#cookie-banner:not([hidden]) {
  display: block !important;
}

.cookie-banner {
  position: fixed;
  z-index: 1000;
  bottom: 24px;
  left: 24px;
  width: min(420px, calc(100% - 48px));
  padding: 24px;
  background: #11110f;
  color: #fff;
  border: 1px solid #393934;
  border-radius: 16px;
  box-shadow: 0 12px 48px #0003;
  font-family: Arial, Helvetica, sans-serif;
}

.cookie-banner h2 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
}

.cookie-banner p {
  margin: 0 0 12px;
  color: #d0cfc9;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-banner > a {
  color: #d0cfc9;
  font-size: 12px;
  text-decoration: underline;
}

.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.cookie-actions button {
  min-height: 44px;
  padding: 10px 16px;
  background: #292927;
  color: #fff;
  border: 1px solid #666;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-actions button:hover {
  border-color: var(--orange);
  background: #363633;
}

.cookie-actions button:focus-visible,
.cookie-settings-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.cookie-settings-link {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: calc(100px + env(safe-area-inset-bottom));
    width: auto;
    padding: 20px;
    max-height: 65vh;
    overflow-y: auto;
  }
}
