.cookie-notice {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(62rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 1.125rem;
  color: #1e293b;
  border: 1px solid #93c5fd;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(239, 246, 255, .99) 0%, rgba(224, 231, 255, .99) 100%);
  box-shadow: 0 18px 45px rgba(30, 64, 175, .20), 0 0 0 1px rgba(255, 255, 255, .65) inset;
}

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

.cookie-notice__text {
  flex: 1;
  margin: 0;
  font-size: .9375rem;
  line-height: 1.55;
}

.cookie-notice__link {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.cookie-notice__link:hover {
  color: #1e40af;
}

.cookie-notice__button {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: .55rem 1rem;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  border-radius: .7rem;
  background: #2563eb;
  transition: background-color .15s ease, transform .15s ease;
}

.cookie-notice__button:hover {
  background: #1d4ed8;
}

.cookie-notice__button:active {
  transform: translateY(1px);
}

.cookie-notice__button:focus-visible,
.cookie-notice__link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .35);
  outline-offset: 3px;
}

body.has-cookie-notice .recent-checkout:not([hidden]) {
  bottom: 7rem;
}

@media (max-width: 640px) {
  .cookie-notice {
    align-items: stretch;
    flex-direction: column;
    gap: .75rem;
    padding: .9rem;
  }

  .cookie-notice__button {
    width: 100%;
  }

  body.has-cookie-notice .recent-checkout:not([hidden]) {
    bottom: 11rem;
  }
}

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