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

.diet-box {
  background: #fff;
  border-radius: 12px;
  margin-top: -30px;
}

.delivery-address {
  font-weight: bold;
  color: black;
  font-size: 28rpx;
}

/* order-list.wxss */
.tab-container {
  display: flex;
  justify-content: space-around;
  background-color: #f8f8f8;
  padding: 10px 0;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  cursor: pointer;
}

.tab:hover {
  background-color: #e0e0e0;
}

.tab.active {
  font-weight: bold;
  border-bottom: 2px solid #007aff;
  /* 选中状态的下划线 */
}

.order-address {
  color: #333;
}

.change-address {
  color: #1aad19;
  margin-left: 8rpx;
  font-size: 24rpx;
}

/* miniprogram/module/article/pages/order-list/order-list.wxss */
.page-scroll__container {
  padding: 16rpx;
  background: #f7f8fa;
}

.order-card {
  background: #fff;
  border-radius: 20rpx;
  box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.04);
  margin-bottom: 24rpx;
  padding: 24rpx;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 28rpx;
  margin-bottom: 24rpx;
}

.order-status {
  font-weight: bold;
}

.order-status.status-pending {
  color: #D54941;
}

.order-status.status-received {
  color: #1D6FF6;
}

.order-status.status-completed {
  color: #2BA471;
}

.order-status.status-closed {
  color: #909399;
}

.order-user {
  color: #888;
  font-size: 24rpx;
  margin-bottom: 24rpx;
  display: flex;
  flex-direction: column;
  gap: 4rpx;
  background-color: #F6F6F6;
  padding: 10px;
  border-radius: 8px;
}

.order-body {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16rpx;
}

.order-img {
  width: 120rpx;
  height: 120rpx;
  border-radius: 12rpx;
  margin-right: 20rpx;
}

.order-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 120rpx;
}

.order-title {
  font-size: 28rpx;
  font-weight: 600;
  margin-bottom: 8rpx;
}

.order-doctor,
.order-time {
  font-size: 24rpx;
  color: #888;
}

.order-footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.order-price {
  display: flex;
  margin-bottom: 16px;
}

.order-amount {
  color: #D54941;
  font-weight: bold;
  font-size: 32rpx;
  margin-left: 8rpx;
}

.order-actions {
  display: flex;
  gap: 20rpx;
  transition: none !important;
}

.order-actions .t-button {
  margin: 0 !important;
  min-width: 120rpx !important;
  width: 120rpx !important;
}

// 为立即支付按钮设置固定宽度，防止loading状态时宽度变化
.order-actions .t-button[data-id] {
  min-width: 120rpx !important;
  width: 120rpx !important;
}

// 节流状态下的按钮样式
.order-actions .t-button[disabled] {
  opacity: 1 !important;
  cursor: not-allowed !important;
  background-color: #f5f5f5 !important;
  border-color: #e5e5e5 !important;
  color: #c0c0c0 !important;
}

// 针对 t-design 按钮的自定义样式
.outline-btn {
  background: #fff !important;
  border: 1px solid #1890ff !important; // 主色边框
  color: #1890ff !important; // 主色文字
  box-shadow: none !important;
  border-radius: 30rpx !important;
  transition: none !important;
  // margin-right: 20rpx !important;
}

// 让按钮内的 loading 和文字显式为品牌蓝
.outline-btn .t-loading__spinner,
.outline-btn .t-loading__text {
  color: #1890ff !important;
}
.outline-btn .t-loading__spinner .t-loading__dot::before,
.outline-btn .t-loading__spinner--dots .t-loading__dot,
.outline-btn .t-loading__circular {
  color: #1890ff !important;
  background-color: #1890ff !important;
}

.outline-btn.cancel {
  border-color: #ccc !important;
  color: black !important;
  margin-right: 20rpx;
  transition: none !important;
}

.contact {
  font-size: 28rpx;
  color: black;
  margin-bottom: 10rpx;
  font-weight: bold;
  display: flex
}

.line {
  width: 100%;
  height: 1px;
  background-color: #eee;
  margin: 24rpx 0;
}

.name {
  margin-right: 20rpx;
}

/* 服务包列表样式 */
.service-packages {
  margin-bottom: 24rpx;
}

.service-package-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20rpx;
  padding-bottom: 20rpx;
  
  &:not(:last-child) {
    // border-bottom: 1px solid #f0f0f0;
  }
  
  &:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

.service-package-img {
  width: 120rpx;
  height: 120rpx;
  border-radius: 8rpx;
  margin-right: 20rpx;
  flex-shrink: 0;
  background-color: #f5f5f5;
}

.service-package-placeholder {
  width: 120rpx;
  height: 120rpx;
  border-radius: 8rpx;
  margin-right: 20rpx;
  background-color: #f5f5f5;
  border: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.servicepag-des{
  display: flex;
    align-items: center;
    justify-content: space-between;
}
.placeholder-icon {
  font-size: 40rpx;
  opacity: 0.3;
}

.service-package-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 120rpx;
}

.service-package-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15rpx;
  width: 100%;
}

.service-package-name {
  font-size: 28rpx;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  flex: 1;
}

.service-package-price {
  font-size: 28rpx;
  color: #333;
  font-weight: 500;
  margin-left: 16rpx;
  white-space: nowrap;
}

.service-package-detail {
  font-size: 24rpx;
  color: #666;
  margin-bottom: 8rpx;
  line-height: 1.5;
}

.service-package-quantity {
  font-size: 24rpx;
  color: #666;
  text-align: right;
  line-height: 1.5;
}

/* 展开/收起按钮 */
.expand-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16rpx 0;
  color: #1890ff;
  font-size: 26rpx;
  cursor: pointer;
  user-select: none;
}

.expand-text {
  margin-right: 8rpx;
}

.expand-icon {
  font-size: 20rpx;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
  
  &.expanded {
    transform: rotate(180deg);
  }
}