.drawer {
    position: fixed;
    z-index: 2002;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    background-color: rgba(0, 0, 0, .6);
    transition: visibility var(--duration-default) ease;
}

.drawer.active {
    visibility: visible;
}
.drawer__header{
    transform: translateX(var(--x));
    transition: transform var(--duration-default) ease;
}
.drawer__inner {
    height: 100%;
    width: 40rem;
    max-width: calc(100vw - 3rem);
    padding: 0;
    /* border: 0.1rem solid rgba(var(--color-foreground), 0.2); */
    border-right: 0;
    background-color: rgb(var(--color-background));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(var(--x));
    transition: transform var(--duration-default) ease;
}
 

.drawer__inner-empty {
    height: 100%;
    padding: 0 1.5rem;
    background-color: rgb(var(--color-background));
    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-drawer__warnings--has-collection .cart__login-title {
    margin-top: 2.5rem;
}

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

.drawer__header {
    position: relative;
    background-color: rgb(var(--color-background));
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer__heading {
    margin: 0;
    padding: 0;
    line-height: normal;
}

.drawer__close {
    box-shadow: 0 0 0 0.2rem rgba(var(--color-button), 0);
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.cart-drawer__warnings .drawer__close {
    right: 5px;
}

.drawer__close svg {
    height: 15px;
    width: 15px;
    margin-bottom: 5px;
    color: #000;
    fill: #000;
}

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

.drawer__footer {
    background: #FFFFFF;
    box-shadow: 0px -8px 16px 0px rgba(105, 108, 114, 0.16);
    padding: 1.5rem 0;
}
.drawer .drawer__header,
.drawer__inner .cart-drawer-body,
.drawer__inner .drawer__footer{
    padding-inline-start: 12.5px;
    padding-inline-end: 12.5px;

}
.drawer .drawer__header{
    padding-inline-end: 25px;
}
.drawer__inner .drawer__header {
    padding-top: 16px;
    padding-bottom: 10.5px;
}
.drawer__inner .drawer__header>* {
    font-weight: bold;
    font-size: 18px;
    color: #111111;
    line-height: 1;
}
@media screen and (min-width: 750px) {
    .drawer__inner .drawer__header {
        padding-top: 28px;
        padding-bottom: 18px;
    }
    .drawer__inner .drawer__header>* {
        font-size: 24px;
    }
   .drawer__close svg {
       height: 15px;
       width: 15px;
       margin-bottom: 0;
   }
  .drawer .drawer__header,
  .drawer__inner .cart-drawer-body,
  .drawer__inner .drawer__footer {
    padding-inline-start: 20px;
    padding-inline-end: 20px;
  }
  .drawer .drawer__header{
    padding-inline-end: 40px;
  }
}

.drawer__footer > details {
    margin-top: -1.5rem;
    border-bottom: none;
}    

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

.drawer__footer summary {
    display: flex;
    position: relative;
    line-height: 1;
    padding: 1.5rem 0;
    padding-top: 28px;
    padding-bottom: 5px;
    justify-content: space-between;
}

.drawer__footer > details + .cart-drawer__footer {
    padding-top: 0;
}

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

.cart-drawer__overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

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

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

.cart-drawer__collection {
    margin: 0 2.5rem 1.5rem;
}

.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;
    background-color: rgb(var(--color-base-background-1));
}

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

@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;
}

.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-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-left: 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-overlay {
    right: 5px;
    padding-top: 2.5rem;
}

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

.cart-drawer .cart-item > td + td {
    padding-left: 0;
}

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

.cart-drawer .cart-item__totals {
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: start;
    margin-top: 0px;
}

.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: 749px) {
    .cart-drawer .cart-item cart-remove-button {
        margin-left: 0;
    }
}

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

.cart-drawer .totals {
    justify-content: space-between;
}

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

.cart-drawer .tax-note {
    margin: 1.2rem 0 1rem auto;
    text-align: start;
}

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

.cart-drawer details[open]>summary .icon-caret {
    transform: rotate(180deg);
}
summary .icon.icon-caret{
    width: 14px;
    height: 14px;
}
.cart-drawer .cart__checkout-button {
    max-width: none;
}

.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-right: 0.5rem !important;
}
.cart-drawer .custom-data-item .cart-item__totals {
    /* margin-top: -30px; */
}
@media screen and (min-width: 750px) {
    .cart-drawer .cart-item__totals{
        margin-top: 5px;
    }
    .cart-drawer .custom-data-item .cart-item__totals {
        /* margin-top: -40px; */
    }
    .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-items::-webkit-scrollbar {
    width: 3px;
}

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

cart-drawer-items::-webkit-scrollbar-track-piece {
    margin-top: 31px;
}
#CartDrawer  .cart-item__media{
    width: 105px;
    height: 105px;
  }
#CartDrawer  .cart-item__image{
    width: 100%;
    height:100%;
    object-fit: contain;
}
#CartDrawer .cart-item__details .product-option{
  color: rgba(186, 186, 186, 1);
}
#CartDrawer cart-remove-button1 .button{
 justify-content: end;
 padding: 0;
}
#CartDrawer .cart-item__quantity-wrapper{
    justify-content: space-between;
}
 #CartDrawer .cart-item__details .cart-item__name{
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
 }
 quantity-input.quantity:after{
   box-shadow: none;
 }
 quantity-input.quantity{
   width: 116px;
   height: 40px;
   border-radius: 20px;
   border: 1px solid #DDDDE1;
   min-height: initial;
 }

 #CartDrawer .drawer__inner {
     width: 335px;
}
#CartDrawer .cart-item__name {
   color: #111111FF;
}
#CollectionProductGrid .sales span{
    font-weight: 400;
    font-size: 14px;
    color: #CFCFCF;
}
.drawer__inner-empty{
    max-height: 300px;
}
.drawer__heading>span{
    vertical-align: middle;
}

.drawer__header .drawer-cart-num-pill {
    min-width: 15px;
    height: 15px;
    background: #FF8E38;
    border-radius: 7.5px;
    font-size: 11px;
    display: inline-flex;
    justify-content: center;
    align-items:center;
    text-align: center;
    color: white;
    line-height: 15px;
    font-weight: normal;
}
.drawer__header .drawer-cart-num-pill,
.drawer__header .drawer-cart-num-brackets{
    display: none;
}
.drawer__header .drawer__heading{
    display: flex;
    place-content: center;
    align-items: center;
    gap: 5px;
}

.cart-drawer__footer .totals__subtotal{
    font-size: 16px;
    font-weight: 500;
}

.drawer__inner-empty .drawer__close {
   display: flex;
   justify-content: end;
   margin-inline-end: 10px;
   width: 15px;
}
@media (min-width:750px) {
    #CartDrawer .cart-item__details .product-option{
        font-size: 14px;
    }
    .cart-drawer__footer .totals__subtotal{
        font-size: 18px;
    }
    #CartDrawer quantity-input.quantity{
        height: 36px;
    }
    #CartDrawer .cart-item__details .cart-item__name{
        font-size: 16px;
    }
    #CartDrawer .drawer__inner {
        width: 460px;
    }
    #CartDrawer  .cart-item__media {
        width: 144px;
        height: 144px;
    }
}
@media (min-width:590px) {
    #CartDrawer .drawer__inner {
        width: 460px;
  }
}
@media (max-width:749.98px) {
  #CartDrawer .cart-item__name{
      margin-bottom: 5px;
      line-height: 1.2;
  }
  #CartDrawer quantity-input.quantity {
      height: 32px;
  }
  #CollectionProductGrid .sales span{
      font-size: 13px;
  }
 .drawer__cart-items-wrapper .cart-item__price-wrapper * {
        font-size: 13px;
  }
  #CartDrawer quantity-input.quantity{
    width: 90px;
  }
}