:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18242b;
  background: #f2f5f4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

.page-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
}

.page-header,
.brand,
.section-heading,
.order-summary,
.method-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header { margin-bottom: 24px; }
.brand { gap: 8px; color: #143c37; font-size: 19px; font-weight: 750; text-decoration: none; }
.brand span { color: #527068; font-size: 14px; font-weight: 550; }
.environment-label { color: #176b57; font-size: 13px; font-weight: 650; }

.test-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 3px solid #277a68;
  border-bottom: 1px solid #d7e0dc;
  padding: 24px 0;
}

.eyebrow { margin: 0 0 8px; color: #25715f; font-size: 12px; font-weight: 700; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: 28px; }
h2 { margin-bottom: 0; font-size: 19px; }
.test-banner p:last-child { max-width: 570px; margin-bottom: 0; color: #53636a; line-height: 1.6; }

.fixed-product {
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding-left: 22px;
  border-left: 1px solid #cbd7d2;
}
.fixed-product span, .fixed-product small { color: #5c6a70; font-size: 12px; }
.fixed-product strong { color: #173f36; font-size: 25px; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 44px;
  padding: 30px 0 36px;
  border-bottom: 1px solid #d7e0dc;
}
.auth-panel, .checkout-panel { min-width: 0; }
.section-heading { gap: 12px; margin-bottom: 18px; }
.account-state { color: #6c7476; font-size: 12px; }
.account-state.active { color: #176b57; font-weight: 700; }
.account-notice { margin: 0 0 20px; color: #59666a; font-size: 13px; line-height: 1.6; }

form { display: grid; gap: 9px; }
label, legend { color: #42535a; font-size: 13px; font-weight: 600; }
input[type="email"], input[type="password"] {
  width: 100%;
  min-height: 42px;
  margin-bottom: 6px;
  border: 1px solid #cbd5d1;
  border-radius: 4px;
  padding: 9px 11px;
  color: #18242b;
  background: #fff;
  font: inherit;
}
input:focus-visible, button:focus-visible { outline: 3px solid #84c0ac; outline-offset: 2px; }

.button {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.button:disabled { cursor: not-allowed; opacity: 0.52; }
.secondary { color: #1b574a; background: #e4efeb; }
.primary { width: 100%; color: #fff; background: #226c5a; }

.logged-in {
  border-left: 3px solid #37856d;
  padding: 10px 12px;
  color: #34574c;
  background: #e7f1ec;
  font-size: 13px;
}
.hidden { display: none !important; }

.payment-methods {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
  border: 0;
  padding: 0;
}
.payment-methods legend { margin-bottom: 10px; }
.method-option {
  justify-content: flex-start;
  gap: 11px;
  min-height: 48px;
  border: 1px solid #d3ddd8;
  border-radius: 4px;
  padding: 8px 11px;
  background: #fff;
  color: #27383d;
  cursor: pointer;
}
.method-option:has(input:checked) { border-color: #438b75; background: #f0f7f4; }
.method-option input { accent-color: #24735e; }
.method-mark { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.alipay-mark { color: #1676c4; background: #e2f1ff; }
.wxpay-mark { color: #128751; background: #e1f5e9; }
.order-summary { margin-bottom: 14px; border-top: 1px solid #e0e6e3; padding: 16px 0; color: #53636a; font-size: 13px; }
.order-summary strong { color: #1c3c35; font-size: 19px; }
.status { min-height: 40px; margin: 12px 0 0; color: #657278; font-size: 12px; line-height: 1.5; }
footer { padding: 16px 0; color: #657278; font-size: 12px; line-height: 1.6; }

@media (max-width: 680px) {
  .page-shell { padding: 18px; }
  .test-banner { align-items: flex-start; flex-direction: column; gap: 20px; }
  .fixed-product { width: 100%; min-width: 0; border-left: 0; border-top: 1px solid #cbd7d2; padding: 14px 0 0; }
  .content-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 24px; }
}
