.cookie-notice {
  position: fixed;
  inset: auto auto max(12px, env(safe-area-inset-bottom)) 12px;
  z-index: 2000;
  box-sizing: border-box;
  display: grid;
  grid-template-areas: "accept message reject";
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: min(560px, calc(100% - 24px));
  padding: 12px 14px;
  border: 1px solid #c1d8ce;
  border-radius: 14px;
  background: #ebf4f0;
  box-shadow: 0 10px 30px rgb(0 0 0 / 18%);
  color: #154344;
  font: 1rem/1.4 "Segoe UI", Arial, sans-serif;
  text-align: center;
}

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

.cookie-notice p {
  grid-area: message;
  margin: 0;
}

.cookie-notice a {
  color: inherit;
  text-decoration: underline;
}

.cookie-notice button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #151515;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-notice [data-analytics-choice="allow"] {
  grid-area: accept;
  background: #4ed499;
}

.cookie-notice [data-analytics-choice="deny"] {
  grid-area: reject;
  background: #df80a9;
}

.cookie-notice :focus-visible {
  outline: 3px solid #154344;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .cookie-notice {
    right: 12px;
    grid-template-areas: "message message" "accept reject";
    grid-template-columns: 1fr 1fr;
  }
}
