/* 木屿 H5 · 订单详情 */

.order-detail {
  padding: 0.2rem 0.24rem calc(0.6rem + env(safe-area-inset-bottom));
}

.order-detail.has-actionbar {
  padding-bottom: calc(1.6rem + env(safe-area-inset-bottom));
}

/* 状态横幅 */
.status-banner {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.34rem 0.3rem;
  border-radius: 0.24rem;
  background: #eef1e7;
  color: #405446;
}

.status-banner-title {
  font-size: 0.42rem;
  font-weight: 500;
  letter-spacing: 0.02rem;
  line-height: 1.2;
}

.status-banner-tip {
  font-size: 0.2rem;
  letter-spacing: 0.01rem;
  opacity: 0.82;
}

.status-banner.status-pending-payment {
  background: #f6e7df;
  color: #a2512f;
}

.status-banner.status-paid {
  background: #f3ecdc;
  color: #8a6f3a;
}

.status-banner.status-shipped,
.status-banner.status-completed {
  background: #e4efe6;
  color: #2f6b4f;
}

.status-banner.status-cancelled,
.status-banner.status-refunded {
  background: #ece9e1;
  color: #7c766a;
}

.status-banner.status-refunding {
  background: #f6e7df;
  color: #a2512f;
}

/* 卡片 */
.detail-card {
  margin-top: 0.2rem;
  padding: 0.24rem 0.26rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.07);
  border-radius: 0.24rem;
  background: #fffcf6;
}

.detail-card-head {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  margin-bottom: 0.16rem;
  color: #4a5045;
}

.detail-card-head .icon {
  width: 0.3rem;
  height: 0.3rem;
  color: #6d7a68;
}

.detail-card-title {
  color: #30332b;
  font-size: 0.26rem;
  font-weight: 500;
  letter-spacing: 0.01rem;
}

/* 收货信息 */
.receiver-name {
  color: #35382f;
  font-size: 0.26rem;
  font-weight: 500;
  letter-spacing: 0.005rem;
}

.receiver-phone {
  margin-left: 0.2rem;
  color: #8d897c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.22rem;
  font-weight: 400;
}

.receiver-addr {
  margin-top: 0.12rem;
  color: #6e6759;
  font-size: 0.23rem;
  line-height: 1.6;
  letter-spacing: 0.005rem;
}

/* 商品清单 */
.od-items {
  padding-top: 0.02rem;
}

.od-item-row {
  display: flex;
  align-items: center;
  padding: 0.12rem 0;
}

.od-item-row + .od-item-row {
  border-top: 0.01rem solid rgba(36, 38, 31, 0.06);
}

.od-item-media {
  flex: none;
  overflow: hidden;
  width: 1.16rem;
  height: 1.16rem;
  border-radius: 0.16rem;
  background: #efe7da;
}

.od-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.od-item-copy {
  flex: 1;
  min-width: 0;
  padding: 0 0.18rem;
}

.od-item-name {
  display: block;
  overflow: hidden;
  color: #35382f;
  font-size: 0.24rem;
  font-weight: 500;
  letter-spacing: 0.005rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.od-item-spec {
  display: block;
  margin-top: 0.06rem;
  color: #a29b8d;
  font-size: 0.19rem;
}

.od-item-side {
  flex: none;
  text-align: right;
}

.od-item-price {
  display: block;
  color: #4a4a40;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.23rem;
}

.od-item-qty {
  display: block;
  margin-top: 0.04rem;
  color: #a29b8d;
  font-size: 0.19rem;
}

/* 明细行 */
.meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.12rem 0;
  border-top: 0.01rem solid rgba(36, 38, 31, 0.06);
}

.meta-row:first-of-type {
  border-top: none;
}

.meta-label {
  flex: none;
  color: #9c9587;
  font-size: 0.22rem;
  letter-spacing: 0.005rem;
}

.meta-value {
  flex: 1;
  text-align: right;
  color: #4a4a40;
  font-size: 0.22rem;
  letter-spacing: 0.005rem;
  word-break: break-all;
}

.meta-row--total {
  margin-top: 0.06rem;
  padding-top: 0.18rem;
  border-top: 0.01rem solid rgba(36, 38, 31, 0.12);
}

.meta-pay {
  color: #b05f40;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.32rem;
  font-weight: 600;
}

/* 底部操作栏 */
.detail-actionbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.16rem;
  width: min(100vw, 480px);
  padding: 0.18rem 0.3rem calc(0.2rem + env(safe-area-inset-bottom));
  background: rgba(251, 246, 236, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -0.1rem 0.4rem rgba(47, 43, 33, 0.08);
  transform: translateX(-50%);
}

.o-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 0.72rem;
  padding: 0 0.4rem;
  border-radius: 9.99rem;
  font-size: 0.24rem;
  letter-spacing: 0.01rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.o-btn:disabled {
  opacity: 0.5;
}

.o-btn.primary {
  background: #20372c;
  color: #f7f3ea;
}

.o-btn.ghost {
  border: 0.01rem solid rgba(36, 38, 31, 0.16);
  background: transparent;
  color: #5b5547;
}

.o-wait-hint {
  color: #b05f40;
  font-size: 0.22rem;
  letter-spacing: 0.01rem;
}

/* 空态 */
.od-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 0;
  color: #a29b8d;
  font-size: 0.24rem;
}

/* 退款弹层 */
.mori-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 50%;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(100vw, 480px);
  transform: translateX(-50%);
}

.mori-modal[hidden] {
  display: none;
}

.mori-modal-mask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(20, 22, 16, 0.42);
}

.mori-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0.36rem 0.36rem calc(0.32rem + env(safe-area-inset-bottom));
  border-radius: 0.32rem 0.32rem 0 0;
  background: #fbf6ec;
  box-shadow: 0 -0.2rem 0.6rem rgba(20, 22, 16, 0.18);
}

.mori-modal-title {
  display: block;
  margin-bottom: 0.24rem;
  color: #30332b;
  font-size: 0.36rem;
  font-weight: 500;
  letter-spacing: 0.01rem;
}

.mori-modal-textarea {
  width: 100%;
  min-height: 1.8rem;
  padding: 0.2rem 0.22rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.12);
  border-radius: 0.18rem;
  background: #fffcf6;
  color: #35382f;
  font-size: 0.24rem;
  line-height: 1.5;
  resize: vertical;
}

.mori-modal-actions {
  display: flex;
  gap: 0.18rem;
  margin-top: 0.28rem;
}

.mori-modal-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0.84rem;
  border-radius: 9.99rem;
  font-size: 0.26rem;
  letter-spacing: 0.01rem;
  cursor: pointer;
}

.mori-modal-btn.primary {
  background: #20372c;
  color: #f7f3ea;
}

.mori-modal-btn.ghost {
  border: 0.01rem solid rgba(36, 38, 31, 0.16);
  color: #5b5547;
}

.mori-modal-btn:disabled {
  opacity: 0.5;
}
