:root {
  --green: #00452b;
  --green2: #155e3f;
  --bg: #f8faf9;
  --text: #191c1c;
  --muted: #737c76;
  --line: #e5eae6;
  --pale: #e7f2eb;
  --red: #b52b24;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: var(--text);
  background: #eef2ef;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus,
a:focus {
  outline: none;
}
html[data-keyboard-focus] button:focus-visible,
html[data-keyboard-focus] a:focus-visible {
  outline: 2px solid #90d5ae;
  outline-offset: 2px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: transparent;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 22px;
  line-height: 1.4;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 15px;
  line-height: 1.55;
}
small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
  line-height: 1.7;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
.right {
  text-align: right;
}
.green {
  color: var(--green);
}
.price {
  color: var(--red);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.price.large {
  font-size: 27px;
}
.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
#app {
  max-width: 480px;
  margin: auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
}
.top {
  height: 62px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #edf0ed;
}
.top .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.top img {
  width: 31px;
  height: 31px;
}
.top h1 {
  font-size: 18px;
}
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
}
.content {
  padding: 20px 18px 108px;
}
.content.checkout {
  padding-bottom: 190px;
}
.welcome {
  margin: 2px 0 22px;
}
.welcome h1 {
  margin-bottom: 8px;
}
.badge {
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  background: var(--pale);
  color: var(--green2);
  white-space: nowrap;
}
.badge.orange {
  background: #fff0df;
  color: #975000;
}
.badge.gray {
  background: #eef0ef;
  color: #69726c;
}
.badge.red {
  background: #fdece9;
  color: var(--red);
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 13px;
}
.section-title small {
  font-size: 12px;
  color: var(--muted);
}
.card {
  background: #fff;
  border: 1px solid #edf0ed;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
}
.product {
  display: flex;
  gap: 14px;
  padding: 16px;
}
.product-art {
  width: 85px;
  height: 94px;
  flex-shrink: 0;
  background: #f0f4f0;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #6f8c76;
}
.product-art .icon {
  width: 40px;
  height: 40px;
  stroke-width: 1;
}
.product-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product h3 {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.product .unit {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 6px;
  flex-wrap: wrap;
}
.stepper {
  display: flex;
  align-items: center;
  background: #f4f6f4;
  border-radius: 6px;
  height: 34px;
  overflow: hidden;
}
.stepper button {
  width: 32px;
  height: 34px;
  font-size: 20px;
  color: var(--green);
}
.stepper input {
  width: 39px;
  min-width: 0;
  text-align: center;
  background: transparent;
  border: 0;
  outline-color: #90d5ae;
  font-size: 13px;
  padding: 0;
  color: var(--text);
}
.pickup {
  background: #eff4f0;
  border-color: #e7eee8;
}
.pickup .pin {
  color: var(--green2);
  align-self: flex-start;
  margin-top: 2px;
}
.pickup h3 {
  margin-bottom: 6px;
}
.pickup p {
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.pickup .small {
  font-size: 11px;
}
.notice {
  background: #f0f4f1;
  color: #526357;
  font-size: 12px;
  line-height: 1.75;
  padding: 12px 14px;
  border-radius: 7px;
  margin: 12px 0;
}
.notice.test {
  background: #fff4dd;
  color: #815719;
}
.notice.error {
  background: #fff0ed;
  color: #a63828;
}
.footer-note {
  text-align: center;
  color: #98a09a;
  font-size: 10px;
  letter-spacing: 1px;
  margin: 24px 0;
}
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  padding: 9px 12px calc(8px + env(safe-area-inset-bottom));
  z-index: 30;
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #8a918d;
  min-height: 43px;
}
.bottom-nav a.active {
  color: var(--green);
  font-weight: 700;
}
.bottom-nav .active .icon {
  stroke-width: 2.2;
}
.checkout-bar {
  position: fixed;
  bottom: calc(61px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 25;
  border-top: 1px solid var(--line);
}
.checkout-bar .sub {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 45px;
  padding: 11px 21px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  background: var(--green);
  color: #fff;
  text-align: center;
}
.btn.secondary {
  background: white;
  color: var(--green);
  border: 1px solid #cbd7cd;
}
.btn.quiet {
  background: #f0f4f1;
  color: var(--green);
}
.btn.danger {
  background: #fff;
  color: var(--red);
  border: 1px solid #ecd3ce;
}
.btn.compact {
  min-height: 34px;
  font-size: 12px;
  padding: 7px 13px;
}
.btn.full {
  width: 100%;
}
.link {
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  min-height: 40px;
  padding: 8px 0;
}
.auth {
  padding: 56px 28px 35px;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at top right, #e7f0e9 0, transparent 65%), var(--bg);
}
.auth-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  box-shadow: 0 9px 18px #00452b12;
  border-radius: 18px;
}
.auth h1 {
  font-size: 28px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.auth .intro {
  font-size: 13px;
  line-height: 1.9;
  color: #79847c;
  margin-bottom: 32px;
}
.auth form {
  margin-top: 26px;
}
.field {
  display: block;
  margin: 0 0 20px;
}
.field > span,
.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 9px;
  color: #435046;
}
.input {
  width: 100%;
  border: 1px solid #dce3dd;
  background: #fff;
  border-radius: 6px;
  padding: 14px 12px;
  min-height: 48px;
  outline: none;
  color: var(--text);
}
.input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #00452b09;
}
.phone-input {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #dce3dd;
  border-radius: 6px;
  overflow: hidden;
}
.phone-input span {
  padding: 0 14px;
  color: #6f7a72;
  font-size: 14px;
  border-right: 1px solid #e2e7e3;
}
.phone-input input {
  border: 0;
  width: 100%;
  outline: 0;
  padding: 16px 12px;
  min-width: 0;
  background: transparent;
  font-size: 16px;
}
.otp {
  letter-spacing: 9px;
  font-size: 21px;
  text-align: center;
}
.auth .btn.full {
  margin-top: 10px;
  min-height: 50px;
}
.auth-foot {
  text-align: center;
  margin-top: 50px;
  line-height: 2;
  color: #8c958f;
  font-size: 10px;
}
.form-error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.7;
  margin: 10px 0;
  min-height: 18px;
}
.tabs {
  display: flex;
  gap: 21px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
  position: sticky;
  top: 62px;
  z-index: 15;
}
.tabs button {
  font-size: 13px;
  white-space: nowrap;
  padding: 17px 0 14px;
  border-bottom: 2px solid transparent;
  color: #818981;
  min-width: 42px;
}
.tabs button.active {
  color: var(--green);
  border-color: var(--green);
  font-weight: 700;
}
.order-head {
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f2ef;
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.order-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
}
.order-line h3 {
  font-size: 13px;
  font-weight: 500;
}
.order-line p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.order-total {
  border-top: 1px solid #f0f2ef;
  padding-top: 13px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 15px;
}
.hero-status {
  padding: 25px 22px;
  background: var(--green);
  color: #fff;
}
.hero-status .icon {
  width: 29px;
  height: 29px;
}
.hero-status h1 {
  font-size: 21px;
  margin: 8px 0;
}
.hero-status p {
  font-size: 12px;
  line-height: 1.8;
  color: #c3dbc9;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  font-size: 12px;
  line-height: 1.8;
  margin: 12px 0;
}
.kv span:first-child {
  color: var(--muted);
  flex-shrink: 0;
}
.kv span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
}
.qr-page {
  text-align: center;
}
.qr-page .pay-label {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 12px;
}
.pay-amount {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.pay-amount small {
  font-size: 23px;
  margin-right: 5px;
}
.qr-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 24px auto 14px;
  max-width: 312px;
}
.qr-box img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
}
.qr-box .icon {
  height: 110px;
  width: 110px;
  margin: 35px;
  color: #9aafa0;
}
.qr-box p {
  font-size: 12px;
  margin-top: 16px;
  color: #6d7c70;
}
.countdown {
  color: #a06227;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.pay-methods {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 18px 0 25px;
  font-size: 12px;
  color: #526f5b;
}
.qr-page .actions {
  justify-content: center;
}
.status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  background: var(--pale);
  color: var(--green);
  border-radius: 50%;
  margin: 10px auto 18px;
}
.status-icon .icon {
  width: 29px;
  height: 29px;
}
.empty {
  text-align: center;
  padding: 65px 15px;
  color: #8b968e;
}
.empty .icon {
  width: 53px;
  height: 53px;
  stroke-width: 1;
  margin-bottom: 15px;
  color: #acbcb1;
}
.empty h3 {
  font-size: 15px;
  color: #58665c;
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
  line-height: 1.8;
}
.empty .btn {
  margin-top: 24px;
}
.invoice-hero {
  background: var(--green);
  color: white;
  padding: 23px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.invoice-hero p {
  font-size: 12px;
  color: #c6ddcd;
  line-height: 1.7;
  margin: 8px 0 15px;
}
.invoice-hero .btn {
  background: #e7f2e9;
  color: var(--green);
}
.choose-order {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.choose-order input,
.radio input {
  accent-color: var(--green);
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.choose-order h3 {
  font-size: 12px;
  word-break: break-all;
}
.choose-order p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.radio-row {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9e1da;
  padding: 12px;
  border-radius: 6px;
  flex: 1;
  font-size: 13px;
}
.radio:has(input:checked) {
  border-color: var(--green);
  background: #f0f6f1;
}
.section-label {
  font-size: 15px;
  margin: 24px 0 14px;
}
.loading {
  padding: 70px 20px;
  text-align: center;
  color: #6d7d70;
  font-size: 13px;
}
.spinner {
  width: 25px;
  height: 25px;
  border: 2px solid #dce8df;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#toast {
  position: fixed;
  z-index: 100;
  bottom: 190px;
  left: 50%;
  transform: translateX(-50%);
  background: #183222ed;
  color: #fff;
  padding: 12px 20px;
  font-size: 13px;
  line-height: 1.7;
  border-radius: 8px;
  max-width: 85%;
  width: max-content;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
#toast.show {
  opacity: 1;
}
dialog {
  width: calc(100% - 40px);
  max-width: 400px;
  border: 0;
  border-radius: 13px;
  padding: 24px;
  color: var(--text);
  box-shadow: 0 20px 70px #0002;
}
dialog::backdrop {
  background: #0d221b66;
}
dialog h2 {
  margin-bottom: 17px;
}
dialog p {
  line-height: 1.8;
  font-size: 13px;
  color: #526357;
}
dialog .actions {
  margin-top: 24px;
}
dialog .scroll {
  max-height: 50dvh;
  overflow: auto;
}
.form-bottom {
  padding-top: 8px;
}
.order-id {
  overflow-wrap: anywhere;
}
.no-margin {
  margin: 0;
}
@media (min-width: 500px) {
  #app {
    box-shadow: 0 0 45px #1636200a;
  }
  .auth {
    padding-top: 72px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.kv .order-id {
  flex-shrink: 1 !important;
  min-width: 0;
  max-width: 72%;
}
.auth.auth-login {
  padding: max(20px, env(safe-area-inset-top)) 24px max(16px, env(safe-area-inset-bottom));
  background-color: #fff;
  background-image:
    linear-gradient(180deg, #ffffff18 0, #ffffffaa 180px, #fffffff5 320px, #fff 520px),
    url("/login-background.png");
  background-position: center top;
  background-size: 100% 100%, 100% auto;
  background-repeat: no-repeat;
}
.auth-login .auth-logo {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.auth-login h1 {
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 8px;
}
.auth-login .intro {
  line-height: 1.6;
  margin-bottom: 16px;
  color: #3c564b;
}
.auth-login form {
  margin-top: 0;
}
.auth-login .field {
  margin-bottom: 12px;
}
.auth-login .field > span {
  margin-bottom: 6px;
}
.auth-login .phone-input input {
  min-height: 46px;
  padding: 12px;
}
.auth-login .otp {
  min-height: 48px;
  padding: 10px 12px;
}
.auth-login .form-error:empty {
  display: none;
}
.auth-login .notice {
  margin: 8px 0;
  padding: 8px 10px;
  line-height: 1.6;
}
.auth-login .btn.full {
  margin-top: 8px;
  min-height: 46px;
}
.auth-register-note {
  margin-top: 10px;
}
.auth-login .auth-foot {
  margin-top: 16px;
  line-height: 1.6;
}
@media (max-height: 660px) {
  .auth.auth-login {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .auth-login .auth-logo {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
  }
  .auth-login h1 {
    font-size: 24px;
  }
  .auth-login .intro {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .auth-login .auth-foot {
    margin-top: 10px;
  }
}
