/* Essential-cookies notice. Non-blocking, dismissible. */
.cookie-notice {
  position: fixed;
  z-index: 40;
  left: max(0.75rem, env(safe-area-inset-left));
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.15rem;
  width: min(46rem, calc(100% - 1.5rem));
  margin-inline: auto;
  padding: 0.85rem 0.85rem 0.85rem 1.05rem;
  background: rgba(12, 30, 54, 0.96);
  color: #D5E3F0;
  border: 1px solid rgba(126, 214, 242, 0.32);
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(2, 8, 18, 0.45);
  backdrop-filter: blur(14px);
  font-family: Manrope, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  animation: cookie-rise 0.35s ease;
}

html.cookie-dismissed .cookie-notice {
  display: none;
}

html:not(.cookie-dismissed) body {
  padding-bottom: 8rem;
}

.cookie-notice p {
  margin: 0;
  max-width: 38rem;
}

.cookie-notice a {
  color: #9AEAF8;
  font-weight: 700;
  text-underline-offset: 0.16em;
}

.cookie-notice a:hover {
  color: #5CDEF2;
}

.cookie-dismiss {
  flex: none;
  background: #5CDEF2;
  color: #062033;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.05rem;
  font: 600 0.95rem/1 Manrope, "Avenir Next", "Segoe UI", sans-serif;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(11, 40, 70, 0.08);
}

.cookie-dismiss:hover {
  background: #9AEAF8;
  color: #062033;
}

@keyframes cookie-rise {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (max-width: 640px) {
  .cookie-notice {
    flex-direction: column;
    align-items: stretch;
    width: auto;
  }
  .cookie-dismiss { align-self: flex-start; }
}

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