::selection {
  background: #d9f99d;
  color: #17201d;
}

.grid-pattern {
  background-image:
    linear-gradient(rgba(23, 32, 29, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 29, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 55%, transparent 95%);
}

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

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: rgba(23, 32, 29, 0.45);
}

.cookie-consent__panel {
  width: min(80rem, 100%);
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid rgba(23, 32, 29, 0.15);
  border-radius: 1.5rem;
  background: #f4f1e8;
  box-shadow: 0 18px 60px rgba(23, 32, 29, 0.2);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.checkout-consent {
  width: 100%;
  min-width: 0;
}

.checkout-consent .payhip-embed-page,
.checkout-consent iframe {
  width: 100% !important;
  max-width: none !important;
}

.noscript-checkout {
  padding: 1rem;
  text-align: center;
  background: #d9f99d;
  color: #17201d;
}

.noscript-checkout a {
  font-weight: 700;
  text-decoration: underline;
}

@media (min-width: 48rem) {
  .cookie-consent__panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
  }

  .cookie-consent__actions {
    flex: 0 0 auto;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
