/* MOTIONEST live after-pay overlay — hide origin checkout/tour, never patch React text. */
html.me-pay-return .studio-tour,
html.me-pay-return .studio-tour-spotlight,
html.me-pay-return .studio-tour-card,
html.me-pay-return .checkout-consents,
html.me-pay-return .guest-checkout-choice,
html.me-pay-return .generate-button,
html.me-pay-return .payment-obligation,
html.me-pay-return .checkout-missing,
html.me-pay-return .checkout-opening,
html.me-pay-return .demo-note,
html.me-pay-return .commercial-price,
html.me-pay-return .price-breakdown,
html.me-pay-return .quote-lines,
html.me-pay-return .welcome-offer,
html.me-pay-return .membership-legal,
html.me-pay-return .membership-consents,
html.me-pay-return .paid-delivery-tracker,
html.me-pay-return .payment-success-modal,
html.me-pay-return .result-phone > span,
html.me-pay-return .result-scan,
html.me-pay-return #me-pay-dock {
  display: none !important;
}
html.me-pay-return .result-copy h3,
html.me-pay-return .result-copy > p,
html.me-pay-return .result-copy .eyebrow,
html.me-pay-return .result-copy .result-stats {
  display: none !important;
}
html.me-pay-ready .result-scan {
  display: none !important;
}

.studio-tour {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100dvh !important;
}
.studio-tour-spotlight {
  box-shadow:
    0 0 0 100vw rgba(4, 5, 7, 0.82),
    0 0 34px rgba(217, 255, 67, 0.3) !important;
}

.me-gen-hole {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: end center;
  overflow: hidden;
  border-radius: inherit;
  background: #111;
  pointer-events: none;
}
.me-gen-hole img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.92);
}
.me-gen-hole::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(8, 9, 11, 0.82));
}
.me-gen-hole b,
.me-gen-hole .me-gen-hole-cap {
  position: relative;
  z-index: 1;
  margin: 0 16px 28px;
  padding: 0;
  border: 0;
  background: none;
  color: #f4f0e8;
  font: italic 15px/1.35 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.me-pay,
.me-gen-ready {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.me-gen-ready { z-index: 10000; }
.me-pay-card,
.me-gen-ready-card {
  position: relative;
  width: min(420px, 100%);
  padding: 32px 28px 24px;
  text-align: center;
  background: #101114;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f0e8;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.me-pay-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c5cbd4;
  font: 400 28px/44px "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
}
.me-pay-card small,
.me-gen-ready-card small {
  display: block;
  color: #d9ff43;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 10px;
}
.me-pay-card h2,
.me-gen-ready-card h2 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.me-pay-card p,
.me-gen-ready-card p {
  margin: 0 0 22px;
  color: #9a9b9f;
  font-size: 15px;
  line-height: 1.55;
}
.me-pay-card > .me-pay-go,
.me-gen-ready-dl,
.me-gen-dl-btn {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border: 0;
  background: #d9ff43;
  color: #111;
  font: 700 15px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.me-gen-ready-card > .me-pay-go,
.me-gen-dl-watch {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #f4f0e8;
  font: 650 15px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.me-gen-card {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--me-vv-bottom, 0px));
  z-index: 9997;
  width: min(440px, calc(100vw - 32px));
  max-height: min(38dvh, 320px);
  margin: 0;
  padding: 18px 20px 16px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 14, 17, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #f4f0e8;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}
body:has(#me-pay) .me-gen-card,
body:has(#me-gen-ready) .me-gen-card {
  visibility: hidden;
  pointer-events: none;
}
.me-gen-card small.me-kicker {
  display: block;
  color: #d9ff43;
  font: 600 10px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.me-gen-card h3 {
  margin: 8px 0 0;
  font-size: 20px;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.me-gen-card p.me-gen-detail {
  display: block;
  margin: 8px 0 0;
  color: #9a9b9f;
  font-size: 13px;
  line-height: 1.45;
}
.me-gen-action {
  margin: 10px 0 6px;
  color: #d9ff43;
  font: 600 13px/1.35 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.02em;
}
.me-gen-live {
  margin: 0 0 8px;
  min-height: 2.7em;
  color: #f4f0e8;
  font: italic 16px/1.4 Georgia, "Times New Roman", serif;
  transition: opacity 0.4s ease;
}
.me-gen-live.is-out { opacity: 0; }
.me-gen-beats,
.me-gen-ring {
  display: none;
}
.me-gen-beats li {
  color: #6e7074;
  font: 13px/1.35 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.me-gen-beats li.is-done { color: #8d8e93; }
.me-gen-beats li.is-now { color: #f4f0e8; }
.me-gen-beats li.is-now::before {
  content: "· ";
  color: #d9ff43;
}
.me-gen-bar {
  margin-top: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.me-gen-bar i {
  display: block;
  height: 100%;
  background: #d9ff43;
  transition: width 0.45s ease;
}
.me-gen-dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  max-width: 420px;
}
@media (max-width: 700px) {
  .me-pay-card,
  .me-gen-ready-card {
    padding: 28px 20px 20px;
  }
  .me-pay-card h2,
  .me-gen-ready-card h2 {
    font-size: 28px;
  }
  .me-gen-card {
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
    max-height: min(34dvh, 260px);
    padding: 14px 16px 14px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px) + var(--me-vv-bottom, 0px));
  }
  .me-gen-card h3 { font-size: 18px; }
  .me-gen-action { font-size: 15px; }
}
