body.mobile-checkout-v2-active {
  --checkout-v2-green: #0b7a43;
  --checkout-v2-ink: #18372b;
  --checkout-v2-line: #cfe2d7;
  --checkout-v2-soft: #f4faf6;
  background:
    radial-gradient(circle at 100% 0, rgba(232, 178, 26, 0.1), transparent 28rem),
    #f2f7f3;
}

.mobile-checkout-v2-active .checkout-v2-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--checkout-v2-line);
  border-radius: 14px;
  background: var(--checkout-v2-soft);
  color: var(--checkout-v2-ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.mobile-checkout-v2-active .checkout-v2-notice::before {
  content: "✓";
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--checkout-v2-green);
  color: #fff;
}

.mobile-checkout-v2-active .checkout-v2-return {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 10px;
  color: var(--checkout-v2-green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mobile-checkout-v2-active .totals {
  padding: 16px;
  border: 1px solid var(--checkout-v2-line);
  border-radius: 16px;
  background: #fff;
}

.mobile-checkout-v2-active .totals .summary-row:last-child {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 2px solid var(--checkout-v2-line);
  color: var(--checkout-v2-ink);
  font-size: 1.15rem;
}

.mobile-checkout-v2-active .promo-discount-row {
  color: var(--checkout-v2-green);
}

.mobile-checkout-v2-active :is(button, .btn, .street-mode-option, input[type="checkbox"], input[type="radio"]) {
  min-height: 44px;
}

.mobile-checkout-v2-active .qty-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
}

.mobile-checkout-v2-active :is(input, textarea, button, a):focus-visible {
  outline: 3px solid rgba(15, 122, 67, 0.28);
  outline-offset: 2px;
}

.mobile-checkout-v2-active .checkout-v2-continue {
  width: 100%;
  margin-top: 14px;
}

.mobile-checkout-v2-active .checkout-v2-optional-address {
  margin: 2px 0;
  border: 1px solid var(--checkout-v2-line);
  border-radius: 14px;
  background: var(--checkout-v2-soft);
}

.mobile-checkout-v2-active .checkout-v2-optional-address > summary {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  color: var(--checkout-v2-ink);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.mobile-checkout-v2-active .checkout-v2-optional-address > summary::-webkit-details-marker { display: none; }
.mobile-checkout-v2-active .checkout-v2-optional-address > summary::after { content: "+"; font-size: 1.35rem; }
.mobile-checkout-v2-active .checkout-v2-optional-address[open] > summary::after { content: "−"; }

.mobile-checkout-v2-active .checkout-v2-optional-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 14px 14px;
}

.mobile-checkout-v2-active .checkout-v2-final-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  margin-top: 20px;
  padding: 15px 16px;
  border: 1px solid var(--checkout-v2-line);
  border-radius: 14px;
  background: var(--checkout-v2-soft);
  color: var(--checkout-v2-ink);
}

.mobile-checkout-v2-active .checkout-v2-final-total strong { font-size: 1.15rem; }
.mobile-checkout-v2-active .checkout-v2-final-total small { grid-column: 1 / -1; color: #5d7167; }

.mobile-checkout-v2-active .checkout-v2-sticky {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top: 1px solid var(--checkout-v2-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 34px rgba(24, 55, 43, 0.12);
  backdrop-filter: blur(12px);
}

.mobile-checkout-v2-active .checkout-v2-sticky div { display: grid; }
.mobile-checkout-v2-active .checkout-v2-sticky small { color: #5d7167; font-weight: 700; }
.mobile-checkout-v2-active .checkout-v2-sticky strong { color: var(--checkout-v2-ink); font-size: 1.1rem; }
.mobile-checkout-v2-active .checkout-v2-sticky button {
  min-width: 148px;
  padding: 0 18px;
  color: #fff;
  background: var(--checkout-v2-green);
  border: 0;
  border-radius: 14px;
  font-weight: 900;
}

.mobile-checkout-v2-active .checkout-v2-sticky button:disabled,
.mobile-checkout-v2-active .checkout-v2-continue:disabled { opacity: 0.48; cursor: not-allowed; }

@media (max-width: 1100px) {
  .mobile-checkout-v2-active .checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-checkout-v2-active { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mobile-checkout-v2-active .summary-card { order: 1; }
  .mobile-checkout-v2-active .form-card { order: 2; }
  .mobile-checkout-v2-active .summary-card {
    position: static;
  }
}

@media (max-width: 700px) {
  .mobile-checkout-v2-active .container {
    width: min(100% - 24px, 680px);
  }

  .mobile-checkout-v2-active .page-shell { padding: 14px 0 42px; }
  .mobile-checkout-v2-active .section + .section { margin-top: 14px; }
  .mobile-checkout-v2-active .page-intro { border-radius: 18px; }
  .mobile-checkout-v2-active .page-intro__grid { padding: 20px; }
  .mobile-checkout-v2-active .page-intro__media { display: none; }
  .mobile-checkout-v2-active .page-intro h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .mobile-checkout-v2-active .page-intro p { font-size: 0.98rem; }
  .mobile-checkout-v2-active .checkout-trust-strip { gap: 7px; }
  .mobile-checkout-v2-active .checkout-trust-pill { min-height: 34px; font-size: 0.78rem; }

  .mobile-checkout-v2-active .form-card,
  .mobile-checkout-v2-active .summary-card { padding: 18px; }

  .mobile-checkout-v2-active .form-grid,
  .mobile-checkout-v2-active .address-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .mobile-checkout-v2-active .checkout-v2-optional-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-checkout-v2-active :is(.span-12, .span-8, .span-6, .span-4, .span-3, .span-2) {
    grid-column: 1;
  }

  .mobile-checkout-v2-active :is(.input, .textarea, .promo-controls input) {
    min-height: 52px;
    font-size: 16px;
  }

  .mobile-checkout-v2-active .street-mode-switch,
  .mobile-checkout-v2-active .btn-row,
  .mobile-checkout-v2-active .promo-controls { grid-template-columns: minmax(0, 1fr); }

  .mobile-checkout-v2-active .btn-row > *,
  .mobile-checkout-v2-active .promo-controls > * { width: 100%; min-height: 52px; }

  .mobile-checkout-v2-active .summary-item { padding: 15px; }
  .mobile-checkout-v2-active .summary-row { gap: 12px; }
  .mobile-checkout-v2-active .summary-row strong { white-space: nowrap; }
}
