/* features.journeyPrompt: the anonymous-analytics opt-in bar (js/journey-prompt.js). Ships only with the flag.
   Light mint bar on the cream ground, deep-green text and buttons (brand tokens only). Allow and No thanks are the SAME control:
   same size, border, fill and type, so neither choice is nudged. The bar sits at the bottom edge; js/journey-prompt.js sets --jp-h
   (its height) on <html> so the basket pill, the toast and the page end are lifted clear of it. Loaded after the shop sheets so
   the lifts below win at equal specificity. */
.jp-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: var(--mint-light);
  color: var(--ink);
  border-top: 2px solid var(--green-deep);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}

.jp-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.jp-text {
  flex: 1 1 360px;
  min-width: 0;
  margin: 0;
  font-family: var(--body);
  font-size: var(--fs-small);
  line-height: 1.45;
}

.jp-text strong {
  font-weight: 700;
}

.jp-text a[href] {
  display: inline;
  min-height: 0;
  min-width: 0;
  padding: 14px 2px;
  margin: -14px 0;
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.jp-text a[href]:hover {
  color: var(--green-bright);
}

.jp-actions {
  display: flex;
  flex: none;
  gap: 10px;
}

.jp-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 46px;
  padding: 10px 22px;
  border: 2px solid var(--green-deep);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--green-deep);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.jp-btn:hover {
  background: var(--mint);
}

.jp-bar :focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .jp-bar {
    animation: jp-in 0.25s ease-out;
  }
  @keyframes jp-in {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}

@media (max-width: 767px) {
  .jp-text {
    flex-basis: 100%;
  }
  .jp-actions {
    flex: 1 1 100%;
  }
  .jp-btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ---- lift everything else fixed to the bottom edge clear of the bar (never covered) ---- */
html.jp-open body {
  padding-bottom: var(--jp-h, 0px);
}
html.jp-open .shop-pill {
  bottom: calc(32px + var(--jp-h, 0px));
}
html.jp-open .order-bar {
  bottom: var(--jp-h, 0px);
}
html.jp-open .shop-toast {
  bottom: calc(24px + var(--jp-h, 0px));
}
html.jp-open[data-shop-live][data-shop-view="shop"]:has(.shop-pill:not([hidden])) .shop-toast {
  bottom: calc(108px + var(--jp-h, 0px));
}
@media (max-width: 767px) {
  html.jp-open .shop-pill {
    bottom: var(--jp-h, 0px);
  }
  html.jp-open[data-shop-live][data-shop-view="shop"]:has(.shop-pill:not([hidden])) .shop-toast {
    bottom: calc(90px + var(--jp-h, 0px));
  }
}
