/* =============================================================================
   Kroger × MomentScience demo
   - Mobile-first; iPhone frame on >= 768px
   - Palette sampled from kroger.com pickup-order-confirmation screenshots:
       Blue       #1F409A   (logo wordmark + primary CTA)
       Blue light #D4EBFD   (location/pickup-detail pill banner)
       Green      #4B7A58   (Schedule/Pay checkmark rings)
       Body       #FAFAFA   (page background)
       Card       #FFFFFF   (cards/sections)
       Soft blue  #EFF6FE   ("Forgot Something?" callout bg)
   - Variable names kept as --kroger-orange / --kroger-teal / --kroger-cream
     for minimal-diff against popeyes lineage; values are Kroger-blue/green.
   ============================================================================= */

:root {
  --kroger-orange: #1f409a; /* primary brand blue (logo, CTAs) */
  --kroger-orange-hover: #163080;
  --kroger-teal: #4b7a58; /* progress / success green */
  --kroger-teal-deep: #355a3f;
  --kroger-cream: #d4ebfd; /* light blue location pill */
  --kroger-soft: #eff6fe; /* soft callout bg */
  --kroger-dark: #1a1a1a;
  --kroger-text: #2b2b2b;
  --kroger-muted: #6b6b6b;
  --kroger-line: #e6e6e6;
  --kroger-bg: #fafafa;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  color: var(--kroger-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--kroger-bg);
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: var(--kroger-teal-deep);
  text-decoration: underline;
}

/* =============================================================================
   Phone stage + iPhone frame (desktop only)
   ============================================================================= */

.phone-stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: var(--kroger-bg);
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.phone-screen {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
}

.phone-notch,
.phone-home-indicator {
  display: none;
}

@media (min-width: 768px) {
  .phone-stage {
    padding: 56px 24px;
    background: radial-gradient(ellipse at top, #e7f1ff 0%, var(--kroger-bg) 60%);
  }
  .phone-frame {
    width: 390px;
    height: 844px;
    max-height: calc(100vh - 112px);
    border-radius: 54px;
    background: #1a1a1a;
    padding: 12px;
    box-shadow:
      0 30px 80px -20px rgba(0, 0, 0, 0.4),
      0 0 0 2px rgba(0, 0, 0, 0.6),
      inset 0 0 0 2px #2a2a2a;
  }
  .phone-screen {
    border-radius: 44px;
    background: #fff;
    overflow: hidden;
  }
  .phone-notch {
    display: block;
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 32px;
    background: #000;
    border-radius: 999px;
    z-index: 100;
  }
  .phone-home-indicator {
    display: block;
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 5px;
    background: #fff;
    border-radius: 999px;
    z-index: 100;
    pointer-events: none;
  }
}

/* =============================================================================
   Screen swapping
   ============================================================================= */

.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  background: #fff;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
}

/* =============================================================================
   SCREEN 1 — Payment
   ============================================================================= */

.screen-payment {
  background: var(--kroger-cream);
  padding-top: env(safe-area-inset-top, 0);
}

/* Inside the desktop iPhone frame, leave headroom for the notch so the
   orange Rewards header isn't covered. Mobile viewports have no notch. */
@media (min-width: 768px) {
  .screen-payment,
  .screen-confirmation {
    padding-top: 56px;
  }
}

.pay-header {
  background: var(--kroger-orange);
  color: #fff;
  padding: 14px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.pay-rewards-img {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
}

.pay-rewards-applied {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pay-rewards-zero {
  background: #fff;
  color: var(--kroger-orange);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
}

.pay-body {
  padding: 22px 18px 32px;
}

.pay-section-label {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--kroger-dark);
}

.pay-recommendations {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 0 -18px 22px;
  padding-left: 18px;
  padding-right: 18px;
  scrollbar-width: none;
}
.pay-recommendations::-webkit-scrollbar {
  display: none;
}

.rec-card {
  flex: 0 0 auto;
  width: 250px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.rec-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  flex-shrink: 0;
}

.rec-text {
  flex: 1 1 auto;
  min-width: 0;
}

.rec-title {
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rec-badge svg {
  width: 16px;
  height: 16px;
  display: block;
}

.rec-meta {
  font-size: 13px;
  color: var(--kroger-muted);
  margin-top: 2px;
}

.rec-add {
  background: transparent;
  border: none;
  color: var(--kroger-orange);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  padding: 4px 8px;
}

.pay-terms {
  font-size: 14px;
  text-align: center;
  color: var(--kroger-text);
  margin: 0 0 18px;
  line-height: 1.5;
}

.pay-cancellation-head {
  text-align: center;
  font-size: 16px;
  margin: 0 0 4px;
  font-weight: 800;
}
.pay-cancellation-body {
  text-align: center;
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.5;
}

.pay-methods-head {
  margin-bottom: 14px;
}

.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pay-btn {
  border: none;
  border-radius: var(--radius-pill);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  padding: 0 18px;
  transition:
    transform 0.06s ease,
    filter 0.15s ease;
}
.pay-btn svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.pay-btn:active {
  transform: scale(0.98);
}
.pay-btn:hover {
  filter: brightness(0.95);
}

.pay-btn-dark {
  background: #1a1a1a;
}
.pay-btn-icon-square {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #00d64f;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
}
.pay-btn-icon-cashapp {
  background: #00d64f;
}
.pay-btn-icon-apple {
  width: 18px;
  height: 18px;
}

.pay-btn-paypal {
  background: #ffc439;
  color: #003087;
}
.paypal-pay {
  font-style: italic;
  font-weight: 800;
  color: #003087;
}
.paypal-pal {
  font-style: italic;
  font-weight: 800;
  color: #009cde;
}

.pay-btn-venmo {
  background: #008cff;
}
.pay-btn-venmo-text {
  font-style: italic;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.pay-btn-cc {
  background: var(--kroger-orange);
}

.pay-btn-text {
  background: transparent;
  border: none;
  color: var(--kroger-dark);
  text-decoration: underline;
  font-weight: 700;
  font-size: 15px;
  margin-top: 4px;
  align-self: center;
}

/* =============================================================================
   SCREEN 2 — Processing
   ============================================================================= */

.screen-processing {
  background: var(--kroger-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.processing-card {
  text-align: center;
  padding: 40px;
}

.processing-spinner {
  width: 56px;
  height: 56px;
  border: 5px solid rgba(255, 107, 26, 0.18);
  border-top-color: var(--kroger-orange);
  border-radius: 50%;
  margin: 0 auto 22px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.processing-title {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--kroger-dark);
  font-weight: 800;
}

.processing-sub {
  margin: 0;
  color: var(--kroger-muted);
  font-size: 14px;
}

/* =============================================================================
   SCREEN 3 — Confirmation
   ============================================================================= */

.screen-confirmation {
  background: var(--kroger-bg);
}

.conf-header {
  background: #000;
  color: #fff;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 12px 14px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.conf-close {
  background: transparent;
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.conf-close svg {
  width: 20px;
  height: 20px;
}

.conf-title {
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
}

.conf-body {
  padding-bottom: 32px;
}

.conf-hero {
  /* Teal stops part-way down — covers the thanks-card fully, the gap below
     it, and the top ~1/3 of the embed card; the rest of the embed sits on
     the page bg. The lower stop's percentage is tuned with the embed's own
     ~400px height in mind: thanks-card (~280) + 24px gap + 1/3 of 400 ≈ 437,
     out of an effective hero region of ~700, ≈ 62%. */
  background: linear-gradient(
    to bottom,
    var(--kroger-cream) 0%,
    var(--kroger-cream) 62%,
    var(--kroger-bg) 62%,
    var(--kroger-bg) 100%
  );
  color: var(--kroger-dark);
  padding: 14px 0 12px;
  position: relative;
  overflow: hidden;
}
/* Inner card and the embed both inset uniformly inside the hero. */
.conf-hero > .conf-hero-card {
  margin: 0 14px;
}
/* Gap between the "thanks" card and the embed below it. */
.conf-hero > .ms-embed {
  margin-top: 24px;
  margin-bottom: 0;
}
.conf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.06) 1.5px, transparent 2px),
    radial-gradient(circle at 78% 60%, rgba(255, 255, 255, 0.05) 1.5px, transparent 2px),
    radial-gradient(circle at 40% 85%, rgba(255, 255, 255, 0.05) 1.5px, transparent 2px);
  background-size:
    80px 80px,
    110px 110px,
    60px 60px;
  pointer-events: none;
}

.conf-hero-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 20px 22px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.conf-thanks {
  margin: 0;
  text-align: center;
  font-size: 15px;
  color: var(--kroger-dark);
  font-weight: 800;
}
.conf-name {
  margin: 6px 0 16px;
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--kroger-teal-deep);
}
.conf-celebrate {
  margin: 0 0 24px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--kroger-dark);
}

.conf-tracker {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 340px;
  margin: 0 auto 24px;
  padding: 0 10px;
  position: relative;
}
/* Single continuous line running horizontally at the dot-center level;
   dots sit on top of it, so the rail appears to pass through each dot.
   Offsets equal (step-min-width / 2) on each side so the rail starts at
   the centerline of the first/last dot rather than at the step edge. */
.tracker-rail {
  position: absolute;
  left: 50px;
  right: 50px;
  top: 9px;
  height: 3px;
  background: var(--kroger-teal);
  z-index: 0;
}
.tracker-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  flex: 0 0 auto;
  min-width: 80px;
  position: relative;
  z-index: 1;
}
.tracker-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--kroger-teal);
  display: inline-block;
  box-sizing: border-box;
}
.tracker-dot-done {
  background: var(--kroger-teal);
}
.tracker-dot-current {
  width: 26px;
  height: 26px;
  background: var(--kroger-orange);
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--kroger-orange);
  margin-top: -4px;
  margin-bottom: -4px;
}
.tracker-step-current .tracker-label {
  font-weight: 800;
}
.tracker-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--kroger-dark);
}

.conf-receipt {
  text-align: center;
  font-size: 13px;
  margin: 18px 0 0;
  color: var(--kroger-muted);
  line-height: 1.5;
}
.conf-receipt strong {
  color: var(--kroger-dark);
  font-weight: 700;
}

.conf-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px;
  margin: 0 14px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.conf-hero + .conf-card {
  margin-top: 12px;
}

.conf-card-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--kroger-dark);
}
.conf-card-body {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--kroger-text);
}

.conf-address {
  background: #f0efeb;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.conf-address-pin {
  color: var(--kroger-teal);
  flex-shrink: 0;
}
.conf-address-pin svg {
  width: 22px;
  height: 22px;
}
.conf-address-text {
  flex: 1 1 auto;
  min-width: 0;
  font-style: normal;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}
.conf-directions {
  background: transparent;
  border: 2px solid var(--kroger-orange);
  color: var(--kroger-orange);
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}
.conf-directions:hover {
  background: var(--kroger-orange);
  color: #fff;
}

.conf-rewards {
  background: var(--kroger-cream);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 0 14px 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
.conf-rewards-logo {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--kroger-orange);
  white-space: nowrap;
}
.conf-rewards-text {
  font-weight: 700;
  font-size: 15px;
  color: var(--kroger-dark);
}
.conf-rewards-text strong {
  font-weight: 900;
}
.conf-rewards-chest {
  /* Real treasure chest illustration cropped from the source screenshot. */
  width: 74px;
  height: auto;
  display: block;
}

.conf-order-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.conf-details-toggle {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
}
.conf-details-head {
  font-weight: 800;
  font-size: 17px;
  color: var(--kroger-dark);
}
.conf-details-summary {
  color: var(--kroger-muted);
  font-size: 14px;
}
.conf-details-chevron svg {
  width: 18px;
  height: 18px;
  color: var(--kroger-muted);
  transition: transform 0.2s;
}
.conf-details-toggle[aria-expanded="true"] .conf-details-chevron svg {
  transform: rotate(180deg);
}
.conf-details-body {
  padding: 4px 0;
  border-top: 1px solid var(--kroger-line);
  margin-top: 4px;
}

.conf-divider {
  border: none;
  border-top: 1px solid var(--kroger-line);
  margin: 4px 0;
}

.conf-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
}
.conf-line-total {
  font-weight: 900;
  font-size: 16px;
  color: var(--kroger-dark);
}

.conf-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.conf-help .conf-card-body {
  margin: 0;
}
.conf-help-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--kroger-orange);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.conf-help-btn svg {
  width: 18px;
  height: 18px;
}

/* =============================================================================
   MomentScience inline embed — sits in the page flow below order details.
   Same internal structure as the modal it replaces (hero / pill / h3 / desc /
   ctas / dots / powered / close), just rendered as a card in the conf-body
   instead of a popup.
   ============================================================================= */

.ms-embed {
  background: #fff;
  border-radius: var(--radius-md);
  margin: 0 14px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  text-align: center;
  position: relative;
  /* Reveal animation: starts collapsed + slid down, expands when .active */
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.ms-embed.active {
  opacity: 1;
  transform: translateY(0);
}

.ms-embed .ms-hero-wrap {
  /* Plain wrapper — no teal in the card itself; the page-level confirmation
     hero is what extends behind this embed. See .conf-hero override below. */
  background: transparent;
}
.ms-embed .ms-hero {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.ms-embed .ms-body {
  padding: 0 22px 20px;
}

.ms-embed .ms-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--kroger-line);
  border-radius: var(--radius-pill);
  padding: 4px 12px 4px 4px;
  margin: -18px auto 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.ms-embed .ms-pill img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.ms-embed .ms-pill span {
  font-size: 12px;
  color: var(--kroger-dark);
  font-weight: 700;
}

.ms-embed .ms-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: var(--kroger-dark);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.ms-embed h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--kroger-dark);
  margin: 0 0 6px;
  line-height: 1.25;
}

.ms-embed .ms-desc {
  font-size: 14px;
  color: var(--kroger-muted);
  line-height: 1.45;
  margin: 0 0 16px;
}

.ms-embed .ms-ctas {
  display: flex;
  gap: 8px;
}

.ms-embed .ms-cta-yes {
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  background: var(--kroger-orange);
  border: none;
  color: #fff;
  flex: 1;
  font-family: inherit;
  cursor: pointer;
}
.ms-embed .ms-cta-yes:hover {
  background: var(--kroger-orange-hover);
}

.ms-embed .ms-cta-no {
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  border: 2px solid var(--kroger-line);
  color: var(--kroger-muted);
  flex: 1;
  font-family: inherit;
  cursor: pointer;
}
.ms-embed .ms-cta-no:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--kroger-dark);
  border-color: #cfcfcf;
}

.ms-embed .ms-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 12px;
}
.ms-embed .ms-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
}
.ms-embed .ms-dots span.active {
  background: var(--kroger-orange);
}

.ms-embed .ms-powered {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.35);
  margin-top: 10px;
  letter-spacing: 0.3px;
}

/* =============================================================================
   Kroger.com surface — header, location pill, stepper, content cards, footer
   ============================================================================= */

.screen-payment,
.screen-confirmation {
  background: var(--kroger-bg);
}

.kroger-header {
  background: #fff;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--kroger-line);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.kroger-header-logo {
  height: 28px;
  width: auto;
  display: block;
}

.kroger-location {
  background: var(--kroger-cream);
  color: var(--kroger-orange);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.kroger-location-store {
  white-space: nowrap;
}
.kroger-location-divider {
  color: var(--kroger-orange);
  opacity: 0.45;
  font-weight: 400;
}
.kroger-location-addr {
  flex: 1 1 auto;
  min-width: 0;
}

.kroger-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px 18px;
  margin: 16px 14px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.kroger-rx-card {
  position: relative;
  padding-bottom: 0;
  overflow: hidden;
}

.kroger-stepper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 4px 4px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 72px;
}
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--kroger-teal);
  color: var(--kroger-teal);
  background: #fff;
  font-weight: 800;
}
.step-circle svg {
  width: 18px;
  height: 18px;
}
.step-circle-current {
  border-color: var(--kroger-muted);
  color: var(--kroger-muted);
  font-size: 14px;
}
.step-current .step-label {
  color: var(--kroger-orange);
  font-weight: 800;
}
.step-done .step-label {
  color: var(--kroger-teal);
  font-weight: 800;
}
.step-label {
  font-size: 13px;
}
.step-rail {
  height: 2px;
  background: var(--kroger-line);
  margin: 0 4px;
  margin-bottom: 24px;
}
.step-rail-done {
  background: var(--kroger-teal);
}

.kroger-divider {
  border: none;
  border-top: 1px solid var(--kroger-line);
  margin: 16px 0;
}

.kroger-h1 {
  font-size: 22px;
  font-weight: 900;
  margin: 8px 0 12px;
  color: var(--kroger-dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.kroger-h2 {
  font-size: 18px;
  font-weight: 900;
  margin: 18px 0 10px;
  color: var(--kroger-dark);
}
.kroger-h2:first-child {
  margin-top: 0;
}
.kroger-h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 14px 0 6px;
  color: var(--kroger-dark);
}
.kroger-body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--kroger-text);
  margin: 0 0 12px;
}
.kroger-body-mono {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.kroger-fineprint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--kroger-muted);
  margin: 14px 0 0;
}

.kroger-callout {
  background: var(--kroger-soft);
  border-radius: 10px;
  padding: 18px;
  margin: 16px 0;
}
.kroger-callout-title {
  font-size: 16px;
  font-weight: 900;
  margin: 0 0 14px;
  color: var(--kroger-dark);
}
.kroger-btn-outline {
  background: transparent;
  border: 1.5px solid var(--kroger-orange);
  color: var(--kroger-orange);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
}
.kroger-btn-outline:hover {
  background: var(--kroger-orange);
  color: #fff;
}

.kroger-detail-row,
.kroger-detail-toggle {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--kroger-line);
  width: 100%;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
  text-align: left;
}
.kroger-detail-row {
  grid-template-columns: auto 1fr;
}
.kroger-detail-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--kroger-line);
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  color: var(--kroger-dark);
}
.kroger-detail-icon svg {
  width: 18px;
  height: 18px;
}
.kroger-detail-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kroger-detail-text strong {
  font-weight: 800;
  font-size: 15px;
}
.kroger-detail-text span {
  font-size: 13px;
  color: var(--kroger-muted);
}
.kroger-detail-toggle-label {
  font-size: 15px;
  font-weight: 700;
}
.kroger-detail-count {
  background: var(--kroger-orange);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
.kroger-detail-chevron svg {
  width: 18px;
  height: 18px;
  color: var(--kroger-muted);
}

.kroger-rx-hero {
  display: block;
  width: calc(100% + 36px);
  margin: 16px -18px 0;
  max-width: calc(100% + 36px);
  height: auto;
  border-radius: 0;
}

.kroger-link {
  color: var(--kroger-orange);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.kroger-link:hover {
  text-decoration: underline;
}

.kroger-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  font-size: 14px;
  color: var(--kroger-text);
}
.kroger-line-total {
  font-size: 18px;
  font-weight: 900;
  color: var(--kroger-dark);
  padding-top: 10px;
}

.kroger-footer {
  background: #fff;
  padding: 32px 18px 24px;
  margin-top: 24px;
  border-top: 1px solid var(--kroger-line);
  text-align: center;
}
.kroger-footer-logo {
  height: 44px;
  width: auto;
  display: inline-block;
  margin-bottom: 16px;
}
.kroger-footer-copy {
  font-size: 12px;
  color: var(--kroger-muted);
  margin: 0;
  line-height: 1.5;
}

/* The conf-hero band wraps the MomentScience embed on a soft blue background
   so it visually separates from the white cards above and below. */
.conf-hero {
  background: var(--kroger-cream);
  padding: 18px 14px;
  margin-top: 16px;
}
.conf-hero > .ms-embed {
  margin-top: 0;
  margin-bottom: 0;
}
.conf-hero::before {
  display: none;
}
.conf-body {
  padding-bottom: 0;
}

/* iOS Safari: ensure the breakout pharmacy hero never overflows horizontally. */
.kroger-rx-card {
  overflow-x: hidden;
}
@media (max-width: 720px) {
  .kroger-rx-hero {
    max-width: 100vw;
  }
}
