body {
  background: #f0f1f3;
}

.order-shell {
  padding-bottom: calc(112px + var(--safe-bottom));
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.order-sub-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(240, 241, 243, 0.96);
  box-shadow: none;
}

.order-sub-header .sub-header__back {
  position: relative;
  width: 28px;
  height: 28px;
  margin-left: 4px;
  color: transparent;
  font-size: 0;
}

.order-sub-header .sub-header__back::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-left: 2px solid #2b2b2b;
  border-bottom: 2px solid #2b2b2b;
  transform: rotate(45deg);
}

.order-main,
.result-main {
  padding: 10px 15px 24px;
}

.order-section {
  opacity: 0;
  transform: translateY(14px);
  animation: order-fade-up 0.5s ease forwards;
}

.order-section--delay-1 {
  animation-delay: 0.08s;
}

.order-section--delay-2 {
  animation-delay: 0.16s;
}

.order-card {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}

.order-card + .order-card {
  margin-top: 10px;
}

.order-card--address {
  padding: 15px;
}

.order-address {
  display: grid;
  gap: 10px;
}

.order-address__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-address__head strong,
.order-address__head span,
.order-address p {
  color: #262626;
}

.order-address__head strong,
.order-address__head span {
  font-size: 14px;
  line-height: 16px;
}

.order-address__head img {
  width: 16px;
  height: 16px;
  margin-left: auto;
}

.order-address p {
  font-size: 14px;
  line-height: 20px;
}

.order-card .order-group-title,
.payment-head h3,
.result-section-title {
  color: #262626;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

.order-card .order-group-title {
  margin-top: 20px;
}

.order-card {
  padding: 20px 15px;
}

.order-list {
  display: grid;
  gap: 20px;
}

.order-list--compact {
  margin-top: 15px;
}

.order-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
}

.order-item__thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: #f7f8fa;
}

.order-item__body h2,
.order-item__body p,
.order-item__body strong {
  text-align: left;
}

.order-item__body h2 {
  color: #262626;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.order-item__body p {
  margin-top: 4px;
  color: #9fa3a7;
  font-size: 12px;
  line-height: 16px;
}

.order-item__body strong {
  display: block;
  margin-top: 10px;
  color: #262626;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.qty-stepper--order {
  align-self: end;
  display: inline-grid;
  grid-template-columns: 24px 32px 24px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  overflow: hidden;
}

.qty-stepper--order button,
.qty-stepper--order span {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-stepper--order button {
  border: 0;
  background: #fff;
  color: rgba(0, 0, 0, 0.6);
  font-size: 20px;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.qty-stepper--order button:active {
  transform: scale(0.96);
  background: #f6f7f8;
}

.qty-stepper--order span {
  border-left: 1px solid #dddddd;
  border-right: 1px solid #dddddd;
  color: rgba(0, 0, 0, 0.9);
  font-size: 15px;
  line-height: 23px;
}

.order-divider {
  height: 1px;
  margin-top: 20px;
  background: #f0f0f0;
}

.order-detail-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.order-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-detail-row span,
.order-detail-row strong,
.order-detail-row small {
  text-align: left;
}

.order-detail-row span,
.order-detail-row strong {
  color: #262626;
  font-size: 14px;
  line-height: 20px;
}

.order-detail-row strong {
  font-weight: 600;
}

.order-detail-row small {
  display: block;
  color: #7e8790;
  font-size: 13px;
  line-height: 18px;
}

.order-detail-row--input div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.order-detail-row--input small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-inline-button {
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  position: relative;
}

.order-inline-button::before {
  content: "";
  position: absolute;
  right: 1px;
  top: 1px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #2f2f2f;
  border-right: 2px solid #2f2f2f;
  transform: rotate(45deg);
}

.order-detail-row--note {
  cursor: text;
}

.order-detail-row--note input {
  flex: 1;
  min-width: 0;
  color: #7e8790;
  font-size: 14px;
  text-align: right;
  border: 0;
  background: transparent;
}

.order-detail-row--note img {
  width: 16px;
  height: 16px;
}

.order-detail-row--service {
  align-items: flex-start;
}

.order-detail-row--service div {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.payment-head {
  margin-bottom: 10px;
}

.payment-method {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: transparent;
  text-align: left;
}

.payment-method:last-of-type {
  border-bottom: 0;
}

.payment-method__info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-method__info img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.payment-method__info span {
  color: #262626;
  font-size: 15px;
  line-height: 20px;
}

.payment-radio {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.payment-method.is-selected .payment-radio {
  border-color: #006843;
  background: #006843;
}

.payment-method.is-selected .payment-radio::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.bank-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.bank-list::-webkit-scrollbar {
  display: none;
}

.bank-card {
  min-width: 116px;
  min-height: 88px;
  padding: 12px;
  border-radius: 12px;
  background: #f7f8fa;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.05);
}

.bank-card strong,
.bank-card p,
.bank-card span {
  text-align: left;
}

.bank-card strong {
  color: #262626;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.bank-card p {
  margin-top: 8px;
  color: #6d7580;
  font-size: 12px;
  line-height: 16px;
}

.bank-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bank-card__head span {
  padding: 2px 6px;
  border-radius: 999px;
  background: #e9f5ef;
  color: #006843;
  font-size: 10px;
  line-height: 14px;
}

.bank-card--default {
  background: linear-gradient(180deg, #eef6f1 0%, #f7fbf8 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 104, 67, 0.08);
}

.order-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px calc(14px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -1px 0 rgba(17, 24, 39, 0.06);
}

.order-footer__total {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.order-footer__total span,
.order-footer__total strong,
.order-footer__total del {
  white-space: nowrap;
}

.order-footer__total span {
  color: #262626;
  font-size: 12px;
  line-height: 17px;
}

.order-footer__total strong {
  color: #262626;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.order-footer__total del {
  color: #9fa3a7;
  font-size: 11px;
  line-height: 16px;
}

.order-footer__cta {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 28px;
  border-radius: 999px;
  background: #006843;
  color: #fff;
  font-size: 14px;
  line-height: 38px;
  font-weight: 600;
  box-shadow: 0 14px 24px rgba(0, 104, 67, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-footer__cta:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 8px 16px rgba(0, 104, 67, 0.14);
}

.result-main {
  padding-top: 10px;
}

.result-card {
  padding: 18px 18px 22px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.result-card__badge {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.result-card--success .result-card__badge {
  background: #91ca7a;
}

.result-card--failure .result-card__badge {
  background: #ff6666;
}

.result-card__badge img {
  width: 26px;
  height: 26px;
  animation: order-float 2.6s ease-in-out infinite;
}

.result-card h1 {
  margin-top: 14px;
  color: #111827;
  font-size: 15px;
  line-height: 21px;
  font-weight: 600;
}

.result-card__actions,
.result-card__single-action {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 20px;
}

.result-card__actions a,
.result-card__single-action a {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #006843;
  font-size: 15px;
  line-height: 21px;
  font-weight: 500;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.result-card__actions a + a::before {
  content: "|";
  margin: 0 8px 0 6px;
  color: #7e8790;
}

.result-card__actions a:active,
.result-card__single-action a:active {
  transform: scale(0.98);
  opacity: 0.75;
}

.result-section-title {
  margin-top: 18px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 19px;
  row-gap: 15px;
  margin-top: 15px;
}

.result-product-card {
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
}

.result-product-card--full {
  height: 290px;
  padding-bottom: 15px;
}

.result-product-card--compact {
  height: 199px;
  padding-bottom: 1px;
}

.result-product-card__media {
  background: #fbfbfb;
  border-radius: 6px 6px 0 0;
}

.result-product-card__media img {
  display: block;
  margin: 0 auto;
  width: 130px;
  height: 130px;
  object-fit: contain;
  aspect-ratio: auto;
}

.result-product-card--machine .result-product-card__media {
  padding: 17px 16px 16px 17px;
}

.result-product-card--bucket .result-product-card__media {
  padding: 16px 17px 17px 16px;
}

.result-product-card--bag .result-product-card__media {
  padding: 17px 18px 18px 17px;
}

.result-product-card--bag .result-product-card__media img {
  width: 128px;
  height: 128px;
}

.result-product-card--tower .result-product-card__media {
  padding: 17px 16px 16px 17px;
}

.result-product-card h3 {
  padding: 15px 15px 0;
  color: #262626;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.result-product-card--long h3 {
  width: 133px;
  min-height: 40px;
}

.result-product-card__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 128px;
  padding: 0;
  margin: 30px 20px 0 15px;
  position: relative;
}

.result-product-card__price::after {
  content: "";
  position: absolute;
  right: 0;
  left: 67px;
  top: 9px;
  height: 1px;
  background: #9fa3a7;
}

.result-product-card--long .result-product-card__price {
  margin-top: 10px;
}

.result-product-card__price strong {
  color: #262626;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.result-product-card__price del {
  color: #9fa3a7;
  font-size: 13px;
  line-height: 18px;
}

.result-product-card__meta {
  display: flex;
  justify-content: space-between;
  width: 133px;
  padding: 0;
  margin: 15px auto 0;
  color: #9fa3a7;
  font-size: 10px;
  line-height: 14px;
}

@keyframes order-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes order-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (max-width: 359px) {
  .order-main,
  .result-main {
    padding-inline: 12px;
  }

  .order-card {
    padding-inline: 12px;
  }

  .order-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .qty-stepper--order {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
  }

  .order-footer {
    padding-inline: 12px;
  }

  .order-footer__cta {
    padding-inline: 20px;
  }
}
