.drawer__inner--cart {
  padding-bottom: 0;
}

#CartDrawer .cart-drawer__quantity {
  display: grid;
  grid-template-columns: 44px minmax(36px, 1fr) 44px;
  width: 132px;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #dfe3e8;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  color: #17191d;
}

#CartDrawer .cart-drawer__quantity .quantity__button,
#CartDrawer .cart-drawer__quantity .quantity__input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: inherit;
  text-align: center;
}

#CartDrawer .cart-drawer__quantity .quantity__button {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

#CartDrawer .cart-drawer__quantity .quantity__button > * {
  pointer-events: none;
}

#CartDrawer .cart-drawer__quantity .quantity__input {
  font-size: 14px;
  font-weight: 600;
}

#CartDrawer .cart-drawer__quantity .quantity__button:hover:not(:disabled) {
  background: #eefbf1;
}

#CartDrawer .cart-drawer__quantity :disabled {
  opacity: .5;
  cursor: wait;
}

#CartDrawer .button {
  --color-button: 39, 201, 79;
  --color-button-text: 255, 255, 255;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: #27c94f;
  color: #fff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 750;
  font-family: var(--font-body-family);
}

#CartDrawer .button::before,
#CartDrawer .button::after {
  display: none;
}

#CartDrawer .button:hover:not(:disabled) {
  background: #1dbb46;
}

#CartDrawer .button--secondary {
  border: 1px solid #dfe3e8;
  background: #fff;
  color: #17191d;
}

#CartDrawer .button--secondary:hover:not(:disabled) {
  background: #f5f6f8;
}

#CartDrawer button:focus-visible,
#CartDrawer .button:focus-visible,
#CartDrawer .quantity__input:focus-visible {
  outline: 2px solid #17191d;
  outline-offset: -3px;
}

cart-drawer.drawer {
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  justify-content: flex-end;
  overflow: hidden;
}

cart-drawer .drawer__inner--cart {
  transform: translateX(100%);
  overscroll-behavior: contain;
  overflow: hidden;
  row-gap: 0;
}

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

cart-drawer #CartDrawer {
  height: 100%;
  min-height: 0;
}

cart-drawer .drawer__header {
  flex-shrink: 0;
}

cart-drawer .cart-drawer__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

cart-drawer .cart-drawer__shipping,
cart-drawer .drawer__inner-empty,
cart-drawer .cart-drawer__scroll-area {
  padding: 1.5rem 2rem;
}

cart-drawer .cart-drawer__scroll-area {
  overflow: visible;
}

cart-drawer .drawer__footer.cart-drawer__checkout {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  max-height: 50%;
  padding: 1.5rem 2rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 0.1rem solid rgba(var(--color-foreground), 0.08);
  background: rgb(var(--color-background));
}

cart-drawer .cart-drawer__checkout > :not(.cart__ctas) {
  min-height: 0;
  overflow-y: auto;
}

cart-drawer .cart-drawer__checkout .cart__ctas {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

cart-drawer.is-empty .cart-drawer__checkout {
  display: none;
}

@media screen and (max-width: 749px) {
  cart-drawer.drawer {
    align-items: flex-end;
  }

  cart-drawer #CartDrawer {
    width: 100%;
    height: 88vh;
    height: 88dvh;
  }

  cart-drawer .drawer__inner--cart {
    width: 100%;
    max-width: none;
    height: 100%;
    border-radius: 20px 20px 0 0;
    padding-bottom: 0;
    transform: translateY(100%);
  }

  cart-drawer.active .drawer__inner--cart {
    transform: translateY(0);
  }

  cart-drawer .drawer__header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgb(var(--color-background));
  }

  cart-drawer .cart-drawer__footer__action-content.appear {
    max-height: 88vh;
    max-height: 88dvh;
    overflow: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  cart-drawer.drawer,
  cart-drawer .drawer__inner--cart {
    transition-duration: 0.01ms;
  }
}

.cart-drawer__warnings {
  flex: 1;
}

cart-drawer:not(.is-empty) .drawer__inner-empty {
  display: none;
}

.cart-drawer__warnings--has-collection .cart__login-title {
  margin-top: 2.5rem;
}

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

cart-drawer.is-empty .drawer__footer, cart-drawer.is-empty .cart-drawer__scroll-area {
  display: none;
}

cart-drawer:not(:has(#CartDrawer-CartItems .cart-item)) .drawer__inner-empty {
  display: block;
}

cart-drawer:not(:has(#CartDrawer-CartItems .cart-item)) .drawer__footer,
cart-drawer:not(:has(#CartDrawer-CartItems .cart-item)) .cart-drawer__scroll-area {
  display: none;
}

.drawer__footer details {
  margin-top: -1.5rem;
  border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.2);
}

.drawer__footer__details-content {
  transition: opacity 300ms ease,
  box-shadow 300ms ease;
}

.drawer__footer__details-content, .drawer__footer details[open].closing .drawer__footer__details-content {
  opacity: 0;
}

.drawer__footer details[open] {
  padding-bottom: 1.5rem;
}

.drawer__footer details[open] .drawer__footer__details-content {
  opacity: 1;
}

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

.drawer__footer__inner > * + * {
  padding-top: 1.5rem;
}

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

.cart-drawer__scroll-area {
  overflow: auto;
}

button.cart-drawer__recommendation-item__button.loading .loading-overlay__spinner {
  width: min(3rem, 50%);
}

.cart-drawer__scroll-area__line {
  margin: 1.6rem -2rem;
}

.cart-drawer__item-total {
  gap: 1rem;
}

.cart-drawer__recommendation__slider-buttons {
  column-gap: 1.5rem;
}

.cart-drawer__recommendation__slider-button {
  width: 3.4rem;
  height: 3.4rem;
}

@media screen and (max-height: 650px) {
  .cart-drawer__scroll-area {
    overflow: visible;
  }

  .cart-drawer__footer__action-content.appear  {
    overflow: auto;
  }

  .cart-drawer__footer__action-content.appear  {
    max-height: 100vh;
  }
}

@media screen and (min-height: 651px) {
  cart-drawer .drawer__inner {
    overflow: hidden;
  }
  
}

.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: 100%;
  padding-inline-start: 0;
}

.cart-drawer__footer > * + * {
  margin-top: 1rem;
}

.cart-drawer .price {
  line-height: 1;
}

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

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

div.drawer__footer {
  padding: 0;
}

.drawer__footer__inner {
  border-top: 0.1rem solid rgba(var(--color-foreground), 0.08);
  padding: 2rem;
}

.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) {
  .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;
  }
}

.cart-drawer__scroll-area::-webkit-scrollbar {
  width: 3px;
}

.cart-drawer__scroll-area::-webkit-scrollbar-thumb {
  background-color: rgba(var(--color-foreground), 0.7);
  border-radius: 100px;
}

.cart-drawer__scroll-area::-webkit-scrollbar-track-piece {
  margin-top: 31px;
}

.shipping-calculator__results-list {
  margin: 1rem 0 0;
}

.drawer__footer__actions {
  box-shadow: 0px 1px 2px 0px rgb(var(--color-foreground), 0.08);
  border-radius: 6px;
  gap: 0.2rem;
}

.cart-drawer__footer__action {
  background: rgb(var(--color-background));
}

.cart-drawer__footer__action-label {
  padding: 1.2rem 0.5rem;
  cursor: pointer;
  font-weight: var(--font-button-weight-medium);
}

.cart-drawer__footer__action-label:before {
  opacity: 0;
  visibility: hidden;
  content: '';
  position: fixed;
  width: 100vw;
  height: 100vh;
  inset-inline-start: calc(100% - 100vw);
  top: 0;
  background-color: rgb(var(--color-overlay), .6);
  transition: opacity 500ms ease;
}

.cart-drawer__footer__action.open .cart-drawer__footer__action-label:before {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.cart-drawer__footer__action-label span {
  margin-inline-start: .5rem;
}

.cart-drawer__footer__action-content {
  position: fixed;
  bottom: calc((-1) * var(--drawer-bottom-position));
  inset-inline-end: 0;
  transform: translateY(100%);
  transition: transform 300ms ease;
  background-color: rgb(var(--color-background));
  z-index: 3;
  display: none;
}

.cart-drawer__footer__content-inner {
  padding: 2rem;
}

.cart-drawer__footer__content-heading-wrapper {
  border-bottom: 1px solid rgb(var(--color-foreground),.05);
  box-shadow: 0px 1px 2px 0px rgba(var(--color-foreground), 0.03);
  padding: 1.5rem 2rem;
}

.cart-drawer__footer__content-heading {
  gap: 0.6rem;
  letter-spacing: var(--font-heading-letter-spacing, 0);
}

.cart-drawer__footer__action-content.appear {
  display: block;
}

.cart-drawer__footer__action-content.appear.animate {
  transform: translateY(0); 
}

.cart-drawer__footer__action-close {
  cursor: pointer;
}

.cart-drawer__footer__action-close .icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}


