/* 木屿 H5 · 结算页（新建，风格与购物袋一致：暖米色卡片 / 圆角 / serif 标题 / hairline） */

.checkout-page {
  padding: 0 0.24rem calc(2.4rem + env(safe-area-inset-bottom));
}

.checkout-heading {
  display: flex;
  flex-direction: column;
  padding: 0.18rem 0.08rem 0.22rem;
}

.checkout-title {
  display: block;
  margin-top: 0.07rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02rem;
  line-height: 1.1;
}

/* 收货地址卡 */
.address-card {
  display: flex;
  align-items: center;
  margin-top: 0.04rem;
  padding: 0.24rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.06);
  border-radius: 0.28rem;
  background: #fffcf6;
  cursor: pointer;
}

.address-card--empty {
  background: #f3eee4;
  border-style: dashed;
  border-color: rgba(36, 38, 31, 0.16);
}

.address-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 0.66rem;
  height: 0.66rem;
  margin-right: 0.2rem;
  border-radius: 50%;
  background: #e7eadf;
  color: #415547;
}

.address-icon .icon {
  width: 0.32rem;
  height: 0.32rem;
}

.address-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.address-name-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.06rem;
}

.address-name {
  color: #2d3028;
  font-size: 0.28rem;
  font-weight: 600;
  letter-spacing: 0.005rem;
}

.address-phone {
  margin-left: 0.14rem;
  color: #8d8678;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.22rem;
}

.addr-default {
  margin-left: 0.12rem;
  padding: 0.02rem 0.1rem;
  border-radius: 0.06rem;
  background: #e7eadf;
  color: #4a5b41;
  font-size: 0.16rem;
  letter-spacing: 0.01rem;
}

.address-detail {
  display: block;
  overflow: hidden;
  color: #7a7468;
  font-size: 0.22rem;
  line-height: 1.4;
  letter-spacing: 0.005rem;
}

.address-empty-text {
  color: #8f887b;
  font-size: 0.26rem;
}

.address-arrow {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  margin-left: 0.12rem;
  color: #b7b0a3;
}

.address-arrow .icon {
  width: 0.26rem;
  height: 0.26rem;
}

/* 区块卡片 */
.checkout-section {
  margin-top: 0.2rem;
  padding: 0.24rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.06);
  border-radius: 0.28rem;
  background: #fffcf6;
}

.checkout-section-title {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.18rem;
  color: #2d3028;
  font-size: 0.26rem;
  font-weight: 600;
  letter-spacing: 0.01rem;
}

.checkout-section-sub {
  margin-left: 0.12rem;
  color: #a49d90;
  font-size: 0.18rem;
  font-weight: 400;
}

/* 商品清单 */
.checkout-item {
  display: flex;
  align-items: stretch;
}

.checkout-item + .checkout-item {
  margin-top: 0.2rem;
  padding-top: 0.2rem;
  border-top: 0.01rem solid rgba(36, 38, 31, 0.07);
}

.checkout-item-media {
  flex: none;
  overflow: hidden;
  width: 1.1rem;
  height: 1.2rem;
  border-radius: 0.16rem;
}

.checkout-item-media img {
  width: 100%;
  height: 100%;
}

.checkout-item-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 0.04rem 0 0.04rem 0.18rem;
}

.checkout-item-top {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.checkout-item-name {
  overflow: hidden;
  color: #2d3028;
  font-size: 0.25rem;
  font-weight: 500;
  letter-spacing: 0.005rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.checkout-item-spec {
  align-self: flex-start;
  margin-top: 0.1rem;
  padding: 0.04rem 0.12rem;
  border-radius: 0.06rem;
  background: #f3eee4;
  color: #8f887b;
  font-size: 0.17rem;
  letter-spacing: 0.005rem;
}

.checkout-item-bottom {
  display: flex;
  align-items: baseline;
  margin-top: auto;
}

.checkout-item-bottom .price {
  color: #30342b;
  font-size: 0.28rem;
}

.checkout-item-qty {
  margin-left: 0.12rem;
  color: #9c9587;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.2rem;
}

.checkout-item-sub {
  display: flex;
  flex: none;
  align-items: flex-end;
  padding-left: 0.16rem;
}

.checkout-item-sub .price {
  color: #7c5b42;
  font-size: 0.26rem;
}

/* 备注 */
.remark-input {
  display: block;
  width: 100%;
  min-height: 1.3rem;
  padding: 0.18rem 0.2rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.1);
  border-radius: 0.16rem;
  background: #f9f5ec;
  color: #2d3028;
  font-size: 0.23rem;
  line-height: 1.5;
  letter-spacing: 0.005rem;
  resize: none;
}

.remark-input::placeholder {
  color: #b3ac9e;
}

/* 金额明细 */
.amount-card {
  background: #fbf7ef;
}

.amount-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: #6f695c;
  font-size: 0.23rem;
  letter-spacing: 0.005rem;
}

.amount-row + .amount-row {
  margin-top: 0.16rem;
}

.amount-val {
  color: #3a3d34;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.24rem;
}

.amount-row--total {
  margin-top: 0.2rem;
  padding-top: 0.18rem;
  border-top: 0.01rem solid rgba(36, 38, 31, 0.09);
  color: #2d3028;
  font-size: 0.25rem;
}

.amount-row--total .checkout-price {
  color: #20372c;
  font-size: 0.34rem;
}

/* 环保提示 */
.checkout-note {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.28rem;
  padding: 0.06rem 0;
  color: #9c9587;
  font-size: 0.18rem;
  letter-spacing: 0.005rem;
}

.checkout-note .icon {
  width: 0.25rem;
  height: 0.25rem;
  margin-right: 0.08rem;
  color: #7f8b76;
}

/* 底部固定提交栏 */
.checkout-submit-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100vw, 480px);
  padding: 0.18rem 0.24rem calc(0.18rem + env(safe-area-inset-bottom));
  border-top: 0.01rem solid rgba(36, 38, 31, 0.08);
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 -0.12rem 0.4rem rgba(52, 46, 34, 0.08);
}

.checkout-submit-total {
  display: flex;
  align-items: baseline;
}

.checkout-submit-label {
  margin-right: 0.1rem;
  color: #8b8477;
  font-size: 0.2rem;
}

.checkout-submit-total .checkout-price {
  color: #20372c;
  font-size: 0.42rem;
  line-height: 1.1;
}

.checkout-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0.84rem;
  padding: 0 0.58rem;
  border-radius: 0.22rem;
  background: #20372c;
  color: #f8f3e9;
  font-size: 0.25rem;
  letter-spacing: 0.02rem;
  cursor: pointer;
  box-shadow: 0 0.1rem 0.28rem rgba(32, 55, 44, 0.18);
}

.checkout-submit-btn--loading {
  opacity: 0.55;
  pointer-events: none;
}

/* 空态 */
.checkout-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem 0.3rem 0.6rem;
  text-align: center;
}

.checkout-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #e7eadf;
  color: #415547;
}

.checkout-empty-icon .icon {
  width: 0.7rem;
  height: 0.7rem;
}

.checkout-empty-title {
  margin-top: 0.34rem;
  font-size: 0.42rem;
  font-weight: 500;
  letter-spacing: 0.01rem;
}

.checkout-empty-desc {
  margin-top: 0.12rem;
  color: #968f82;
  font-size: 0.22rem;
  letter-spacing: 0.005rem;
}

.checkout-empty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0.76rem;
  margin-top: 0.32rem;
  padding: 0 0.44rem;
  border-radius: 9.99rem;
  background: #20372c;
  color: #f7f3ea;
  font-size: 0.22rem;
  letter-spacing: 0.02rem;
  cursor: pointer;
}

/* 地址选择弹层 */
.addr-modal {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  width: min(100vw, 480px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.addr-modal--open {
  opacity: 1;
  pointer-events: auto;
}

.addr-modal-mask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(32, 38, 31, 0.34);
}

.addr-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 70%;
  overflow-y: auto;
  padding: 0.26rem 0.24rem calc(0.24rem + env(safe-area-inset-bottom));
  border-radius: 0.28rem 0.28rem 0 0;
  background: #fffcf6;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.addr-modal--open .addr-panel {
  transform: translateY(0);
}

.addr-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.18rem;
}

.addr-panel-head .serif {
  font-size: 0.32rem;
  font-weight: 500;
  letter-spacing: 0.01rem;
}

.addr-panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.5rem;
  height: 0.5rem;
  color: #8d8678;
  cursor: pointer;
}

.addr-panel-close .icon {
  width: 0.28rem;
  height: 0.28rem;
}

.addr-option {
  display: flex;
  align-items: center;
  padding: 0.22rem 0.2rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.08);
  border-radius: 0.2rem;
  background: #faf6ee;
  cursor: pointer;
}

.addr-option + .addr-option {
  margin-top: 0.14rem;
}

.addr-option--on {
  border-color: #20372c;
  background: #f0f3ea;
}

.addr-option-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.addr-option-check {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  margin-left: 0.12rem;
  color: #20372c;
}

.addr-option-check .icon {
  width: 0.3rem;
  height: 0.3rem;
}

.addr-manage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0.84rem;
  margin-top: 0.24rem;
  border-radius: 0.2rem;
  background: #20372c;
  color: #f7f3ea;
  font-size: 0.23rem;
  letter-spacing: 0.02rem;
  cursor: pointer;
}
