@import "../../../../themes/page.scss";
@import "../../searc-list.scss";
/* module/diet/pages/diet-info/diet-info.wxss */

.page-scroll__container {
  background-color: white;
}
.order-box {
  background: #ffffff;
  width: 100%;
  border-radius: 25px 25px 0 0;
  padding-top: 15px;
  margin-top: -70px;
}

.order-detail-scroll {
  padding: 0 20rpx 120rpx 20rpx;
  // background: #f7f7f7;
}
// .follow-container{
//   background-image: url('https://wx.hzliuzhi.com:4433/manager/file/statics/2025/07/11/WechatIMG637_20250711120303A498.jpg');
//   background-repeat: no-repeat;
//   width: 100%;
//   background-size: cover;
//   background-position: center;
//   position: relative;
//   padding-bottom: calc(100rpx + env(safe-area-inset-bottom));
// }
.info-box {
  // background: red;
  // border-radius: 20rpx;
  // margin: 24rpx 0;
  padding: 24rpx;
  background-image: url("https://wx.hzliuzhi.com:4433/manager/file/statics/2025/07/11/WechatIMG637_20250711120303A498.jpg");
  background-size: cover;
  background-position: initial;
  background-repeat: no-repeat;
  height: 150px;
}
.delivery-address {
  font-weight: bold;
}

.order-no {
  font-size: 28rpx;
  color: black;
  margin: 24rpx 0 0 0;
}

.address-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20rpx;
  margin: 24rpx 0;
  padding: 24rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.03);
}

.address-header {
  display: flex;
  align-items: center;
  gap: 16rpx;
  margin-bottom: 14rpx;
}

.address-name {
  font-weight: 500;
  font-size: 28rpx;
  margin-right: 20rpx;
}

.address-phone {
  // color: #888;
  font-weight: 500;
  font-size: 28rpx;
}

.address-tag {
  margin-left: auto;
}

.address-detail {
  color: #666;
  font-size: 26rpx;
}

.service-card {
  display: flex;
  background: #fff;
  border-radius: 20rpx;
  margin-bottom: 24rpx;
  padding: 24rpx;
  gap: 24rpx;
}

.service-img {
  width: 140rpx;
  height: 140rpx;
  border-radius: 8rpx;
  margin-right: 15rpx;
}

.service-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-title {
  font-size: 32rpx;
  font-weight: 500;
  margin-bottom: 8rpx;
}

.service-doctor,
.service-time {
  font-size: 26rpx;
  // color: #888;
  margin-bottom: 4rpx;
  display: flex;
}

.item-table {
  background: #fff;
  // border-radius: 20rpx;
  margin-bottom: 24rpx;
  padding: 0;
  overflow: hidden;
  border: 1px solid #eee;
}

.service-date {
  font-size: 30rpx;
  color: #8c8c8c;
  margin-bottom: 20rpx;
  margin-top: 30rpx;
  font-weight: 500;
}

.table-header,
.table-row {
  display: flex;
  font-size: 26rpx;
}

.table-header {
  font-weight: 600;
  color: #333;
  background: #eeeeee;
  border-bottom: 1px solid #eee;
}

.table-row {
  color: #444;
  border-bottom: 1px solid #eee;

  &:last-child {
    border-bottom: none;
  }
}

.table-cell {
  flex: 1;
  text-align: left;
  padding: 18rpx 16rpx;
  // border-right: 1px solid #eee;
  box-sizing: border-box;

  // 让最后一列无右边框
  &:last-child {
    border-right: none;
    text-align: left; // 金额右对齐更美观
  }
}

.order-amount {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 28rpx;
  margin: 24rpx 0 32rpx 0;
}

.order-amount-value {
  color: #d54941;
  font-weight: 500;
  margin-left: 12rpx;
  font-size: 32rpx;
}

.float-badge {
  position: fixed;
  left: 32rpx;
  top: 420rpx;
  z-index: 10;
  font-size: 28rpx;
  border-radius: 12rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.08);
}

.order-detail-footer {
  display: flex;
  justify-content: center;
  gap: 32rpx;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  padding: 24rpx 0 32rpx 0;
  box-shadow: 0 -2rpx 8rpx rgba(0, 0, 0, 0.04);
  z-index: 100;
  .footer-btn {
    flex: 1;
    margin: 0 24rpx;
    font-size: 30rpx;
    border-radius: 12rpx;
    height: 88rpx;
    
    // loading状态下的置灰样式
    &.t-button--loading {
      opacity: 0.6;
      background-color: #f5f5f5 !important;
      color: #999 !important;
    }
    
    // disabled状态下的置灰样式
    &.t-button--disabled {
      opacity: 0.6;
      background-color: #f5f5f5 !important;
      color: #999 !important;
    }
  }
}

.table-row-alt {
  background: #f9f9f9 !important;
}
.total-title {
  font-weight: 500;
  font-size: 28rpx;
  color: black;
}
