.order-confirm-page {
  padding-bottom: 100px; // 留出底部固定按钮的空间

  .error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;

    .error-text {
      color: #999;
      margin-bottom: 20px;
      font-size: 14px;
    }
  }

  .fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);

    .total-price {
      display: flex;
      align-items: center;
    }

    .submit-btn {
      width: 150px;
    }
  }
}
.address-bottom-line{
  width: 100%;
  border-radius: 12rpx 12rpx 0 0;
  background: #fff;
  padding: 26rpx 49rpx 0 34rpx;
  position: relative;
  &:before {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5px;
    background: repeating-linear-gradient(-45deg, #ff6c6c, #ff6c6c 20%, transparent 0, transparent 25%, #1989fa 0,
      #1989fa 45%, transparent 0, transparent 50%);
    background-size: 120px;
    content: "";
  }
}

// 配送方式选择
.delivery-method-group {
  .delivery-method-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .delivery-method-label {
    display: flex;
    align-items: center;
  }

  .delivery-method-options {
    display: flex;
    gap: 12px;
  }

  .delivery-method-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 8px;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    background: #fafafa;
    transition: all 0.2s ease;

    &.active {
      border-color: #07c160;
      background: rgba(7, 193, 96, 0.05);
    }

    &:active {
      transform: scale(0.97);
    }
  }

  .delivery-method-icon {
    font-size: 24px;
  }
}

// 是否送上楼
.carry-upstairs-section {
  display: flex;
  flex-direction: column;
  padding: 12px 0 0;
  border-top: 1px dashed #eee;
  margin-top: 4px;
}

.carry-upstairs-options {
  display: flex;
  gap: 12px;
}

.carry-upstairs-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #f0f0f0;
  background: #fafafa;
  font-size: 18px;
  color: #666;
  transition: all 0.2s ease;

  &.active {
    border-color: #07c160;
    background: rgba(7, 193, 96, 0.05);
    color: #07c160;
    font-weight: 500;
  }

  &:active {
    transform: scale(0.97);
  }
}

// 楼层选择
.floor-select-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 0;
  border-top: 1px dashed #eee;
  margin-top: 4px;
}

.floor-select-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #f5f5f5;
  font-size: 18px;
  transition: background 0.2s;

  &:active {
    background: #e8e8e8;
  }
}

.floor-fee-tip {
  margin-left: auto;
}

// 楼层选择弹窗
.floor-picker-popup {
  height: 100%;
  display: flex;
  flex-direction: column;

  &__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
  }

  &__content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
  }

  &__footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    background: #fafafa;
  }
}

.floor-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.floor-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  border-radius: 10px;
  border: 2px solid #f0f0f0;
  background: #fff;
  font-size: 14px;
  color: #333;
  transition: all 0.2s ease;

  &.active {
    border-color: #07c160;
    background: rgba(7, 193, 96, 0.08);
    color: #07c160;
    font-weight: 600;
  }

  &:active {
    transform: scale(0.95);
    background: #f5f5f5;
  }
}

// 优惠券弹窗样式
.coupon-popup {
  height: 100%;
  display: flex;
  flex-direction: column;

  &__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
  }

  &__title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
  }

  &__content {
    flex: 1;
    overflow-y: auto;
  }

  &__loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #999;
    font-size: 14px;
  }

  &__current {
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #f0f0f0;

    &-title {
      font-size: 28rpx;
      color: #666;
      margin-bottom: 8px;
    }

    &-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8rpx 12rpx;
      background: #fff;
      border-radius: 6rpx;
      font-size: 28rpx;
    }
  }
}
