.cookie-notice {
  position: fixed;
  z-index: 65;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(820px, calc(100vw - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: #111827;
  color: #e5e7eb;
  box-shadow: 0 18px 55px rgba(15, 23, 42, .34);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.cookie-notice__text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.45;
}

.cookie-notice__details {
  display: inline;
  margin: 0 0 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a5b4fc;
  font: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(165, 180, 252, .45);
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-notice__details:hover {
  color: #c7d2fe;
  text-decoration-color: currentColor;
}

.cookie-notice__dismiss {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 18px;
  border: 0;
  border-radius: 9px;
  background: #4f46e5;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.cookie-notice__dismiss:hover {
  background: #6366f1;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .32);
  transform: translateY(-1px);
}

.cookie-notice__dismiss:active {
  transform: translateY(0);
}

.cookie-notice__dismiss:focus-visible,
.cookie-notice__details:focus-visible {
  outline: 3px solid rgba(199, 210, 254, .95);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .cookie-notice {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
    gap: 12px;
    padding: 12px;
    border-radius: 13px;
  }

  .cookie-notice__text {
    font-size: 12px;
  }

  .cookie-notice__dismiss {
    min-height: 40px;
    padding-inline: 15px;
  }
}

@media (max-width: 390px) {
  .cookie-notice {
    flex-wrap: wrap;
  }

  .cookie-notice__dismiss {
    width: 100%;
  }
}

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