html {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
}

body.itoi-cart-body {
  box-sizing: border-box;
  height: auto;
  min-height: 100%;
  padding-top: 2.75rem !important;
  padding-bottom: 3.65rem !important;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f7f7f7;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

body.itoi-cart-body > .page-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  display: block;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 0.0625rem solid #ededed;
  background: #fff;
  box-shadow: none;
}

body.itoi-cart-body > .page-header .header-title {
  position: absolute;
  inset: 0;
  height: 2.75rem;
  margin: 0;
  padding: 0 3.75rem;
  color: #080808;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 2.75rem;
  letter-spacing: 0;
  text-align: center;
  pointer-events: none;
}

body.itoi-cart-body > .page-header #cart_edit {
  position: relative;
  z-index: 10;
  float: right;
  height: 2.75rem;
  padding: 0 1rem;
  color: #222;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 2.75rem;
  cursor: pointer;
  user-select: none;
}

body.itoi-cart-body .itoi-cart-loading {
  position: fixed;
  top: 2.75rem;
  right: 0;
  bottom: 3.65rem;
  left: 0;
  z-index: 35;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.58);
}

body.itoi-cart-body.itoi-cart-updating .itoi-cart-loading {
  display: flex;
}

body.itoi-cart-body .itoi-cart-loading-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 6.2rem;
  height: 2.5rem;
  padding: 0 0.9rem;
  border: 0.0625rem solid #ededed;
  border-radius: 0.25rem;
  background: #fff;
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.1);
  color: #333;
  font-size: 0.8rem;
  line-height: 1;
}

body.itoi-cart-body .itoi-cart-loading-spinner {
  display: block;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border: 0.12rem solid #ffd4c4;
  border-top-color: #ff7139;
  border-radius: 50%;
  animation: itoi-cart-loading-spin 0.72s linear infinite;
}

@keyframes itoi-cart-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

body.itoi-cart-body .cart-nodata-wrapper {
  top: 2.75rem !important;
  bottom: 3.65rem !important;
  z-index: 10;
}

body.itoi-cart-body .cart-page-container {
  min-height: calc(100vh - 6.4rem);
  padding-bottom: 4rem;
}

body.itoi-cart-body #edit_on {
  align-items: center;
  justify-content: flex-end;
  padding: 0 1rem;
}

body.itoi-cart-body #edit_on .action-bar-op-info {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: 0;
}

body.itoi-cart-body #cart_del.itoi-cart-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 6rem;
  height: 2.25rem;
  margin: 0;
  padding: 0 1rem;
  border: 0;
  border-radius: 0.2rem;
  background: linear-gradient(90deg, #ff5a48 0%, #f22f35 100%);
  box-shadow: 0 0.18rem 0.45rem rgba(242, 47, 53, 0.18);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  user-select: none;
}

body.itoi-cart-body #cart_del.itoi-cart-delete:active {
  background: #df252c;
  box-shadow: none;
}

body.itoi-cart-body #cart_del .bbc-icon-remove {
  color: inherit;
  font-size: 1.05rem;
  line-height: 1;
}

body.itoi-cart-body .itoi-item-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

body.itoi-cart-body .itoi-item-price del {
  color: #9b9b9b;
  font-size: 0.7rem;
}

body.itoi-cart-body .cart-page-container .order-goods-list li {
  height: auto;
  overflow: hidden;
}

body.itoi-cart-body .cart-page-container .order-goods-list li .order-goods-price {
  top: 4.55rem;
  bottom: auto;
}

body.itoi-cart-body .cart-page-container .order-goods-list li .order-goods-num-control {
  top: 4.35rem;
  bottom: auto;
}

body.itoi-cart-body .cart-page-container .shop-item-checkbox {
  top: 3.45rem;
  transform: translateY(-50%);
}

body.itoi-cart-body .itoi-item-discount-field {
  display: grid;
  grid-template-columns: auto 5.4rem minmax(0, 1fr);
  align-items: center;
  gap: 0.4rem;
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.2rem 0;
  border-top: 0.0625rem solid #f0ece9;
  color: #64676c;
  font-size: 0.72rem;
  line-height: 1;
}

body.itoi-cart-body .itoi-item-discount-label {
  color: #303238;
  font-weight: 600;
  white-space: nowrap;
}

body.itoi-cart-body .itoi-item-discount-input {
  box-sizing: border-box;
  width: 100%;
  height: 1.9rem;
  margin: 0;
  padding: 0 0.5rem;
  border: 0.0625rem solid #d9d7d5;
  border-radius: 0.22rem;
  background: #fff;
  color: #22252a;
  font-size: 0.76rem;
  line-height: 1.9rem;
  text-align: right;
}

body.itoi-cart-body .itoi-item-discount-input:focus {
  border-color: #ff7139;
  outline: none;
  box-shadow: 0 0 0 0.1rem rgba(255, 113, 57, 0.12);
}

body.itoi-cart-body .itoi-item-discount-range {
  color: #999;
  white-space: nowrap;
}

body.itoi-cart-body .itoi-item-discount-field strong {
  grid-column: 2 / -1;
  color: #e84720;
  font-weight: 600;
  line-height: 1.2;
}

body.itoi-cart-body .itoi-package-discount {
  margin: 0.15rem -0.2rem 0.6rem;
  padding: 0.65rem 0.7rem;
  border-top: 0.0625rem solid #f0ece9;
  border-bottom: 0.0625rem solid #f0ece9;
  border-left: 0.18rem solid #ff7139;
  background: #fffaf7;
}

body.itoi-cart-body .itoi-package-discount-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  color: #303238;
  font-size: 0.78rem;
  line-height: 1rem;
}

body.itoi-cart-body .itoi-package-discount-head strong {
  font-size: 0.82rem;
  font-weight: 700;
}

body.itoi-cart-body .itoi-package-discount-head span {
  color: #e84720;
  font-weight: 600;
}

body.itoi-cart-body .itoi-package-discount-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  height: 2rem;
  overflow: hidden;
  border: 0.0625rem solid #dedbd9;
  border-radius: 0.25rem;
  background: #fff;
}

body.itoi-cart-body .itoi-package-discount-modes label {
  position: relative;
  min-width: 0;
  margin: 0;
}

body.itoi-cart-body .itoi-package-discount-modes label + label {
  border-left: 0.0625rem solid #dedbd9;
}

body.itoi-cart-body .itoi-package-discount-modes input {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  opacity: 0;
}

body.itoi-cart-body .itoi-package-discount-modes span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #666a70;
  font-size: 0.76rem;
  line-height: 1;
}

body.itoi-cart-body .itoi-package-discount-modes input:checked + span {
  background: #ff7139;
  color: #fff;
  font-weight: 600;
}

body.itoi-cart-body .itoi-package-overall-field,
body.itoi-cart-body .itoi-package-item-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin: 0.55rem 0 0;
  color: #64676c;
  font-size: 0.72rem;
  line-height: 1;
}

body.itoi-cart-body .itoi-package-rate-input {
  box-sizing: border-box;
  width: 6.4rem;
  height: 2rem;
  margin: 0;
  padding: 0 0.55rem;
  border: 0.0625rem solid #d9d7d5;
  border-radius: 0.22rem;
  background: #fff;
  color: #22252a;
  font-size: 0.76rem;
  line-height: 2rem;
  text-align: right;
}

body.itoi-cart-body .itoi-package-rate-input:focus {
  border-color: #ff7139;
  outline: none;
  box-shadow: 0 0 0 0.1rem rgba(255, 113, 57, 0.12);
}

body.itoi-cart-body .itoi-package-discount.is-item-mode .itoi-package-overall-field,
body.itoi-cart-body .itoi-package-discount.is-overall-mode ~ .thumbnail .itoi-package-item-field {
  display: none;
}

body.itoi-cart-body .itoi-package-discount.is-item-mode ~ .thumbnail .itoi-package-item-field {
  display: flex;
}

body.itoi-cart-body .itoi-package-cart-item .package-goods-group {
  min-width: 0;
  width: 100%;
}

body.itoi-cart-body .itoi-package-cart-item .package-goods-item {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  height: auto;
  overflow: visible;
}

body.itoi-cart-body .itoi-package-cart-item .package-goods-item .caption,
body.itoi-cart-body .itoi-package-cart-item .package-goods-item .order-goods-info {
  min-width: 0;
}

body.itoi-cart-body .itoi-package-cart-item .package-goods-item .caption {
  display: block;
  flex: 1 1 0;
  width: auto;
}

body.itoi-cart-body .itoi-package-cart-item .package-goods-item .order-goods-info {
  display: block;
  width: 100%;
}

body.itoi-cart-body .package-goods-item .itoi-package-item-field {
  align-self: stretch;
  flex: 0 0 100%;
  justify-content: flex-start;
  min-height: 1.8rem;
  margin-top: 0.15rem;
}

body.itoi-cart-body .package-goods-item .itoi-package-item-field span {
  white-space: nowrap;
}

body.itoi-cart-body .package-goods-item .itoi-package-rate-input {
  width: 5.8rem;
  height: 1.8rem;
  padding: 0 0.42rem;
  line-height: 1.8rem;
}

body.itoi-cart-body .itoi-package-cart-item .package-goods-num-control {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  clear: both;
  width: 100%;
  min-height: 2.65rem;
  margin: 0;
  padding: 0.65rem 0 0;
  border-top: 0.0625rem solid #f0ece9;
}

body.itoi-cart-body .cart-page-container .order-goods-list li .thumbnail .package-goods-item .caption .order-goods-info .order-goods-price {
  position: static !important;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.7rem;
  row-gap: 0.4rem;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100%;
  max-width: none !important;
  padding: 0.5rem 0 0.1rem !important;
  font-size: 0.84rem !important;
  line-height: normal !important;
  text-align: left;
  white-space: normal !important;
}

body.itoi-cart-body .package-goods-item .itoi-package-current-price,
body.itoi-cart-body .package-goods-item .order-goods-price > p:first-child:not(.itoi-package-current-price) {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  min-height: 1.5rem;
  margin: 0;
  line-height: 1.5rem;
}

body.itoi-cart-body .package-goods-item .itoi-package-current-price mark,
body.itoi-cart-body .package-goods-item .order-goods-price > p:first-child:not(.itoi-package-current-price) mark {
  display: inline-block;
  font-size: 1rem;
  line-height: inherit;
  vertical-align: top;
}

body.itoi-cart-body .package-goods-item .itoi-package-original-price,
body.itoi-cart-body .package-goods-item .order-goods-price > p:nth-child(2):not(.itoi-package-original-price) {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22rem;
  min-height: 1.5rem;
  margin: 0;
  color: #92969d;
  line-height: 1.5rem;
}

body.itoi-cart-body .package-goods-item .itoi-package-price-label {
  color: #92969d;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1rem;
  white-space: nowrap;
}

body.itoi-cart-body .package-goods-item .order-goods-price > p:first-child:not(.itoi-package-current-price)::before,
body.itoi-cart-body .package-goods-item .order-goods-price > p:nth-child(2):not(.itoi-package-original-price)::before {
  color: #92969d;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1rem;
  white-space: nowrap;
}

body.itoi-cart-body .package-goods-item .order-goods-price > p:first-child:not(.itoi-package-current-price)::before {
  content: "现价";
}

body.itoi-cart-body .package-goods-item .order-goods-price > p:nth-child(2):not(.itoi-package-original-price)::before {
  content: "原价";
}

body.itoi-cart-body .cart-page-container .order-goods-list li .package-goods-item .original-price {
  display: inline-block;
  margin: 0;
  font-size: 0.68rem;
  line-height: 1rem;
  text-decoration: line-through;
  vertical-align: top;
}

@media screen and (min-width: 48rem) {
  body.itoi-cart-body > .page-header {
    right: auto;
    left: 50%;
    width: 23.5625rem;
    transform: translateX(-50%);
  }

  body.itoi-cart-body .itoi-cart-loading {
    right: auto;
    left: 50%;
    width: 23.5625rem;
    transform: translateX(-50%);
  }
}
