#cookie-banner,
#cookie-settings {
  position: fixed;
  z-index: 1000;
  box-sizing: border-box;
  color: #fff;
  background: #19191b;
  font: 15px/1.5 Verdana, Arial, Helvetica, sans-serif;
}

#cookie-banner {
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px max(20px, calc((100% - 954px) / 2));
  border-top: 3px solid #db0024;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

#cookie-banner[hidden],
#cookie-banner [hidden],
#cookie-settings[hidden] {
  display: none;
}

#cookie-banner h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

#cookie-banner p {
  margin: 12px 0;
}

#cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#cookie-banner button,
#cookie-settings {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #fff;
  border-radius: 4px;
  font: inherit;
  color: #fff;
  background: #19191b;
  cursor: pointer;
}

#cookie-banner button:hover,
#cookie-settings:hover {
  background: #333;
}

#cookie-banner button:focus-visible,
#cookie-banner a:focus-visible,
#cookie-settings:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

#cookie-settings {
  right: 16px;
  bottom: 16px;
}

#cookie-storage-error {
  font-weight: bold;
}

@media (max-width: 480px) {
  .cookie-actions button {
    flex: 1 1 100%;
  }
}
