.mall-toast {
  position: fixed;
  left: 50%;
  top: 24px;
  z-index: 9999;
  transform: translateX(-50%) translateY(-12px);
  min-width: 180px;
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(34, 34, 34, 0.92);
  color: #fff;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mall-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mall-local-cart {
  margin: 0 0 26px;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20, 31, 56, 0.08);
}

.mall-local-cart__head,
.mall-local-cart__row,
.mall-local-cart__foot {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 140px 140px 130px;
  align-items: center;
  gap: 18px;
}

.mall-local-cart__head {
  min-height: 42px;
  padding: 0 0 12px;
  border-bottom: 1px solid #edf0f6;
  color: #7b8398;
  font-size: 13px;
  font-weight: 700;
}

.mall-local-cart__row {
  padding: 18px 0;
  border-bottom: 1px solid #f0f2f7;
}

.mall-local-cart__goods {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mall-local-cart__goods img {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border-radius: 10px;
  object-fit: cover;
  background: #f6f7fb;
}

.mall-local-cart__title {
  display: block;
  max-width: 100%;
  color: #222;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mall-local-cart__shop {
  margin-top: 6px;
  color: #8a90a1;
  font-size: 13px;
}

.mall-local-cart__price,
.mall-local-cart__subtotal {
  color: #d61f26;
  font-size: 16px;
  font-weight: 800;
}

.mall-local-cart__qty {
  display: inline-flex;
  width: 118px;
  height: 34px;
  border: 1px solid #dfe3ec;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.mall-local-cart__qty button {
  width: 34px;
  border: 0;
  background: #f7f8fc;
  color: #4b5367;
  font-size: 18px;
  cursor: pointer;
}

.mall-local-cart__qty input {
  width: 50px;
  border: 0;
  border-left: 1px solid #dfe3ec;
  border-right: 1px solid #dfe3ec;
  text-align: center;
  outline: none;
}

.mall-local-cart__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 32px;
  border: 1px solid #edf0f6;
  border-radius: 8px;
  background: #fff;
  color: #6f7688;
  cursor: pointer;
}

.mall-local-cart__foot {
  grid-template-columns: 1fr auto auto;
  padding-top: 18px;
}

.mall-local-cart__clear {
  width: 92px;
  height: 36px;
  border: 1px solid #edf0f6;
  border-radius: 8px;
  background: #fff;
  color: #6f7688;
  cursor: pointer;
}

.mall-local-cart__total {
  color: #222;
  font-size: 16px;
  font-weight: 700;
}

.mall-local-cart__total strong {
  color: #d61f26;
  font-size: 22px;
}

.mall-local-cart__checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef3f45, #c70014);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.mall-local-cart__checkout:hover,
.mall-local-cart__checkout:visited {
  color: #fff;
}

.mall-pay-dialog-open {
  overflow: hidden;
}

.mall-pay-dialog {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
}

.mall-pay-dialog.is-visible {
  display: flex;
}

.mall-pay-dialog__box {
  width: min(440px, 100%);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26);
}

.mall-pay-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid #eef0f4;
}

.mall-pay-dialog__head strong {
  color: #111827;
  font-size: 17px;
}

.mall-pay-dialog__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  font-size: 18px;
  line-height: 34px;
}

.mall-pay-dialog__body {
  padding: 24px;
  text-align: center;
}

.mall-pay-dialog__amount {
  margin-bottom: 18px;
  color: #4b5563;
  font-size: 15px;
}

.mall-pay-dialog__amount strong {
  color: #d61f26;
  font-size: 24px;
}

.mall-pay-dialog__methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.mall-pay-dialog__methods button {
  height: 44px;
  border: 1px solid #dfe4ec;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.mall-pay-dialog__methods button:hover,
.mall-pay-dialog__methods button.is-active {
  border-color: #d61f26;
  background: #fff5f5;
  color: #d61f26;
}

.mall-pay-dialog__qrcode {
  padding-top: 4px;
}

.mall-pay-dialog__qrcode img {
  display: block;
  width: 214px;
  height: 214px;
  margin: 0 auto 14px;
  object-fit: contain;
  border: 10px solid #f8fafc;
  border-radius: 14px;
}

.mall-pay-dialog__qrcode p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.8;
}

.mall-pay-dialog__qrcode p strong {
  color: #111827;
  font-size: 16px;
}

@media (max-width: 900px) {
  .mall-local-cart {
    padding: 16px;
  }

  .mall-local-cart__head {
    display: none;
  }

  .mall-local-cart__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mall-local-cart__foot {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .mall-local-cart__clear,
  .mall-local-cart__checkout {
    width: 100%;
  }

  .mall-pay-dialog {
    padding: 16px;
  }

  .mall-pay-dialog__methods {
    grid-template-columns: 1fr;
  }
}
