@import "../../../style/common.wxss";

page {
  font-size: 24rpx;
}
._inline {
  display: inline;
}
.dish-cart-outer {
  --height: 108rpx;
  position: fixed;
  bottom: 36rpx;
  left: 36rpx;
  z-index: 9999;
  width: calc(100vw - 72rpx);
}
.dish-reduction {
  position: relative;
  height: 50rpx;
  line-height: 50rpx;
  text-align: center;
  font-size: 24rpx;
  font-weight: 400;
  // color: #f03812;
  background: #ffd9ba;
  z-index: 18;

  justify-content: center;

  .price-text {
    color: #f03812;
  }
}
.dish-reduction-mask {
  &::after {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffd9ba;
    transform: translateY(100%);
  }
}
.cart-box {
  position: relative;
  height: var(--height);
  width: 100%;
  z-index: 101;
}
.cart-script {
  transform: translateY(-100%);
}
.cart-icon {
  position: relative;
  width: 140rpx;
  height: 100%;
  padding: 0 30rpx;
  background-color: #3c3c3c;
  border-radius: 54rpx 0 0 54rpx;
}
.cart-icon-image {
  position: absolute;
  bottom: 0;
  left: 30rpx;
  width: 100rpx;
  height: 132rpx;
}
.cart-total-info {
  flex: 1;
  background-color: #3c3c3c;
}
.price {
  font-size: 32rpx;
  font-weight: bold;
  color: #fff;
  line-height: 32rpx;
  margin-top: 20rpx;
  .price-icon {
    width: 14rpx;
    height: 36rpx;
    font-size: 22rpx;
    font-weight: 400;
    color: #ffffff;
  }
}
.mark {
  font-size: 20rpx;
  font-weight: 400;
  color: #bbb;
  line-height: 20rpx;
  margin-top: 9rpx;
}
.cart-btn {
  width: 196rpx;
  height: 100%;
  line-height: var(--height);
  text-align: center;
  background: #3694ec;
  font-size: 30rpx;
  color: #ffffff;
  text-shadow: 0px 3px 8px #3694ec;
  flex: none;
  border-radius: 0 54rpx 54rpx 0;
}
.cart-btn-disabled {
  font-size: 26rpx;
  text-shadow: none;
}
/* 购物车详情 */
.cart-header {
  font-size: 28rpx;
  padding: 30rpx;
  justify-content: space-between;
  line-height: 28rpx;
}
.cart-header-title {
  color: #3c3c3c;
  line-height: 52rpx;
}
.clear-box {
  flex: none;
}
.clear-img {
  width: 52rpx;
  height: 52rpx;
  vertical-align: top;
  margin-right: 15rpx;
}
.clear-text {
  color: #52acff;
  line-height: 52rpx;
}
.cart-detail-box {
  padding: 30rpx;
}
.cart-dish-display-list {
  max-height: 40vh;
}
/* 菜品 */
.cart-dish-item {
  margin-bottom: 30rpx;
  justify-content: space-between;
  align-items: baseline;
  .price-box {
    align-self: flex-end;
    margin-bottom: 0;
    min-width: 150rpx;
  }
}
.cart-dish-img {
  width: 105rpx;
  height: 100rpx;
  border-radius: 12rpx;
  margin-right: 30rpx;
}
.info-box {
  width: 20rpx;
  flex: 1;
  margin-right: 24rpx;
}
.label-box {
  display: inline-block;
  width: 28rpx;
  height: 28rpx;
  font-size: 20rpx;
  line-height: 28rpx;
  text-align: center;
  color: #ffffff;
  background-color: #ff6622;
  border-radius: 5rpx;
  margin-right: 3rpx;
}
.cart-dish-name {
  width: 100%;
  font-size: 28rpx;
  color: #3c3c3c;
  line-height: 28rpx;
}
.cart-dish-remark {
  font-size: 20rpx;
  font-weight: 400;
  color: #999999;
  line-height: 20rpx;
  margin-top: 10rpx;
}
.cart-dish-sku-num {
  font-weight: 400;
  color: #999999;
  line-height: 24rpx;
  margin-top: 18rpx;
}
.reduce,
.add {
  width: 40rpx;
  height: 40rpx;
  vertical-align: middle;
}
.add {
  background-color: #3694ec;
  border-radius: 7rpx;
}
.buy-number {
  display: inline-block;
  font-size: 32rpx;
  color: #999;
  line-height: 48rpx;
  vertical-align: middle;
  min-width: 1.5em;
  text-align: center;
}
/* 价格展示 */
.price-box {
  margin-bottom: 16rpx;
}
.discounted-price {
  color: #f03812;
}
.discounted-number {
  font-size: 36rpx;
}
.raw-price {
  text-decoration: line-through;
  margin-left: 12rpx;
  color: #999;
  font-size: 22rpx;
}
.total-preferential {
  text-decoration: none;
  color: #fc3b41;
}
/* 附加信息 */
.cart-extra-info-box {
  font-size: 28rpx;
  & > text {
    width: 135rpx;
    margin-bottom: 40rpx;
  }
}
/* 用于撑起详情弹窗 */
.prop-up-box {
  height: 108rpx;
}
.cart-dish-item-left{
  display: flex;
  min-width: 400rpx;
}
