.main-title {
  color: #171725;
  font-size: 0.28rem;
  margin-bottom: 0.4rem;
}
.search-box {
  margin-top: -0.62rem;
  margin-bottom: 0.1rem;
  text-align: right;
}
.search-box .el-input {
  width: 3.2rem;
}
.search-box .el-input .el-input__inner {
  height: 46px;
  line-height: 46px;
}
.table-name {
  display: flex;
  align-items: center;
}
.goods-name {
  color: #171725;
  font-weight: bold;
  font-size: 0.16rem;
}
.el-link.el-link--primary {
  margin-left: 0.08rem;
  color: var(--color-primary);
  font-size: 0.14rem;
}
.table-content {
  font-size: 0.14rem;
}
.goods-table {
  margin-top: 0.16rem;
  width: 100%;
  text-align: left;
  border: 1px solid #e6e7eb;
  border-radius: 0.03rem;
  border-collapse: collapse;
}
.goods-table thead {
  line-height: 0.46rem;
  background: #eef4ff;
  height: 0.46rem;
  color: #757575;
}
.goods-table tbody tr td {
  padding-top: 0.29rem;
  padding-bottom: 0.3rem;
}
.description-box {
  width: 5.5rem;
}
.price-box {
  width: 4rem;
}
.total-box {
  min-width: 1.5rem;
}
.num-box {
  width: 2.4rem;
}
.action-box {
  width: 1rem;
}
.delete-btn {
  cursor: pointer;
  font-size: 0.18rem;
  color: var(--color-danger);
}
.cart-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.cart-delete-button:focus-visible,
.cart-price-error button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.cart-load-error {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  border: 1px solid #fecdca;
  border-radius: 8px;
  background: #fffbfa;
  color: #b42318;
  box-sizing: border-box;
}
.cart-load-error i {
  font-size: 28px;
}
.cart-delete-button:disabled {
  cursor: wait;
  opacity: 0.45;
}
.cart-price-error {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--color-danger);
  font-size: 13px;
  font-weight: 500;
}
.cart-price-error button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: #fff;
  color: inherit;
  cursor: pointer;
}
.item-price {
  color: #171725;
}
.item-total {
  font-size: 0.14rem;
  font-weight: bold;
  color: #171725;
}
.original-price {
  text-decoration: line-through;
  color: #999999;
}
.discount-codeNumber {
  font-size: 0.12rem;
  font-weight: bold;
  color: var(--color-discount-num);
}
.remove-discountCode {
  cursor: pointer;
  margin-left: 0.09rem;
}
.shopping-goods {
  margin-bottom: 0.4rem;
}
.goods-box {
  padding-bottom: 1.6rem;
}
.goods-box .discount-code-number {
  padding-top: 0;
  padding-bottom: 0;
}
.el-footer {
  width: calc(100vw - 160px);
  padding-left: 2.1rem;
  padding-right: 1.2rem;
  box-sizing: border-box;
  font-size: 0.18rem;
  box-shadow: 0rem 0rem 0.2rem rgba(0, 0, 0, 0.15);
  height: 1.6rem !important;
  position: fixed;
  bottom: 0;
  background-color: #fff;
  z-index: 9;
}
.footer-box {
  height: 100%;
  margin: 0 auto;
  max-width: 1500px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.no-goods-td {
  display: flex;
  align-items: center;
  width: 4.8rem;
}
.no-goods-tips {
  color: #8692b0;
  font-size: 0.13rem;
  font-weight: 500;
  white-space: nowrap;
}
.buy-again-btn {
  margin-left: 0.1rem;
  background: #e1f0ff;
  height: 0.32rem;
  min-width: 0.6rem;
  border-radius: 0.03rem;
  font-size: 0.14rem;
  font-weight: 400;
  color: var(--color-primary);
}
.footer-left {
  color: #333333;
  font-size: 0.18rem;
}
.footer-right {
  font-size: 0.14rem;
  color: #1e2736;
  display: flex;
  align-items: center;
}
.total-price {
  font-weight: bold;
  font-size: 0.28rem;
  color: var(--color-price-text);
}
.text-red {
  color: var(--color-warning);
}
.goods-info {
  margin-bottom: 0.1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.14rem;
}
.goodsInfo-price {
  color: #1e2736;
}
.goodsInfo-type {
  overflow: hidden;
  text-overflow: ellipsis;
  /* white-space: nowrap; */
  width: 80%;
  color: #1e2736;
}
.goodsInfo-name {
  color: #757575;
}
.buy-btn {
  margin-left: 0.4rem;
  width: 2.04rem;
  height: 0.46rem;
  background: var(--color-primary);
  border-radius: 0.04rem;
  font-size: 0.16rem;
  font-weight: 500;
  color: #ffffff;
}
.delect-btn {
  margin: 0 0.4rem;
}
.mar-left-24 {
  margin-left: 24px;
}
.info-box {
  width: 90%;
}
.all-check .el-checkbox__label {
  color: #333333;
  font-size: 0.18rem;
}
.qty-num {
  color: #4e5259;
  height: 0.13rem;
  margin-top: 0.1rem;
}
.qty-tips {
  margin-top: 0.2rem;
  font-size: 0.13rem;
  color: #3699ff;
}
.red-text {
  color: var(--color-danger);
}
.discount-box {
  margin-top: 0.08rem;
  font-size: 0.14rem;
  font-weight: 400;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.05rem;
  row-gap: 0.05rem;
}
@media screen and (max-width: 750px) {
  .table-content {
    overflow-x: auto;
  }
  .search-box .el-input {
    width: 4.2rem;
  }
  .description-box {
    min-width: 5.5rem;
  }
  .price-box {
    min-width: 4rem;
  }
  .num-box {
    min-width: 2.5rem;
  }
  .action-box {
    min-width: 1.5rem;
  }
  .el-footer {
    padding: 0 0.3rem;
    width: 100%;
  }
  .el-input .el-input__inner {
    font-size: inherit !important;
  }
  .footer-left {
    display: flex;
    flex-direction: column;
    color: #333333;
    font-size: 0.18rem;
  }
  .delect-btn {
    margin: 0;
  }
  .footer-right {
    font-size: 0.14rem;
    color: #1e2736;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .delect-goods {
    color: var(--color-danger);
  }
  .buy-btn {
    margin-left: 0;
    margin-top: 0.2rem;
    width: 2.04rem;
    height: 0.46rem;
    background: var(--color-primary);
    border-radius: 0.04rem;
    font-size: 0.16rem;
    font-weight: 500;
    color: #ffffff;
  }
}

@media screen and (max-width: 750px) {
  .template .el-main {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .template .main-card {
    padding: 14px 12px 100px !important;
    box-sizing: border-box;
  }

  .main-title {
    margin: 0;
    font-size: 20px;
    line-height: 28px;
  }

  .search-box {
    margin: 14px 0 18px;
    text-align: left;
  }

  .search-box .el-input {
    width: 100%;
  }

  .search-box .el-input .el-input__inner {
    height: 42px;
    padding-right: 38px !important;
    font-size: 14px !important;
    line-height: 42px;
  }

  .goods-box {
    padding-bottom: 0;
  }

  .shopping-goods {
    margin-bottom: 12px;
    border: 1px solid #dfe5ed;
    background: #fff;
  }

  .table-name {
    min-height: 44px;
    padding: 10px 12px;
    border-bottom: 1px solid #e8edf3;
    box-sizing: border-box;
  }

  .table-name .el-checkbox {
    min-width: 0;
  }

  .table-name .el-checkbox__label {
    max-width: 170px;
    padding-left: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .goods-name {
    font-size: 15px;
    line-height: 22px;
  }

  .table-name .edit-goods {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 13px;
  }

  .table-content {
    overflow: visible;
    font-size: 14px;
  }

  .goods-table,
  .goods-table tbody,
  .goods-table tr {
    display: block;
    width: 100%;
  }

  .goods-table {
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .goods-table thead {
    display: none;
  }

  .goods-table tbody tr {
    padding: 0 12px 12px;
    box-sizing: border-box;
  }

  .goods-table tbody tr td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 10px 0 !important;
    border-bottom: 1px solid #edf0f4;
    box-sizing: border-box;
    color: #1f2937;
    font-size: 14px;
    line-height: 21px;
    text-align: right;
  }

  .goods-table tbody tr td::before {
    content: attr(data-label);
    flex: 0 0 72px;
    color: #7b8798;
    font-size: 13px;
    font-weight: 500;
    line-height: 21px;
    text-align: left;
  }

  .goods-table tbody tr .description-cell {
    display: block;
    text-align: left;
  }

  .goods-table tbody tr .description-cell::before {
    display: block;
    margin-bottom: 8px;
  }

  .info-box {
    width: 100%;
  }

  .goods-info {
    gap: 10px;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 19px;
  }

  .goods-info:last-child {
    margin-bottom: 0;
  }

  .goodsInfo-type {
    width: auto;
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
  }

  .goodsInfo-price {
    flex: 0 0 auto;
  }

  .quantity-cell {
    align-items: center !important;
    flex-wrap: wrap;
  }

  .quantity-cell .el-input-number {
    width: 118px;
  }

  .quantity-cell .qty-num,
  .quantity-cell .qty-tips {
    width: 100%;
    height: auto;
    margin: 4px 0 0 84px;
    font-size: 12px;
    line-height: 18px;
    text-align: right;
  }

  .item-total {
    flex-wrap: wrap;
    font-size: 14px;
  }

  .item-total .discount-box,
  .item-total .original-price {
    width: calc(100% - 84px);
    margin: 4px 0 0 auto;
    justify-content: flex-end;
    text-align: right;
  }

  .delete-btn {
    align-items: center !important;
    border-bottom: 0 !important;
  }

  .delete-btn .cart-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #f2b8b8;
    color: var(--color-danger);
    font-size: 17px;
  }

  .no-goods-td {
    width: 100%;
    min-width: 0;
  }

  .el-footer {
    left: 0;
    width: 100%;
    height: 78px !important;
    padding: 8px 12px !important;
    box-sizing: border-box;
  }

  .footer-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .footer-left {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
    gap: 2px 8px;
    min-width: 0;
    color: #333;
    font-size: 12px;
    line-height: 18px;
  }

  .footer-left .all-check {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-left > span:last-child {
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
  }

  .footer-left .delect-btn {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
  }

  .all-check .el-checkbox__label,
  .delect-goods {
    font-size: 12px;
  }

  .footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    line-height: 18px;
  }

  .footer-right p {
    white-space: nowrap;
  }

  .total-price {
    font-size: 18px;
  }

  .buy-btn {
    width: 88px;
    height: 40px;
    min-height: 40px !important;
    margin: 0;
    padding: 0 12px !important;
    border-radius: 0;
    font-size: 14px;
  }
}
