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

.cookie-notice {
  position: fixed;
  z-index: 1200;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  max-width: 760px;
  padding: 1rem 1.1rem;
  margin-inline: auto;
  border: 1px solid #94a3b8;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  color: #334155;
  font-family: inherit;
  font-size: var(--text-sm, 1rem);
  line-height: 1.55;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.cookie-notice p { margin: 0; }
.cookie-notice strong { color: #0f172a; }

.cookie-notice-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
}

.cookie-notice a {
  color: #0369a1;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cookie-notice button {
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border: 1px solid #0369a1;
  background: #0369a1;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.cookie-notice button:hover {
  border-color: #075985;
  background: #075985;
}

.cookie-notice a:focus-visible,
.cookie-notice button:focus-visible {
  outline: 3px solid rgba(3, 105, 161, 0.28);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .cookie-notice {
    right: 0.65rem;
    bottom: 0.65rem;
    left: 0.65rem;
    padding: 0.9rem;
    grid-template-columns: 1fr;
  }

  .cookie-notice-actions { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-notice button { transition: none; }
}
