.cart-fixed-checkout {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}
.cart-fixed-checkout.cart-empty {
  display: none;
}
.cart-fixed-checkout__container {
  background-color: rgb(var(--color-page-background));
  box-shadow: 0px -4px 20px 0px rgba(var(--color-text), 0.05);
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 1;
  transform: translateY(0);
}
.cart-fixed-checkout__dropdown-button {
  text-align: center;
  opacity: 1;
  max-height: 50px;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}
.cart-fixed-checkout__amount {
  margin: 0;
  padding: 0;
}
.cart-fixed-checkout__amount li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgb(var(--color-text));
  margin-bottom: 8px;
}
.cart-fixed-checkout__amount li em {
  font-style: normal;
  margin-right: 12px;
}
.cart-fixed-checkout__amount li.cart__discount span {
  color: rgb(var(--color-discount));
}
.cart-fixed-checkout__prices {
  padding: 0 12px 12px;
  max-height: 200px;
  opacity: 1;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  overflow: hidden;
  overflow-y: auto;
}
.cart-fixed-checkout__desc {
  font-size: 12px;
  color: rgb(var(--color-light-text));
}
.cart-fixed-checkout .cart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.cart-fixed-checkout__buttons {
  margin-top: 10px;
}

.cart-fixed-checkout__buttons #checkout {
  width: 100%;
}

.cart-drawer__link-to-cart {
  display: block;
  text-align: center;
  margin-top: 12px;
}

/* base.css resets every anchor with `a:not(.button)` (0,1,1), so the colour and
   the underline only stick from a selector that outranks it. */
.cart-drawer__fixed-checkout a.cart-drawer__link-to-cart {
  font-size: 16px;
  font-weight: 500;
  line-height: 23px;
  letter-spacing: normal;
  color: rgb(102, 102, 102);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cart-drawer__fixed-checkout a.cart-drawer__link-to-cart:hover {
  color: rgb(var(--color-text));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Cart add-ons: Note / Shipping / Coupon */
.cart-addons {
  display: block;
  margin-bottom: 16px;
}

.cart-addons__triggers {
  display: flex;
  column-gap: 5px;
}

.cart-addons__trigger {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 6px;
  padding: 8px 10px;
  border: none;
  border-radius: 5px;
  background-color: rgb(245, 245, 245);
  color: rgb(var(--color-text));
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 22.5px;
  letter-spacing: normal;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cart-addons__trigger:hover,
.cart-addons__trigger.is-active {
  background-color: rgb(var(--color-text));
  color: rgb(var(--color-page-background));
}

.cart-addons__label {
  font: inherit;
}

.cart-addons__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@media (max-width: 959px) {
  .cart-addons__triggers {
    justify-content: flex-start;
  }

  .cart-addons__trigger {
    flex: 0 0 auto;
    width: auto;
    font-size: 13px;
    line-height: 19.5px;
  }

  .cart-addons__trigger .cart-addons__label {
    display: none;
  }

  .cart-addons__trigger .cart-addons__icon {
    width: 20px;
  }
}

.cart-addons__panel {
  padding-top: 12px;
}

.cart-addons__note-input,
.cart-addons__shipping-input {
  width: 100%;
  border: 1px solid rgb(var(--color-entry-line));
  border-radius: 4px;
  padding: 10px 12px;
  color: rgb(var(--color-text));
  background: rgb(var(--color-page-background));
  font: inherit;
}

.cart-addons__note-input {
  min-height: 72px;
  resize: vertical;
  display: block;
}

.cart-addons__shipping-title {
  margin: 0 0 8px;
}

.cart-addons__field {
  margin-bottom: 8px;
}

.cart-addons__shipping-note {
  color: rgb(var(--color-light-text));
  margin: 4px 0 0;
}

.cart-addons__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.cart-addons__cancel {
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgb(var(--color-text));
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.cart-addons__cancel:hover {
  text-decoration: none;
}

.cart-addons__save {
  padding: 8px 20px;
}

.cart-addons__panel .cart__coupon-wrapper {
  margin: 0;
}
.cart-fixed-checkout__footer {
  border-top: 1px solid rgb(var(--color-entry-line));
  padding: 12px;
}

.cart-drawer__fixed-checkout .cart-fixed-checkout__footer {
  padding: 20px 20px 16px;
}

.cart-drawer__fixed-checkout .cart-drawer__checkout-button {
  height: 45px;
  min-height: 45px;
  padding-top: 0;
  padding-bottom: 0;
}

.cart-fixed-checkout .cart__total-text,
.cart-fixed-checkout .cart__total-amount {
  font-family: var(--body-font);
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
  letter-spacing: normal;
}
.cart-fixed-checkout .cart__saved-price {
  color: rgb(var(--color-discount));
}
.cart-fixed-checkout .cart__price-zone {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: 8px;
  align-items: center;
}
.cart-fixed-checkout .cart__total-price {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-fixed-checkout .cart__toggle-icon svg {
  transition: transform 0.3s ease-out;
}
.cart-fixed-checkout .cart-drawer__dropdown-toggle-normal {
  cursor: default;
}
.cart-fixed-checkout.collapsed .cart-fixed-checkout__prices {
  max-height: 0;
  opacity: 0.01;
  padding: 0;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}
.cart-fixed-checkout.collapsed .cart-fixed-checkout__dropdown-button {
  opacity: 0.01;
  max-height: 0;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}
.cart-fixed-checkout.collapsed .cart__toggle-icon svg {
  transform: rotate(180deg);
}
.cart-fixed-checkout.invisible {
  /* animation: cart-drawer-hide ; */
  transform: translateY(100px);
  transition: transform 0.3s ease-out;
}
.cart-fixed-checkout.invisible .cart-fixed-checkout__container {
  opacity: 0.01;
  transform: translateY(100%);
}

/* The ipad end responds to the mobile end in vertical screen */

/* @custom-media --tablet (max-width: 959px); */

/* @custom-media --gt-mobile (min-width: 751px); */

/* detectingScreen need to consider the configuration of the tablet */
