/* =============================================================================
   Brookstone × MomentScience demo — styles.css
   Brand tokens are injected via :root from demo.config.js (see <head> in each page).
   Layout patterns ported from demo-mgm; recolored + restyled for Brookstone.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Reset + base
----------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg-page, #ffffff);
  color: var(--text-primary, #1c1d1d);
  font-family: var(--font-family, "Arsenal", -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
}
button {
  font-family: inherit;
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}

/* -----------------------------------------------------------------------------
   Announcement bar + main header (PDP)
----------------------------------------------------------------------------- */
.announcement-bar {
  background: var(--announcement-bg, #282726);
  color: var(--announcement-text, #ffffff);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  text-transform: uppercase;
}

.site-header {
  background: var(--header-bg, #ffffff);
  color: var(--header-text, #1c1d1d);
  border-bottom: 1px solid var(--border-color, #e5e5e5);
}
.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.site-wordmark {
  font-family: var(--font-wordmark, Georgia, serif);
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text-primary);
  text-align: center;
  grid-column: 1 / -1;
  order: -1;
  width: 100%;
}
.site-wordmark sup {
  font-size: 0.4em;
  vertical-align: top;
  margin-left: 2px;
  font-weight: 400;
}

/* Real Brookstone wordmark SVG — black on transparent, sourced from
   commons.wikimedia.org/File:Brookstone_logo.svg. No filter needed. */
.site-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  grid-column: 1 / -1;
  order: -1;
  width: 100%;
}
.site-logo-img {
  height: 28px;
  width: auto;
  display: block;
}
.checkout-header .site-logo-link {
  grid-column: auto;
  order: 0;
  width: auto;
  justify-content: flex-start;
}
.checkout-header .site-logo-img {
  height: 22px;
}
.header-icon {
  background: transparent;
  border: 0;
  padding: 8px;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.header-icon:hover {
  background: var(--bg-medium-dim, #f5f5f5);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.site-nav a {
  text-decoration: none;
  color: var(--text-primary);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.nav-active {
  border-bottom-color: var(--text-primary);
}
.header-actions {
  display: flex;
  gap: 4px;
  justify-self: end;
}

/* -----------------------------------------------------------------------------
   PDP layout
----------------------------------------------------------------------------- */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}
.breadcrumb {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 24px;
  color: rgba(28, 29, 29, 0.65);
}
.breadcrumb a {
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb .crumb-current {
  color: var(--text-primary);
  font-weight: 700;
}

.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.pdp-gallery {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
}
.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-thumb {
  width: 64px;
  height: 64px;
  border: 1px solid var(--border-color);
  background: var(--bg-light-dim);
  padding: 4px;
  cursor: pointer;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease;
}
.pdp-thumb.is-active {
  border-color: var(--text-primary);
}
.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}
.pdp-hero {
  background: var(--bg-light-dim);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.pdp-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-light-dim);
}

.pdp-info {
  display: flex;
  flex-direction: column;
}
.pdp-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.25;
}
.pdp-brand {
  font-size: 0.875rem;
  margin: 0 0 14px;
  color: rgba(28, 29, 29, 0.6);
}
.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 10px;
}
.pdp-price {
  font-size: 1.5rem;
  font-weight: 700;
}
.pdp-reviews {
  font-size: 0.8rem;
  color: rgba(28, 29, 29, 0.65);
}
.pdp-installments {
  font-size: 0.875rem;
  color: rgba(28, 29, 29, 0.75);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  margin: 8px 0 14px;
}
.pdp-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pdp-klarna {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.875rem;
  color: rgba(28, 29, 29, 0.85);
}
.klarna-badge {
  background: #ffa8cd;
  color: #1c1d1d;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  display: inline-block;
}
.pdp-size-row {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
}
.pdp-size-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-weight: 600;
  border-radius: 2px;
  font-size: 0.875rem;
  transition: all 0.12s ease;
}
.pdp-size-btn:hover {
  border-color: var(--text-primary);
}
.pdp-size-btn.is-active {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
}

.btn-primary {
  background: var(--primary-color, #1c1d1d);
  color: #ffffff;
  border: 0;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: 2px;
  width: 100%;
  transition: background 0.15s ease;
}
.btn-primary:hover {
  background: var(--primary-hover, #353737);
}
.pdp-add-cart {
  margin: 4px 0 18px;
}

.btn-secondary {
  background: var(--bg-medium-dim, #f5f5f5);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 2px;
}
.btn-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.btn-pill {
  border-radius: 999px;
  padding: 10px 18px;
}

.pdp-bundle {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg-light-dim);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 4px;
  margin: 0 0 24px;
}
.pdp-bundle-imgs {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(28, 29, 29, 0.5);
}
.bundle-img {
  width: 44px;
  height: 44px;
  border-radius: 3px;
  object-fit: cover;
  background: var(--bg-light-dim);
  border: 1px solid var(--border-color);
}
.bundle-img-plus {
  font-size: 1.1rem;
}
.pdp-bundle-text {
  display: flex;
  flex-direction: column;
  font-size: 0.8125rem;
  line-height: 1.35;
}
.pdp-bundle-text strong {
  font-weight: 700;
}
.pdp-bundle-text span {
  color: rgba(28, 29, 29, 0.65);
}

.pdp-expand {
  border-top: 1px solid var(--border-color);
  padding: 14px 0;
}
.pdp-expand summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pdp-expand summary::-webkit-details-marker {
  display: none;
}
.pdp-expand summary::after {
  content: "+";
  font-size: 1.1rem;
  color: rgba(28, 29, 29, 0.5);
}
.pdp-expand[open] summary::after {
  content: "−";
}
.pdp-expand p {
  font-size: 0.875rem;
  color: rgba(28, 29, 29, 0.75);
  margin: 12px 0 0;
  line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   Footer (PDP + confirmation)
----------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-color);
  margin-top: 64px;
  padding: 24px 0;
}
.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(28, 29, 29, 0.65);
}
.site-footer-copy {
  margin: 0;
}
.site-footer-links {
  display: flex;
  gap: 18px;
}
.site-footer-links a {
  color: rgba(28, 29, 29, 0.65);
  text-decoration: none;
}
.site-footer-links a:hover {
  text-decoration: underline;
}
.confirm-footer {
  margin-top: 32px;
}

/* -----------------------------------------------------------------------------
   Checkout layout
----------------------------------------------------------------------------- */
.checkout-body {
  background: var(--bg-page, #ffffff);
}
.checkout-header {
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
}
.checkout-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.checkout-header .site-wordmark {
  font-size: 1.6rem;
  text-align: left;
  width: auto;
  order: 0;
  grid-column: auto;
}

.checkout-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.express-checkout {
  margin-bottom: 24px;
}
.express-label {
  text-align: center;
  margin: 0 0 12px;
  position: relative;
  font-size: 0.875rem;
  color: rgba(28, 29, 29, 0.7);
}
.express-label span {
  background: var(--bg-page);
  padding: 0 12px;
  position: relative;
  z-index: 1;
}
.express-label::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--border-color);
  z-index: 0;
}
.express-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.express-btn {
  height: 48px;
  border-radius: 4px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 16px;
  transition: filter 0.15s ease;
  overflow: hidden;
}
.express-btn:hover {
  filter: brightness(1.08);
}
.express-logo {
  height: 22px;
  width: auto;
  display: block;
}
/* Per-vendor button backgrounds (matches their official guidelines). */
.express-shop {
  background: #5a31f4;
}
.express-amazon {
  background: #ffd814;
}
.express-google {
  background: #000000;
}

/* Shop Pay logo is purple-on-transparent — invert so it renders white on the purple button. */
.express-logo-shop {
  filter: brightness(0) invert(1);
  height: 18px;
}
/* Amazon Pay logo is black-on-transparent — render as-is on yellow background. */
.express-logo-amazon {
  height: 16px;
}
/* Google Pay logo is multi-color on white pill — already white-friendly, but the pill
   has a thin border that conflicts with our solid black button; trim the inset. */
.express-logo-google {
  height: 32px;
  margin: 0;
}

.klarna-pill {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
}
.klarna-logo {
  height: 24px;
  width: auto;
  display: block;
}

.express-or {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(28, 29, 29, 0.5);
  position: relative;
  margin: 18px 0;
}
.express-or span {
  background: var(--bg-page);
  padding: 0 14px;
  position: relative;
  z-index: 1;
}
.express-or::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--border-color);
}

.express-installments {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(28, 29, 29, 0.85);
  margin: 0 0 12px;
}
.klarna-row {
  text-align: center;
  margin: 0 0 4px;
}

.checkout-section {
  border-top: 1px solid var(--border-color);
  padding: 22px 0;
}
.checkout-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 14px;
}
.checkout-section h2.small-h {
  font-size: 0.95rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 14px;
}
.section-head h2 {
  margin: 0;
}
.section-sub {
  font-size: 0.8rem;
  color: rgba(28, 29, 29, 0.55);
  margin: -8px 0 12px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #ffffff;
  font-family: inherit;
  color: var(--text-primary);
  margin-bottom: 12px;
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 1px var(--text-primary) inset;
}
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%231c1d1d' stroke-width='1.6'><path d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.form-row {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
}
.form-row-2 {
  grid-template-columns: 1fr 1fr;
}
.form-row-3 {
  grid-template-columns: 1.2fr 1fr 1fr;
}
.form-row-sub {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  margin: 4px 0 0;
  color: rgba(28, 29, 29, 0.85);
  cursor: pointer;
}
.form-check input {
  accent-color: var(--text-primary);
}
.form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.ship-method-empty {
  background: var(--bg-light-dim);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: 4px;
  font-size: 0.875rem;
  color: rgba(28, 29, 29, 0.6);
  text-align: center;
}

.payment-card {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 0 16px;
}
.payment-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: var(--bg-light-dim);
  border-bottom: 1px solid var(--border-color);
}
.payment-card-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}
.card-icon {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid var(--border-color);
  background: #ffffff;
}
.card-visa {
  color: #1a1f71;
}
.card-mc {
  width: 28px;
  height: 18px;
  background:
    radial-gradient(circle at 35% 50%, #eb001b 50%, transparent 51%),
    radial-gradient(circle at 65% 50%, #f79e1b 50%, transparent 51%);
  background-color: #ffffff;
  padding: 0;
}
.card-amex {
  color: #2671b8;
  background: #ffffff;
}

.payment-card-body {
  padding: 14px;
}

.klarna-flexible {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.new-pill {
  background: #ff4f33;
  color: #ffffff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.legal-fine {
  font-size: 0.7rem;
  color: rgba(28, 29, 29, 0.55);
  line-height: 1.55;
  margin: 8px 0 0;
}
.checkout-tos {
  font-size: 0.8125rem;
  color: rgba(28, 29, 29, 0.7);
  margin: 24px 0 16px;
  line-height: 1.6;
}
.checkout-pay {
  margin: 0 0 24px;
}
.checkout-footer-links {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
}
.checkout-footer-links a {
  color: rgba(28, 29, 29, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Right rail (checkout summary) */
.checkout-right {
  position: sticky;
  top: 24px;
  background: var(--bg-medium-dim, #f5f5f5);
  padding: 24px;
  border-radius: 4px;
  align-self: start;
}
.ck-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: flex-start;
  padding: 0 0 18px;
}
.ck-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  background: #ffffff;
  border: 1px solid rgba(28, 29, 29, 0.15);
  border-radius: 6px;
  overflow: hidden;
}
.ck-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ck-thumb-qty,
.conf-thumb-qty {
  position: absolute;
  top: -8px;
  right: -8px;
  background: rgba(28, 29, 29, 0.85);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ck-line-info {
  min-width: 0;
}
.ck-line-name {
  font-size: 0.8125rem;
  margin: 0;
  line-height: 1.4;
  color: var(--text-primary);
}
.ck-line-price {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.ck-discount {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 0 0 16px;
}
.ck-discount .form-input {
  margin-bottom: 0;
}

.ck-totals {
  padding: 16px 0;
  border-top: 1px solid rgba(28, 29, 29, 0.1);
}
.kv-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  padding: 6px 0;
  color: var(--text-primary);
}
.kv-label {
  color: rgba(28, 29, 29, 0.75);
}
.kv-value {
  font-weight: 600;
}
.kv-value-mute {
  color: rgba(28, 29, 29, 0.5);
  font-size: 0.8125rem;
}
.kv-grand {
  border-top: 1px solid rgba(28, 29, 29, 0.1);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 1.5rem;
}
.kv-grand .kv-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}
.kv-grand .kv-value {
  font-size: 1.5rem;
}
.usd-prefix {
  font-size: 0.7rem;
  color: rgba(28, 29, 29, 0.5);
  text-transform: uppercase;
  margin-right: 6px;
  letter-spacing: 0.05em;
}

.ck-test-offers {
  border-top: 1px solid rgba(28, 29, 29, 0.1);
  padding: 16px 0 0;
  margin-top: 8px;
}
.ck-mini-h {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.ck-mini-sub {
  font-size: 0.8125rem;
  color: rgba(28, 29, 29, 0.7);
  margin: 0 0 12px;
  line-height: 1.5;
}

/* -----------------------------------------------------------------------------
   Processing page
----------------------------------------------------------------------------- */
.processing-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-light-dim, #fafafa);
  padding: 24px;
}
.processing-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 48px 40px;
  text-align: center;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.processing-wordmark {
  font-family: var(--font-wordmark, Georgia, serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--text-primary);
}
.processing-wordmark sup {
  font-size: 0.4em;
  vertical-align: top;
  margin-left: 1px;
}
.processing-logo-img {
  height: 28px;
  width: auto;
  margin: 0 auto 24px;
  display: block;
}
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--bg-medium-dim);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.processing-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.processing-subtitle {
  font-size: 0.9rem;
  color: rgba(28, 29, 29, 0.65);
  margin: 0 0 24px;
}
.processing-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.processing-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(28, 29, 29, 0.5);
  transition: color 0.2s ease;
}
.processing-steps .step-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(28, 29, 29, 0.2);
  flex-shrink: 0;
}
.processing-steps li.active {
  color: var(--text-primary);
}
.processing-steps li.active .step-marker {
  border-color: var(--text-primary);
  background: radial-gradient(circle, var(--text-primary) 30%, transparent 31%);
}
.processing-steps li.done {
  color: rgba(28, 29, 29, 0.7);
}
.processing-steps li.done .step-marker {
  border-color: var(--text-primary);
  background: var(--text-primary);
}

/* -----------------------------------------------------------------------------
   Confirmation page
----------------------------------------------------------------------------- */
.confirm-body {
  background: var(--bg-page);
}
.confirm-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}
.confirm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.confirm-card {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 24px;
  background: #ffffff;
  margin: 0 0 16px;
}
.confirm-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}
.confirm-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}
.confirm-eyebrow {
  font-size: 0.8rem;
  color: rgba(28, 29, 29, 0.6);
  margin: 0 0 4px;
}
.confirm-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Map block */
.confirm-map {
  background: var(--bg-light-dim);
  border-radius: 6px;
  overflow: hidden;
  margin: 16px 0 16px;
  border: 1px solid var(--border-color);
}
.confirm-map-canvas {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--bg-light-dim);
}
.confirm-map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.confirm-map-bubble {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 4px;
  padding: 10px 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  text-align: center;
  z-index: 3;
  pointer-events: none;
  min-width: 160px;
}
.confirm-map-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffff;
}
.bubble-label {
  font-size: 0.7rem;
  color: rgba(28, 29, 29, 0.6);
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bubble-city {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 2px 0 0;
  color: var(--text-primary);
}
.confirm-map-foot {
  padding: 16px 18px 18px;
}
.confirm-state {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.confirm-msg {
  font-size: 0.8125rem;
  color: rgba(28, 29, 29, 0.65);
  margin: 0;
}

.confirm-news-check {
  margin-top: 4px;
  font-size: 0.8125rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 16px;
}
.order-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px 24px;
}
.kv-mini-label {
  font-size: 0.8rem;
  color: rgba(28, 29, 29, 0.65);
  margin: 0 0 4px;
  font-weight: 600;
}
.kv-mini-value {
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.45;
  color: var(--text-primary);
}
.pay-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cc-mc-mini {
  display: inline-block;
  width: 24px;
  height: 16px;
  background:
    radial-gradient(circle at 35% 50%, #eb001b 50%, transparent 51%),
    radial-gradient(circle at 65% 50%, #f79e1b 50%, transparent 51%);
  background-color: #ffffff;
  border-radius: 2px;
}
.dot-sep {
  color: rgba(28, 29, 29, 0.4);
}
.confirm-help {
  margin-top: 18px;
  font-size: 0.875rem;
  color: rgba(28, 29, 29, 0.7);
}
.info-q {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-medium-dim);
  font-size: 0.65rem;
  text-align: center;
  line-height: 14px;
  color: rgba(28, 29, 29, 0.6);
}

/* Right rail (confirmation summary) */
.confirm-right {
  position: sticky;
  top: 24px;
  background: var(--bg-medium-dim, #f5f5f5);
  padding: 24px;
  border-radius: 4px;
  align-self: start;
}
.conf-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: flex-start;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(28, 29, 29, 0.1);
}
.conf-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  background: #ffffff;
  border: 1px solid rgba(28, 29, 29, 0.1);
  border-radius: 6px;
  overflow: hidden;
}
.conf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.conf-line-info {
  min-width: 0;
}
.conf-line-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.4;
  color: var(--text-primary);
}
.conf-line-variant {
  font-size: 0.8125rem;
  color: rgba(28, 29, 29, 0.65);
  margin: 0;
}
.conf-line-price {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}
.conf-totals {
  padding: 18px 0 0;
}

/* =============================================================================
   MOMENTSCIENCE EMBED — popeyes-style vertical layout.
   Hero image on top, pill overlapping the seam, headline + description + CTAs
   centered below. Same surface used on every viewport (no modal).
   The embed sits ABOVE the map on the confirmation page.
   ============================================================================= */

.ms-embed {
  display: block;
  max-width: 100%;
  margin: 0 0 18px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(28, 29, 29, 0.06);
  overflow: hidden;
  text-align: center;
  position: relative;
  font-family: inherit;
  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 {
  background: var(--bg-light-dim);
}
.ms-embed .ms-hero {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

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

/* Pill overlaps the hero/body seam (negative top margin pulls it up). */
.ms-embed .ms-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 40px;
  padding: 4px 14px 4px 4px;
  margin: -18px auto 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.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(--text-primary);
  font-weight: 700;
}

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

.ms-embed .ms-desc {
  font-size: 14px;
  color: rgba(28, 29, 29, 0.7);
  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: 2px;
  font-size: 14px;
  font-weight: 800;
  background: var(--primary-color, #1c1d1d);
  border: none;
  color: #ffffff;
  cursor: pointer;
  flex: 1;
  font-family: inherit;
  transition: background 0.15s ease;
  letter-spacing: 0.02em;
}
.ms-embed .ms-cta-yes:hover {
  background: var(--primary-hover, #353737);
}
.ms-embed .ms-cta-no {
  padding: 12px 18px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  border: 1px solid var(--border-color);
  color: rgba(28, 29, 29, 0.7);
  cursor: pointer;
  flex: 1;
  font-family: inherit;
  transition: all 0.15s ease;
}
.ms-embed .ms-cta-no:hover {
  background: var(--bg-light-dim);
  color: var(--text-primary);
  border-color: rgba(28, 29, 29, 0.3);
}

.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(28, 29, 29, 0.15);
}
.ms-embed .ms-dots span.active {
  background: var(--primary-color, #1c1d1d);
}

.ms-embed .ms-powered {
  font-size: 10px;
  color: rgba(28, 29, 29, 0.4);
  margin-top: 10px;
  letter-spacing: 0.06em;
}

/* -----------------------------------------------------------------------------
   Responsive
----------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .pdp-grid,
  .checkout-grid,
  .confirm-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .checkout-right,
  .confirm-right {
    position: static;
  }
  .site-nav {
    gap: 14px;
    font-size: 0.7rem;
  }
}

@media (max-width: 600px) {
  .site-header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 12px 16px;
  }
  .site-wordmark {
    font-size: 1.6rem;
  }
  .site-nav {
    display: none;
  }
  .page,
  .checkout-main,
  .confirm-main {
    padding: 16px;
  }
  .pdp-title {
    font-size: 1.25rem;
  }
  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
  .order-cols {
    grid-template-columns: 1fr;
  }
  .express-buttons {
    grid-template-columns: 1fr;
  }
}
