.drawer.active {
  visibility: visible;
}

.cart-drawer__overlay:empty {
  display: block;
}


.cart-drawer {
  --cart-drawer-border-color: rgba(var(--color-foreground), 0.15);
}

.drawer__inner {
  height: 100%;
  width: 46rem;
  max-width: calc(100vw - 5rem);
  border-inline-end: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateX(calc(100% * var(--direction-multiplier)));
  transition: transform var(--duration-default) var(--cubic-bezier-wipe);
}

.drawer__inner-empty {
  height: 100%;
  padding: 0 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cart-drawer__warnings {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}

cart-drawer.is-empty .drawer__inner {
  display: grid;
  grid-template-rows: 1fr;
  align-items: center;
  padding: 0;
}

.cart__recommendations {
  min-height: 1px;
}

cart-drawer.is-empty .drawer__header,
cart-drawer.is-empty .cart__recommendations,
cart-drawer.is-empty .drawer__shipping-bar,
cart-drawer-items.is-empty + .drawer__footer,
cart-drawer:not(.is-empty) .cart-drawer__warnings,
cart-drawer:not(.is-empty) .cart-drawer__promo {
  display: none;
}

cart-drawer-items.is-empty {
  padding: 0 !important;
}

.drawer.active .drawer__inner {
  transform: translateX(0);
}

.drawer__header {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.1rem solid var(--cart-drawer-border-color);
}

.drawer__close {
  display: inline-block;
  padding: 0;
  min-width: 4.4rem;
  min-height: 4.4rem;
  box-shadow: 0 0 0 0.2rem rgba(var(--color-button), 0);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: 1rem;
  color: rgb(var(--color-foreground));
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.cart-drawer__warnings .drawer__close {
  inset-inline-end: 5px;
  top: 29px;
}

.drawer__close svg {
  height: 2.6rem;
  width: 2.6rem;
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  transform: translateY(-50%) translateX(calc(-50% * var(--direction-multiplier)));
}

.drawer__contents {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.drawer__footer {
  border-top: 0.1rem solid var(--cart-drawer-border-color);
  padding: 1.5rem 0;
}

.cart__ctas-container {
  container-type: inline-size;
}

.drawer__footer > custom-accordion {
  border-bottom: 0.1rem solid var(--cart-drawer-border-color);
}

.drawer__footer custom-accordion {
  margin-top: -1.5rem;
  margin-bottom: 1.5rem;
}

.drawer__footer .summary__title {
  max-width: calc(100% - 40px);
}

.drawer__footer summary {
  display: flex;
  position: relative;
  line-height: 1;
  padding: 1.2rem 0;
}

cart-drawer {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 100vw;
  height: 100%;
}

.cart-drawer__form {
  flex-grow: 1;
  display: flex;
  flex-wrap: wrap;
}

.cart-drawer .drawer__cart-items-wrapper {
  flex-grow: 1;
}

.cart-drawer .cart-items,
.cart-drawer tbody {
  display: block;
  width: 100%;
}

.cart-drawer thead {
  display: inline-table;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 2;
}

cart-drawer-items {
  overflow: auto;
  flex: 1;
}

.drawer__inner-scroll-always {
  overflow: auto;
}

.drawer__inner-scroll-always cart-drawer-items {
  overflow: visible;
}

@media screen and (max-height: 650px) {
  cart-drawer-items {
    overflow: visible;
  }

  .drawer__inner {
    overflow: scroll;
  }
}

.cart-drawer .cart-item {
  display: grid;
  grid-template: repeat(2, auto) / repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 0;
  padding-bottom: 1.5rem;
}

.cart-drawer .cart-item:last-child {
  margin-bottom: 1rem;
}

.cart-drawer .cart-item__media {
  grid-row: 1 / 3;
}

.cart-drawer .cart-item__image {
  max-width: 100%;
}

.cart-drawer .cart-item:has(+ .cart-item__nested-line) {
  border-end-end-radius: 0;
}

.cart-drawer .cart-item__nested-line {
  margin-top: 0;
  margin-inline-start: 3rem;
  border-top: 0;
  border-start-start-radius: 0;
  border-start-end-radius: 0;
}

.cart-drawer .cart-items thead {
  margin-bottom: 0.5rem;
}

.cart-drawer .cart-items thead th:first-child,
.cart-drawer .cart-items thead th:last-child {
  width: 0;
  padding: 0;
}

.cart-drawer .cart-items thead th:nth-child(2) {
  width: 50%;
  padding-inline-start: 0;
}

.cart-drawer .cart-items thead tr {
  display: table-row;
  margin-bottom: 0;
}

.cart-drawer .cart-items th {
  border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.08);
}

.cart-drawer .cart-item:last-child {
  margin-bottom: 1.5rem;
}

.cart-drawer .cart-item .loading__spinner {
  inset-inline-end: 5px;
  padding-top: 2.5rem;
}

.cart-drawer .cart-items td {
  padding-top: 2rem;
}

.cart-drawer .cart-items .cart-item__nested-line td:not(.cart-item__quantity) {
  padding-top: 1rem;
}

.cart-drawer .cart-item > td + td {
  padding-inline-start: 1rem;
}

.cart-drawer .cart-item__details {
  width: auto;
  grid-column: 2 / 4;
}

.cart-drawer .cart-item__totals {
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.cart-drawer.cart-drawer .cart-item__price-wrapper > *:only-child {
  margin-top: 0;
}

.cart-drawer .cart-item__price-wrapper .cart-item__discounted-prices {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cart-drawer .unit-price {
  margin-top: 0.6rem;
}

.cart-drawer .cart-items .cart-item__quantity {
  padding-top: 0;
  grid-column: 2 / 5;
}

@media screen and (max-width: 749.98px) {
  .cart-drawer .cart-item cart-remove-button {
    margin-inline-start: 0;
  }

  .drawer__inner-scroll-mobile {
    overflow: auto;
  }

  .drawer__inner-scroll-mobile cart-drawer-items {
    overflow: visible;
  }
}

.cart-drawer .footer-message {
  margin: 1.2rem 0 1rem;
  margin-inline-start: auto;
  text-align: start;
}

.cart-drawer .product-option dd {
  word-break: break-word;
}

.cart-drawer details[open] > summary .icon-caret {
  transform: rotate(180deg);
}

.cart-drawer .cart__checkout-button {
  max-width: none;
  padding-inline-start: 2.2em !important;
  padding-inline-end: 2.2em !important;
}

.drawer__footer .cart__dynamic-checkout-buttons {
  max-width: 100%;
}

.drawer__footer #dynamic-checkout-cart ul {
  flex-wrap: wrap !important;
  flex-direction: row !important;
  margin: 0.5rem -0.5rem 0 0 !important;
  gap: 0.5rem;
}

.drawer__footer [data-shopify-buttoncontainer] {
  justify-content: flex-start;
}

.drawer__footer #dynamic-checkout-cart ul > li {
  flex-basis: calc(50% - 0.5rem) !important;
  margin: 0 !important;
}

.drawer__footer #dynamic-checkout-cart ul > li:only-child {
  flex-basis: 100% !important;
  margin-inline-end: 0.5rem !important;
}

@media screen and (min-width: 750px) {
  .side-drawers-inset .drawer__inner {
    position: absolute;
  }

  .drawer__footer #dynamic-checkout-cart ul > li {
    flex-basis: calc(100% / 3 - 0.5rem) !important;
    margin: 0 !important;
  }

  .drawer__footer #dynamic-checkout-cart ul > li:first-child:nth-last-child(2),
  .drawer__footer #dynamic-checkout-cart ul > li:first-child:nth-last-child(2) ~ li,
  .drawer__footer #dynamic-checkout-cart ul > li:first-child:nth-last-child(4),
  .drawer__footer #dynamic-checkout-cart ul > li:first-child:nth-last-child(4) ~ li {
    flex-basis: calc(50% - 0.5rem) !important;
  }

  .drawer__inner-scroll-desktop {
    overflow: auto;
  }

  .drawer__inner-scroll-desktop cart-drawer-items {
    overflow: visible;
  }
}

.cart-drawer .quantity-popover-container {
  padding: 0;
}

.cart-drawer .quantity-popover__info.global-settings-popup {
  transform: translateY(0);
  top: 100%;
}

.cart-drawer .cart-item__error {
  margin-top: 0.8rem;
}

.cart-drawer .quantity-popover__info + .cart-item__error {
  margin-top: 0.2rem;
}

@media screen and (min-width: 750px) {
  .cart-drawer .cart-item__quantity--info quantity-popover > * {
    padding-inline-start: 0;
  }

  .cart-drawer .cart-item__error {
    margin-inline-start: 0;
  }
}