/* ITOI cart page, scaled to the 1200px effective design area. */
.itoi-cart-main {
  padding-bottom: 0 !important;
}

.itoi-cart-page {
  width: 1200px;
  max-width: 1200px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 38px 0 0;
  color: #20242c;
  letter-spacing: 0;
}

.itoi-cart-page #cart_main,
.itoi-cart-page .cart,
.itoi-cart-page .cart-submit-form {
  width: 100%;
}

.itoi-cart-page #cart_main {
  position: relative;
  margin: 0;
}

.itoi-cart-page #cart_main::after {
  position: absolute;
  z-index: 170;
  inset: 0;
  display: none;
  background: rgba(255, 255, 255, .36);
  content: "";
}

.itoi-cart-page.is-calculating #cart_main::after {
  display: block;
}

.itoi-cart-loading {
  position: fixed;
  z-index: 220;
  top: 50%;
  left: 50%;
  display: none;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid #eceef1;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 34, 42, .14);
  color: #4d535c;
  font-size: 13px;
  transform: translate(-50%, -50%);
}

.itoi-cart-page.is-calculating .itoi-cart-loading {
  display: flex;
}

.itoi-cart-loading-spinner {
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 2px solid #ffd1c1;
  border-top-color: #ff713f;
  border-radius: 50%;
  animation: itoi-cart-loading-spin .72s linear infinite;
}

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

.itoi-cart-page .cart .cart-table {
  margin: 0;
}

.itoi-cart-page .cart-hd {
  height: 58px;
  border: 0;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.itoi-cart-page .cart-hd .cart-row {
  display: grid;
  grid-template-columns: 466px 150px 145px 145px 145px 149px;
  align-items: center;
  box-sizing: border-box;
  height: 58px;
  padding: 0;
  border: 0;
  color: #60656e;
  font-size: 13px;
  line-height: 58px;
}

.itoi-cart-page .cart-table .cart-col {
  float: none;
  width: auto;
  min-width: 0;
}

.itoi-cart-page .cart-hd .col-select-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 58px;
}

.itoi-cart-page .cart-hd .col-spec {
  transform: translateX(-24px);
}

.itoi-cart-page .cart-hd .col-unit-price,
.itoi-cart-page .cart-hd .col-quantity,
.itoi-cart-page .cart-hd .col-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  text-align: center;
}

.itoi-cart-page .cart-hd .col-operation {
  box-sizing: border-box;
  padding-left: 55px;
  text-align: left;
}

.itoi-cart-page .cart-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.itoi-cart-page .cart-header-action {
  min-width: 42px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #d9dce1;
  border-radius: 14px;
  background: #fff;
  color: #333842;
  font-size: 12px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
}

.itoi-cart-page .cart-header-action:hover {
  border-color: #ff6b3b;
  color: #ff6b3b;
}

.itoi-cart-page .cart-table input[type="checkbox"] {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 1px solid #d6d9de;
  border-radius: 1px;
  outline: 0;
  background: #fff;
  vertical-align: -3px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.itoi-cart-page .cart-table input[type="checkbox"]:hover {
  border-color: #ff754b;
}

.itoi-cart-page .cart-table input[type="checkbox"]:checked {
  border-color: #ff713f;
  background: #ff713f;
}

.itoi-cart-page .cart-table input[type="checkbox"]:checked::after {
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.itoi-cart-page .cart-table input[type="checkbox"]:indeterminate {
  border-color: #ff713f;
  background: #ff713f;
}

.itoi-cart-page .cart-table input[type="checkbox"]:indeterminate::after {
  position: absolute;
  top: 6px;
  left: 3px;
  width: 8px;
  height: 2px;
  background: #fff;
  content: "";
}

.itoi-cart-page .cart-table input[type="checkbox"]:disabled {
  border-color: #e3e5e8;
  background: #f2f3f5;
  cursor: not-allowed;
}

.itoi-cart-page .cart-table input[type="checkbox"]:disabled:checked {
  border-color: #ffb49b;
  background: #ffb49b;
}

.itoi-cart-page .cart-table > .item-table {
  width: 100%;
  margin: 0;
  table-layout: fixed;
  border: 0;
  border-collapse: collapse;
}

.itoi-cart-page .cart-table .item-table .table-col-1 { width: 34px; }
.itoi-cart-page .cart-table .item-table .table-col-2 { width: 132px; }
.itoi-cart-page .cart-table .item-table .table-col-3 { width: 300px; }
.itoi-cart-page .cart-table .item-table .table-col-4 { width: 150px; }
.itoi-cart-page .cart-table .item-table .table-col-5,
.itoi-cart-page .cart-table .item-table .table-col-6,
.itoi-cart-page .cart-table .item-table .table-col-7 { width: 145px; }
.itoi-cart-page .cart-table .item-table .table-col-8 { width: 149px; }

.itoi-cart-page .cart-table .item-table thead {
  display: none;
}

.itoi-cart-page .cart-table .item-table tbody {
  border: 0;
  background: #fff;
}

.itoi-cart-page .cart-table .item-table tbody tr {
  height: 154px;
  border: 0;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.itoi-cart-page .cart-table .item-table tbody tr.tr-checked,
.itoi-cart-page .cart-table .item-table tbody tr.discount-area {
  background: #fff;
}

.itoi-cart-page .cart-table .item-table tbody tr.discount-area:not([data-cart-id]),
.itoi-cart-page .cart-table .item-table tbody tr.gift-tr {
  height: auto;
}

.itoi-cart-page .cart-table .item-table tbody td {
  box-sizing: border-box;
  padding: 20px 0;
  vertical-align: middle;
  color: #20242c;
  font-size: 13px;
}

.itoi-cart-page .table-goods-pic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  overflow: hidden;
  background: #f5f5f5;
}

.itoi-cart-page .table-goods-pic img {
  width: 112px !important;
  height: 112px !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.itoi-cart-page .cart-table .item-table tr > td:nth-child(3) {
  padding-right: 24px;
  vertical-align: middle;
}

.itoi-cart-page .cart-table .item-table a.cart-goods-name {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #15191f;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.itoi-cart-page .cart-goods-subtitle {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: #9a9ea6;
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.itoi-cart-page .cart-spec {
  padding-right: 18px !important;
  color: #60656e !important;
  vertical-align: middle !important;
}

.itoi-cart-page .cart-spec-line {
  display: block;
  overflow: hidden;
  font-size: 13px;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.itoi-cart-page .cart-table .item-table td.text-center {
  color: #20242c;
  text-align: center;
}

.itoi-cart-page .cart-table .item-table td:nth-child(5),
.itoi-cart-page .cart-table .item-table td:nth-child(7) {
  font-size: 14px;
}

.itoi-cart-page .cart-table .item-table .goods-discount {
  display: block;
  width: auto;
  max-width: 112px;
  height: 24px;
  margin: 5px auto 0;
  padding: 0 7px;
  border: 1px solid #ff754b;
  border-radius: 12px;
  background: #fff;
  color: #ff6334;
  font-size: 12px;
}

.itoi-cart-page .cart .number-increase-decrease {
  display: inline-flex;
  align-items: center;
  height: 28px;
  overflow: hidden;
  border: 1px solid #e0e2e5;
  border-radius: 15px;
  background: #fff;
}

.itoi-cart-page .cart .number .btn,
.itoi-cart-page .cart .number .cart-num {
  float: none;
  box-sizing: border-box;
  height: 26px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #30343b;
  line-height: 26px;
  text-align: center;
}

.itoi-cart-page .cart .number .btn {
  width: 28px;
  padding: 0;
  background: #f7f7f7;
  font-size: 15px;
}

.itoi-cart-page .cart .number .cart-num {
  width: 42px;
  font-size: 13px;
}

.itoi-cart-page .cart .number .btn.disabled {
  color: #c9ccd1;
  cursor: not-allowed;
}

.itoi-cart-page .cart-table .item-table .col-operate {
  padding-left: 55px;
  text-align: left;
}

.itoi-cart-page .cart-table .item-table .col-operate div + div {
  margin-top: 8px;
}

.itoi-cart-page .cart-table .item-table .col-operate a,
.itoi-cart-page .cart-table .item-table .delete-item {
  color: #555b65;
  font-size: 12px;
  line-height: 20px;
}

.itoi-cart-page .cart-table .item-table .col-operate a:hover,
.itoi-cart-page .cart-table .item-table .delete-item:hover {
  color: #ff6334;
}

.itoi-cart-page .cart-table .is-disabled {
  opacity: .48;
}

.itoi-cart-page .discount-area td,
.itoi-cart-page .gift-tr td {
  background: #fff;
}

.itoi-cart-page .gift-tr td {
  height: auto !important;
  min-height: 48px;
  padding: 12px 34px !important;
}

/* Selection tray follows the cart and sits directly above the page footer. */
.itoi-cart-page .cart .cart-table-ft {
  position: relative;
  z-index: 1;
  width: var(--itoi-cart-full-width, 100%);
  margin: 72px 0 0 var(--itoi-cart-full-offset, 0);
  padding: 0;
  border: 0;
  background: #fff;
  box-shadow: 0 -5px 18px rgba(28, 34, 42, .09);
}

.itoi-cart-page .cart .cart-table-ft .cart-table-btm {
  height: auto;
  border: 0;
  background: #fff;
}

.itoi-cart-selection-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 1200px;
  min-height: 80px;
  margin: 0 auto;
  padding: 10px 50px 10px 0;
}

.itoi-cart-selection-gallery {
  display: flex;
  align-items: center;
  width: 470px;
  min-width: 0;
}

.itoi-cart-selected-label {
  flex: 0 0 auto;
  margin-right: 12px;
  color: #41464f;
  font-size: 12px;
  white-space: nowrap;
}

.itoi-cart-selected-label .itoi-selected-count {
  margin: 0 2px;
  font-weight: 600;
}

.itoi-cart-selected-detail {
  display: none;
}

.itoi-cart-selected-thumbs {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  width: auto;
  max-width: 274px;
  max-height: 50px;
  overflow: hidden;
}

.itoi-cart-selected-thumb {
  display: flex;
  flex: 0 0 50px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border: 1px solid #ececec;
  background: #f6f6f6;
}

.itoi-cart-selected-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.itoi-cart-selected-thumb.is-missing {
  background: #f7f7f7;
}

.itoi-cart-gallery-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.itoi-cart-toggle-arrow {
  width: 0;
  height: 0;
  border-right: 5px solid transparent;
  border-bottom: 7px solid #111820;
  border-left: 5px solid transparent;
}

.itoi-cart-gallery-toggle[disabled] {
  visibility: hidden;
}

.itoi-cart-page .cart .cart-table-ft .cart-col-right {
  display: flex;
  float: none;
  align-items: center;
  justify-content: flex-end;
  width: 650px;
  padding: 0;
}

.itoi-cart-total-summary {
  width: 470px;
  min-width: 470px;
  margin-right: 24px;
  text-align: right;
}

.itoi-cart-total-main {
  color: #424750;
  font-size: 13px;
  line-height: 24px;
  white-space: nowrap;
}

.itoi-cart-total-main .itoi-selected-count {
  margin: 0 2px;
  font-weight: 600;
}

.itoi-cart-total-main strong {
  margin-left: 6px;
  color: #ff6334;
  font-size: 22px;
  font-weight: 600;
}

.itoi-cart-total-sub {
  color: #9a9ea5;
  font-size: 11px;
  line-height: 18px;
}

.itoi-cart-page .cart .cart-table-ft button[type="submit"] {
  position: static;
  top: auto;
  right: auto;
  flex: 0 0 142px;
  width: 142px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ff4a43;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.itoi-cart-page .cart .cart-table-ft button[type="submit"] > span,
.itoi-cart-page .cart .cart-table-ft button[type="submit"] > span > span {
  display: block;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  line-height: 48px;
}

.itoi-cart-page .cart .cart-table-ft button[type="submit"] b {
  font-weight: 400;
}

.itoi-cart-page .cart .cart-table-ft button[type="submit"]:hover {
  background: #ed3732;
}

.itoi-cart-page .cart .cart-table-ft button[type="submit"].btn-disabled,
.itoi-cart-page .cart .cart-table-ft button[type="submit"].btn-disabled:hover {
  background: #aaa;
  cursor: not-allowed;
}

.itoi-cart-page .cart .cart-table-ft button[type="submit"].btn-disabled > span {
  background: transparent;
}

.itoi-cart-page .cart .cart-table-ft.is-expanded .itoi-cart-selection-inner {
  display: block;
  min-height: 0;
  padding: 18px 0 76px;
}

.itoi-cart-page .cart .cart-table-ft.is-expanded .itoi-cart-selection-gallery {
  display: block;
  width: 1200px;
}

.itoi-cart-page .cart .cart-table-ft.is-expanded .itoi-cart-selected-label {
  display: block;
  margin: 0 0 10px;
  font-weight: 600;
}

.itoi-cart-page .cart .cart-table-ft.is-expanded .itoi-cart-selected-detail {
  display: inline;
}

.itoi-cart-page .cart .cart-table-ft.is-expanded .itoi-cart-selected-thumbs {
  display: grid;
  grid-template-columns: repeat(15, 70px);
  justify-content: space-between;
  column-gap: 0;
  row-gap: 7px;
  width: 1200px;
  max-width: 1200px;
  max-height: none;
  overflow: visible;
}

.itoi-cart-page .cart .cart-table-ft.is-expanded .itoi-cart-selected-thumb {
  flex-basis: 70px;
  width: 70px;
  height: 70px;
}

.itoi-cart-page .cart .cart-table-ft.is-expanded .itoi-cart-selected-thumb img {
  object-fit: cover;
}

.itoi-cart-page .cart .cart-table-ft.is-expanded .itoi-cart-gallery-toggle {
  position: absolute;
  left: 0;
  bottom: 23px;
  width: auto;
  height: 24px;
  margin: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none;
}

.itoi-cart-page .cart .cart-table-ft.is-expanded .itoi-cart-gallery-toggle::before {
  margin-right: 7px;
  color: #4e535b;
  content: "收起";
  font-size: 12px;
}

.itoi-cart-page .cart .cart-table-ft.is-expanded .itoi-cart-toggle-arrow {
  transform: rotate(180deg);
}

.itoi-cart-page .cart .cart-table-ft.is-expanded .cart-col-right {
  position: absolute;
  right: 50px;
  bottom: 14px;
}

.itoi-cart-page .empty-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 1200px;
  min-height: 790px;
  border: 0;
  background: #fff;
}

.itoi-cart-page .itoi-empty-cart-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-72px);
}

.itoi-cart-page .itoi-empty-cart-image {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.itoi-cart-page .empty-cart .empty-cart-text {
  margin: 24px 0 0;
  color: #6f747b;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.itoi-cart-page .itoi-empty-cart-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 52px;
}

.itoi-cart-page .itoi-empty-cart-button {
  box-sizing: border-box;
  width: 148px;
  height: 42px;
  border: 1px solid #ff6a43;
  font-size: 14px;
  font-weight: 600;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
}

.itoi-cart-page .itoi-empty-cart-button.is-primary,
.itoi-cart-page .itoi-empty-cart-button.is-primary:hover {
  border-color: #ff3f3a;
  background: #ff3f3a;
  color: #fff;
}

.itoi-cart-page .itoi-empty-cart-button.is-secondary,
.itoi-cart-page .itoi-empty-cart-button.is-secondary:hover {
  background: #fff8f3;
  color: #ff653b;
}

@media (max-width: 1220px) {
  .itoi-cart-page,
  .itoi-cart-selection-inner {
    min-width: 1120px;
  }
}
