/* packageE/community_solitaire/components/yz_cartList/yz_cartList.wxss */
@import "/mycss/iconfont.wxss";

.yz-cartList-top {
  display: flex;
  padding: 0 0.875rem;
  justify-content: space-between;
  height: 3.25rem;
  line-height: 3.25rem;
}

.yz-cartList-top .text {
  font-size: 0.875rem;
  color: #333;
}

.yz-cartList-main {
  flex: 1;
  overflow-y: scroll;
  padding: 0 0.875rem;
}

.yz-cartList-list {
  border-top: 1px solid #f2f2f2;
  display: flex;
  justify-content: space-between;
  padding: 0.875rem 0;
}

.yz-cartList-list .g-img {
  width: 4.125rem;
  height: 4.125rem;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0;
  margin-right: 0.5rem;
}

.yz-cartList-list .g-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  text-align: left;
}

.yz-cartList-list .g-info .g-title {
  width: 100%;
  font-size: 0.875rem;
  font-weight: bold;
  overflow: hidden;

  /* 超出部分隐藏 */
  text-overflow: ellipsis;

  /* 超出部分显示省略号 */
  white-space: nowrap;

  /* 规定段落中的文本不进行换行 */
  padding-bottom: 0.5rem;
}

.yz-cartList-list .g-info .g-option {
  font-size: 0.75rem;
  color: #999;
  padding-bottom: 0.5rem;
}

.yz-cartList-list .g-info .g-price {
  font-size: 1.125rem;
  color: #f14e4e;
  font-weight: bold;
}

.yz-cartList-list .g-info .g-price .em {
  font-size: 0.75rem;
}

.yz-cartList-list .add-cart-btn {
  display: flex;
  flex-shrink: 0;
}

.yz-cartList-list .add-cart-btn .iconfont {
  background: #f14e4e;
  color: #fff;
  width: 1.25rem;
  height: 1.25rem;
  text-align: center;
  line-height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
