.CartItem li {
  overflow: hidden;
  transition: .5s ease-out;
}

.CartItem:focus {
  outline: 0;
}

.CartItem:focus > li {
  transform: translateX(-139.99px);
}

/* Name / qty / price follow the menu-list product-name settings
   (online_font_name_*), so the cart reads as the same list the customer
   just picked from. Defaults intentionally move 13px -> 15px. */
.CartItem .name {
  display: block !important;
  white-space: pre-wrap;
  font-family: var(--tmo-online-font-name-family, inherit);
  font-size: var(--tmo-online-font-name-size, 15px);
  font-weight: var(--tmo-online-font-name-weight, 700);
  letter-spacing: var(--tmo-online-font-name-spacing, inherit);
  line-height: var(--tmo-online-font-name-line, 16px);
  padding: 0px 20px 0px 0px;
}
/* The modifier line ("Medium" etc.) is part of the product identity, so it
   wears the product-name settings whole, like the name above it. `> .body`
   lifts the specificity over `.CartItem > .body p`, whose line-height:15px
   would otherwise win. Defaults intentionally move 13px -> 15px. */
.CartItem > .body .description {
  display: block !important;
  white-space: pre-wrap;
  font-family: var(--tmo-online-font-name-family, inherit);
  font-size: var(--tmo-online-font-name-size, 15px);
  font-weight: var(--tmo-online-font-name-weight, 700);
  letter-spacing: var(--tmo-online-font-name-spacing, inherit);
  line-height: var(--tmo-online-font-name-line, 16px);
}
.CartItem .qty-en,
.CartItem .qty-ja {
  /* display: block !important; */
  white-space: pre-wrap;
  font-family: var(--tmo-online-font-name-family, inherit);
  font-size: var(--tmo-online-font-name-size, 15px);
  font-weight: var(--tmo-online-font-name-weight, 700);
  letter-spacing: var(--tmo-online-font-name-spacing, inherit);
  line-height: var(--tmo-online-font-name-line, 16px);
  text-align: left;
}
.CartItem .price {
  display: block !important;
  white-space: pre-wrap;
  font-family: var(--tmo-online-font-name-family, inherit);
  font-size: var(--tmo-online-font-name-size, 15px);
  font-weight: var(--tmo-online-font-name-weight, 700);
  letter-spacing: var(--tmo-online-font-name-spacing, inherit);
  line-height: var(--tmo-online-font-name-line, 16px);
  text-align: left;
}
.CartItem .discount {
  position: absolute;
  right: 20px;
  bottom: 5px;
}



.CartItem .ingredientChanges {
  display: block !important;
  white-space: pre-wrap;
}

.CartItem.premade:focus li {
  transform: translateX(-70px);
  transform: translateX(-70px);
}

.CartItem .priceLabel {
  font-size: 0.85em;
  color: #7D7769;
  padding-right: 4px;
  font-size: 14px;
  font-family: var(--tmo-online-font-name-family, inherit);
  font-weight: var(--tmo-online-font-name-weight, 700);
}

/* .CartItem:focus .edit, .CartItem:focus .remove, .CartItem.premade:focus .remove {
  transform: translateX(0);
} */
.CartItem:focus .control-wrapper, .CartItem.premade:focus .control-wrapper {
  transform: translateX(0);
}
/* .CartItem .edit, .CartItem .remove {
  display: block;
  width: 70px;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  transform: translateX(140px);
} */
.CartItem .control-wrapper {
  display: block;
  width: 115px;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  transform: translateX(115px);
}
/* .CartItem.premade .remove {
  transform: translateX(70px);
} */
.CartItem .edit button, .CartItem .remove button {
  /* height: 100%; */
  height: 50%;
  width: 100%;
  position: relative;
  padding: 0;
}
.CartItem .edit button img, .CartItem .remove button img {
  position: absolute;
  top: 0;
  left: 0;
  right: 1px;
  width: 69px;
}
/* .CartItem .edit {
  right: 70px;
  border-right: 1px solid #F2EDE9;
  background-color: #8FB291;
  z-index: 1000
} */
.CartItem .control-wrapper {
  /* right: 70px; */
  border-right: 1px solid #F2EDE9;
  background-color: #8FB291;
  z-index: 1000
}
.CartItem .edit {
  position: relative;
  display: flex;
  justify-content: center;
  height: 50%;
  /* background-color: #a59ee3; */
  line-height: 48px;
  z-index: 1000;
}
.CartItem .remove {
  position: relative;
  display: flex;
  justify-content: center;
  height: 50%;
  /* background-color: #E39E9F; */
  line-height: 48px;
  z-index: 1000
}
.CartItem img {
  width: 95px;
  height: 95px;
  object-fit: cover;
}

.CartItem > li:first-child {
  width: 95px;
  display: block;
  position: relative;
  background-color: #f9f9f9;
}
.CartItem > .body {
  /* padding-left: 10px;
  padding-bottom: 23px; */
  padding: 5px 10px;

}
.CartItem li h5 {
  font-size: 1em;
  margin-bottom: 0;
  line-height: 1.6em;
  margin-top: 8px;
  padding-right: 26px;
  font-weight: var(--tmo-online-font-system-body-weight, 600);
}
.CartItem .body {
  width: calc(100% - 95px);
  position: relative;
}
.CartItem .EditIcon {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 1em;
  /* The icon is an inline SVG with its own fill/stroke (Application.js), so this
     only matters if it is ever swapped back to a font icon. Keep it in sync. */
  color: #b7b7b7;
}
.CartItem p {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.CartItem > .body p {
  /* font-size: 0.8em; */
  /* font-style: italic; */
  margin: 0;
  padding-right: 2px;
  line-height: 15px;
  display: inline-block;
  /* Space reserved for the absolutely positioned .footer (qty + price, two
     lines + its 5px bottom offset). Derived from the name line box so a larger
     product-name setting cannot make the footer overlap this description.
     16px * 2 + 6px = the 38px this used to hardcode. */
  margin-bottom: calc(var(--tmo-online-font-name-line, 16px) * 2 + 6px);
}
.CartItem .details {
  /* position: absolute;
  bottom: 0px;
  left: 10px;
  right: 10px; */
}
.CartItem .footer {
  overflow: hidden;
  transition: .5s ease-out;
  position: absolute;
  padding-right: 2px;
  left: 10px;
  bottom: 5px;
}

.CartItem .edit .details, .CartItem .remove .details {
  /* position: absolute;
  width: 69px;
  bottom: 0px;
  left: 50%;
  transform: translate(-50%, 0); */
  text-align: center;
  /* Size stays fixed: the swipe panel is 115px wide with a 50%-height,
     overflow-hidden row, so it cannot absorb a larger product-name setting.
     Only the weight follows the product name. */
  font-size: 15px;
  font-weight: var(--tmo-online-font-name-weight, 700);
  align-self: center;
  text-align: left;
}

.CartItem .modify-icon {
  margin: -3px 10px 0px 0px;
  align-self: center;
  /* position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); */
}

.CartItem .details > p:nth-child(1) {
  max-width: 50%;
  margin-right: 10px;
}
.cart-order-price {
  padding: 21px 24px 0px 24px;
}

/*--- Mobile Landscape & Portrait ---*/
@media (max-width: 767px) {
  .cart .CartItem button {
    width: 70px;
  }
}


.CartItem .discount-wrapper {
  display: inline-block !important;
  padding: 2px 10px 2px 10px;    
  margin: 4px 10px 4px 10px !important;
  font-family: var(--tmo-online-font-system-small-family, inherit);
  font-weight: var(--tmo-online-font-system-small-weight, inherit);
  font-size: 12px !important;
  line-height: 15px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  outline: none;
  color: #fff;
  background-color: #577bfd;
  border: none;
  border-radius: 15px;
}

.ActionButton {
  width: 100%;
  bottom: 0px;
  /* position: absolute; */
}
.ActionButtonRelative {
  width: 100%;
  bottom: 0px;
  /* position: absolute; */
}