/* Global nav (outside React root). Mobile panel + backdrop are siblings of .site-topbar
   (not inside) so position:fixed is relative to the viewport, not a backdrop-filter parent. */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 1002;
  padding: 0.65rem 1.25rem;
  background: hsl(var(--card) / 0.96);
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: 0 8px 24px hsl(var(--healing-dark) / 0.08);
  backdrop-filter: blur(8px);
  isolation: isolate;
}

.site-topbar-inner {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 2.8rem;
  position: relative;
}

.site-brand {
  position: absolute;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: hsl(var(--healing-dark));
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  z-index: 1;
}

.site-brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: hsl(var(--natural-gold));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 8px 18px hsl(var(--natural-gold) / 0.28);
}

.site-brand-text {
  font-size: 1rem;
}

.site-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.9rem;
  padding: 0 13rem;
}

.site-nav-links a {
  border-radius: 9999px;
  color: hsl(var(--healing-dark) / 0.78);
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.site-nav-links a:hover {
  background: hsl(var(--healing-light) / 0.5);
  color: hsl(var(--healing-green));
}

.site-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  min-width: 2.6rem;
  flex-shrink: 0;
  margin: 0 0 0 auto;
  padding: 0;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  background: hsl(var(--card));
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
  position: relative;
}

.site-burger span {
  display: block;
  height: 2px;
  width: 100%;
  max-width: 1.1rem;
  margin: 0 auto;
  background: hsl(var(--healing-dark) / 0.9);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-burger.active span:nth-child(2) {
  opacity: 0;
}

.site-burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: hsl(var(--healing-dark) / 0.45);
  border: none;
  margin: 0;
  padding: 0;
}

.site-nav-backdrop.active {
  display: block;
}

.site-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  width: min(20rem, 86vw);
  margin: 0;
  padding: 4.5rem 1.25rem 1.5rem;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5rem;
  background: hsl(var(--card) / 0.98);
  border-left: 1px solid hsl(var(--border));
  box-shadow: -12px 0 32px hsl(var(--healing-dark) / 0.12);
  font-size: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-mobile-nav.active {
  display: flex;
}

.site-mobile-nav a {
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  text-align: left;
  text-decoration: none;
  color: hsl(var(--healing-dark) / 0.9);
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.site-mobile-nav a:hover,
.site-mobile-nav a:focus-visible {
  background: hsl(var(--healing-light) / 0.5);
  color: hsl(var(--healing-green));
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 8rem;
  z-index: 55;
  width: min(calc(100% - 1.5rem), 58rem);
  transform: translateX(-50%) translateY(0);
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  /* Opaque panel: translucent + backdrop-filter blended with dark footer and made brown text unreadable */
  background: hsl(var(--card));
  box-shadow: 0 12px 34px hsl(var(--healing-dark) / 0.22);
  opacity: 1;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.cookie-banner.is-hiding {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(1.35rem);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem 0.65rem 1.1rem;
}

.cookie-banner-text {
  color: hsl(var(--foreground));
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.cookie-banner-button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 9999px;
  background: linear-gradient(to right, #059669, #047857);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.5rem 1rem;
  box-shadow: 0 8px 18px hsl(var(--healing-green) / 0.25);
}

.cookie-banner-button:hover {
  background: linear-gradient(to right, #047857, #065f46);
}

/* Auto-scroll (draft restore / #payment): keep block under topbar, not flush to bottom of form */
.payment-inline-fields {
  scroll-margin-top: 5.75rem;
}

.payment-methods-panel {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.15rem;
  padding: 0.75rem 0.75rem 0.65rem;
  border: 1px solid hsl(var(--healing-green) / 0.16);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, hsl(var(--card) / 0.9), hsl(var(--healing-light) / 0.24));
  text-align: center;
}

.payment-methods-title {
  color: hsl(var(--healing-dark) / 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.payment-methods-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.payment-method-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.18rem 0.48rem;
  border: 1px solid hsl(var(--natural-gold) / 0.28);
  border-radius: 9999px;
  background: hsl(var(--card) / 0.88);
  color: hsl(var(--healing-dark) / 0.86);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px hsl(var(--healing-dark) / 0.05);
}

@media (max-width: 899.98px) {
  .site-topbar-inner {
    justify-content: space-between;
    width: 100%;
  }

  .site-brand {
    position: static;
  }

  .site-nav-desktop {
    display: none !important;
  }

  .site-burger {
    display: flex !important;
  }
}

@media (max-width: 760px) {
  .cookie-banner {
    bottom: 7.5rem;
    border-radius: 1rem;
    width: calc(100% - 1rem);
  }

  .cookie-banner-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.8rem;
  }

  .cookie-banner-button {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .site-mobile-nav,
  .site-mobile-nav.active {
    display: none !important;
  }

  .site-nav-backdrop,
  .site-nav-backdrop.active {
    display: none !important;
  }
}
