Goods.wxss 3.97 KB
/* components/Goods/Goods.wxss */
/* @import '../Coupon/Coupon.wxss'; */
.coupon-box {
  /* width: calc(100% + var(--fontSize64)); */
  height: 100%;
  /* margin-left: -var(--fontSize32); */
}

.coupon {
  height: calc(100% - var(--fontSize104));
}

.box {
  border-bottom: var(--fontSize2) solid #EBEDF0;
  padding-left: var(--fontSize72);
}

.title {
  padding: var(--fontSize18) 0 0 var(--fontSize32);
  font-size: var(--fontSize32);
  color: #333333;
  height: var(--fontSize88);
  box-sizing: border-box;
}

.text-center {
  text-align: center;
}

.item {
  box-sizing: border-box;
  padding: var(--fontSize23) 0;
  border-top: var(--fontSize2) solid #EBEDF0;
  /* height: 84rpx; */
  display: flex;
  /* align-items: center; */
  align-items: start;
  font-size: var(--fontSize28);
  color: #888888;
  position: relative;
}

.item.disabled {
  color: #ccc;
}

.text-hide {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.serveName {
  width: 100%;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.item .icon {
  display: none;
  width: var(--fontSize32);
  height: var(--fontSize32);
  position: absolute;
  top: var(--fontSize28);
  left: calc(var(--fontSize52) * -1);
  /* transform: translateY(-50%); */
}

.item.active {
  color: #347BFF;
}

.item.active .icon {
  display: block;
}

.nothing {
  padding: var(--fontSize100);
  text-align: center;
  color: #999;
}

.item {
  justify-content: space-between;
  padding-right: var(--fontSize32);
}

.title .tips {
  font-size: var(--fontSize24);
  color: #999999;
}

.item .value {
  /* width: calc(100% - var(--fontSize180)); */
  width: 100%;
  display: flex;
  /* flex-direction: ; */
  justify-content: space-between;
}

.item .labelWidth {
  width: calc(100% - var(--fontSize180));
  /* display: flex; */
}

.item .value .name {
  max-width: 85%;
}

.item .value .name .warning_text {
  color: #F24724;
  margin-left: var(--fontSize10);
  font-size: var(--fontSize22);
}

.item .value .textWidth {
  max-width: 100%;
}

.item .value .last {
  max-width: 40%;
}

.item .value .price {
  /* color: #347BFF; */
  font-weight: 500;
  font-size: var(--fontSize28);
  color: #EB4E4E;
}

.item .control {
  display: flex;
  align-items: center;
}

.item .control .minus,
.item .control .add {
  width: var(--fontSize44);
  height: var(--fontSize44);
  color: #347BFF;
  background: #F7F7F7;
  border-radius: var(--fontSize6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fontSize32);
  font-weight: 700;
}

.item .control .input {
  width: var(--fontSize72);
  height: var(--fontSize40);
  text-align: center;
  font-size: var(--fontSize28);
  color: #333333;
  margin: 0 var(--fontSize5);
}

.disableSelect {
  opacity: 0.4;
}

.item .icon {
  display: block;
}

.item .icon .arc {
  width: 100%;
  height: 100%;
  border: var(--fontSize2) solid #979797;
  border-radius: 100%;
  box-sizing: border-box;
}

.nothing {
  padding: var(--fontSize100);
  text-align: center;
  color: #999;
}

.childbox {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.childbox .item {
  border-top: none;
  padding-top: 0;
  padding-right: 0;
}

.goodsChild {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

.goodsItem {
  box-sizing: border-box;
  padding: var(--fontSize24) var(--fontSize24) var(--fontSize24) var(--fontSize48);
  /* width: 558rpx; */
  width: 100%;
  /* height: 208rpx; */
  background: #F7F7F7;
  border-radius: var(--fontSize4);
  display: flex;
  flex-wrap: wrap;
  /* flex-direction: column; */
  justify-content: space-between;
  align-items: center;

}

.goodsItem .goodsListName {
  position: relative;
  max-width: 60%;
  word-wrap: break-word;
}

.goodsItem .goodsListName::before {
  content: '';
  position: absolute;
  left: calc(var(--fontSize24) * -1);
  top: 50%;
  transform: translate(0, -50%);
  border-radius: var(--fontSize6);
  width: var(--fontSize12);
  height: var(--fontSize12);
  background: #347BFF;
}


.isPad .item{
  font-size: var(--fontSize22);
}