.cart-drawer {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    background-color: rgba(var(--color-mask), 0.5);
    transition: visibility 200ms ease;
}

.cart-drawer {
    visibility: hidden;
}

.cart-drawer.active {
    visibility: visible;
}

.cart-drawer__inner {
    height: 100%;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 200ms ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: rgb(var(--color-page-background));
}

.cart-drawer__fixed-checkout {
    transform: translateX(100%);
    transition: transform 200ms ease;
}

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

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

.cart-drawer__header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

.cart-drawer__header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -20px;
    width: calc(100% + 40px);
    height: 1px;
    background-color: rgb(var(--color-entry-line));
}

.cart-drawer__close {
    color: rgb(var(--color-text));
    cursor: pointer;
    width: 24px;
    height: 24px;
    line-height: 0;
    top: 2px;
    right: -4px;
    padding: 6px;
    position: absolute;
}

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

.cart-drawer-container {
    width: 580px;
}

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

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

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

.cart-drawer__inner {
    overflow-y: scroll;
}

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

    .cart-drawer__inner {
        overflow-y: scroll;
    }
}

@media (max-width: 959px) {
    .cart-drawer-container {
        width: 90%;
    }
}

cart-drawer-items::-webkit-scrollbar {
    width: 3px;
}

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

cart-drawer-items::-webkit-scrollbar-track-piece {
    margin-top: 20px;
}

/* cart-drawer-footer */

.cart-drawer__footer__container {
    display: flex;
    justify-content: flex-end;
    padding-top: 40px;
    padding-bottom: 40px;
}

.cart-drawer__checkout-container {
    width: 100%;
    position: relative;
    padding: 40px 0;
}

.cart-drawer__checkout-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: -20px;
    width: calc(100% + 40px);
    height: 1px;
    background-color: rgb(var(--color-entry-line));
}

.cart-drawer__amount-wrapper {
    margin: 0;
    padding: 0;
}

.cart-drawer__amount-wrapper li {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgb(var(--color-text));
    margin-bottom: 8px;
}

.cart-drawer__amount-wrapper li em {
    font-style: normal;
    margin-right: 12px;
}

.cart-drawer__amount-wrapper .cart__discount span {
    color: rgb(var(--color-discount));
}

.cart-drawer__discount span {
    color: rgb(var(--color-discount));
}

#checkout {
    width: 100%;
}

.cart-drawer__checkout {
    margin-top: 15px;
}

.cart-drawer__taxes__desc {
    text-align: center;
}

.cart-drawer__body {
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
}

.cart-drawer__body .cart-drawer__inner {
    flex: 1;
}

.cart-drawer__body .cart-fixed-checkout {
    position: static;
}

/* 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 */


.cart-drawer__items .sale_group_slot,
div[data-ssr-product-recommend-bottom],
div[data-ssr-product-recommend-bottom]+div {
    display: none;
}

cart-drawer .cart-drawer__inner {
    padding: 0px;
}

cart-drawer .cart-drawer__header {
    padding: 30px 30px 14px;
}

cart-drawer .cart-drawer__header::after {
    content: none;
}

cart-drawer h2.cart-drawer__heading {
    font-size: 20px;
    line-height: 1.25;
    color: #1A1A1A;
    text-transform: capitalize;
}

cart-drawer .cart-drawer__close {
    position: unset;
    width: 33px;
    height: 33px;
    background: #F8F8F8;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #111111;
}

cart-drawer .cart-drawer__close svg.icon-close {
    width: 11px;
    height: 11px;
    display: block;
}

.drawer__progress-bar {
    padding: 0 30px;
}

.drawer__progress-bar p {
    background: #EFF6F1;
    border-radius: 4px;
    padding: 14px;
    margin: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.drawer__progress-bar p span.svg-wrap {
    width: 29px;
    height: 17px;
}

.drawer__progress-bar p span.svg-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
}

.drawer__progress-bar p span.text-wrap {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.25;
    color: #131313;
    display: block;
    text-transform: capitalize;
}

cart-drawer cart-drawer-items {
    padding: 20px 30px 0;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

div#CartDrawer-CartErrors {
    display: block;
    width: 100%;
}

div#CartDrawer-CartItems {
    width: 100%;
}

cart-drawer .cart-drawer__items .cart-item {
    padding: 0 0 20px;
    border-bottom: none;
}

cart-drawer .cart-drawer__items .cart-item__media {
    width: 90px;
    margin-right: 20px;
}

.cart-item-name-price {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 3px;
}

cart-drawer .cart-item__details {
    min-width: unset;
    flex-grow: 1;
}

.cart-item-name-price .cart-item__name {
    margin: 0;
    font-size: 14px;
    line-height: 1.286;
    color: #000000;
    font-family: "GT-America-Expanded-Bold" !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-item-name-price .cart-item__price-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.cart-drawer__items .cart-item-name-price .cart-item__price-wrapper .final__price {
    font-size: 14px;
    line-height: 1.286;
    color: #1A1A1A;
    font-family: "GT-America-Expanded-Bold" !important;
    margin: 0;
    white-space: nowrap;
}

.cart-item-name-price .cart-item__price-wrapper .original__price {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.286;
    color: #9F9F9F;
    text-decoration-line: line-through;
}

cart-drawer .cart-item__details .product-option {
    margin-bottom: 0;
    line-height: 1.25;
}

cart-drawer .cart-item__details .product-option span {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.286;
    color: #555555;
}

cart-drawer .cart-drawer__items .cart-item__quantity .cart-item__quantity-wrapper {
    margin: 15px 0 0;
    height: unset;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

cart-drawer .cart-item__quantity .quantity {
    width: 72px;
    height: 30px;
    margin-right: 0;
    min-height: unset;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ECECEC;
}

cart-drawer .cart-item__quantity .quantity::after,
cart-drawer .cart-item__quantity .quantity::before {
    content: none;
}

cart-drawer .cart-item__quantity .quantity button.quantity__button {
    flex: 1 1 100%;
}

cart-drawer .cart-item__quantity .quantity input.quantity__input {
    flex: 1 1 100%;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    color: #1A1A1A
}

cart-drawer .cart-item__quantity .quantity button.quantity__button svg.icon {
    width: 8px;
    height: 8px;
}

cart-drawer .cart-item__quantity cart-remove-button {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.286;
    color: #999999;
    text-transform: capitalize;
    text-decoration: underline;
    cursor: pointer;
}

.drawer__related-product {
    margin: 0 30px 20px;
    border: 2px solid #fce7c9;
    border-radius: 4px;
    overflow: hidden;
}

.related-product-header {
    background: #fce7c9;
    width: 100%;
    padding: 12px 15px;
}

.related-product-header h3 {
    font-size: 18px;
    line-height: 1.25;
    color: #1A1A1A;
    text-transform: capitalize;
    font-family: var(--body-font);
    font-weight: 500;
}

.related-product-list {
    padding: 12px;
}

.related-product-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-product-list ul li {
    border-bottom: 1px solid #fce7c9;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.related-product-list ul li:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-product-item {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.related-product-media {
    width: 100px;
}

.related-product-info {
    width: calc(100% - 100px - 12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

a.related-product-media-wrap {
    width: 100%;
    position: relative;
    display: block;
    text-decoration: none;
    padding-top: 100%;
}

a.related-product-media-wrap img,
a.related-product-media-wrap svg {
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
}

.related-product-info a.title {
    margin: 0;
    font-size: 14px;
    line-height: 1.286;
    color: #000000;
}

.related-product-info .related-product-atc {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    margin-top: 4px;
}

.related-product-info .related-product-atc span.price {
    font-size: 14px;
    line-height: 1.286;
    color: #1A1A1A;
    font-family: "GT-America-Expanded-Bold" !important;
    margin: 0;
}

.related-product-atc-btn {
    height: 30px;
    width: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    border-radius: 2px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1;
    padding: 5px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    font-family: 'GT America Bold';
}

.related-product-atc-btn.loading span.text-wrap {
    opacity: 0;
}

.related-product-atc-btn .loading-overlay__spinner {
    position: absolute;
    width: 16px;
    height: 16px;
}

.related-product-atc-btn .loading-overlay__spinner svg.icon {
    width: 100%;
    height: 100%;
    display: block;
}

.related-product-atc-btn .sold-out {
    display: none;
}

.related-product-atc-btn.vari-sold-out {
    cursor: not-allowed;
    opacity: 0.5;
}

.related-product-atc-btn.vari-sold-out .sold-out {
    display: block;
}

.related-product-atc-btn.vari-sold-out .add {
    display: none;
}

.related-variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.related-variant-item select {
    border: 1px solid #999999;
    padding: 2px;
    font-size: 13px;
    line-height: 1;
}

.drawer__footer {
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 30px 13px;
    background: #FFFFFF;
    box-shadow: 0px -3px 6px 1px rgba(0, 0, 0, 0.06);
    position: sticky;
    bottom: 0;
    width: 100%;
}

.cart-drawer__footer .totals-subtotal,
.cart-drawer__footer .totals-discount,
.cart-drawer__footer .totals {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.totals-subtotal .totals-subtotal-label,
.totals-discount .total-discount-label {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    color: #1A1A1A;
}

.totals-subtotal .totals-subtotal-value,
.totals-discount .total-discount-value {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    color: #1A1A1A;
    letter-spacing: 0;
}

.cart-drawer__footer h2.totals__total {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.25;
    color: #1A1A1A;
    margin: 0;
}

.cart-drawer__footer p.totals__total-value {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.25;
    color: #A43D03;
    margin: 0;
}

.drawer__footer .cart__ctas {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    gap: 10px;
}

.cart-drawer .cart-drawer__checkout-button:after,
.cart-drawer .cart-drawer__checkout-button:before {
    content: none;
}

.cart-drawer .cart-drawer__checkout-button {
    min-height: 46px;
    background: #A43D03;
    border-radius: 2px;
    overflow: hidden;
    padding: 10px;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.25;
    color: #fff;
    letter-spacing: 0;
    text-transform: capitalize;
}

.drawer__footer .cart__ctas small.tax-note,
.drawer__footer .cart__ctas small.tax-note * {
    margin: 0;
    text-align: center;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.25;
    color: #999999;
}

.cart__empty-text-wrapper {
    padding: 0 clamp(15px, 1.57vw, 30px);
}

.cart-drawer__inner-wrapper.cart-empty {
    height: 100%;
}

cart-drawer .cart-drawer__header+div:has(.cart__empty-text-wrapper) {
    height: 80%;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart__empty-text-wrapper .cart__empty-text {
    font-size: 20px;
    line-height: 1.25;
    color: #1A1A1A;
    text-transform: capitalize;
}

@media(max-width:749px) {
    .cart__empty-text-wrapper {
        padding: 0 10px;
    }

    .cart-drawer-container {
        width: 95%;
    }

    cart-drawer .cart-drawer__header {
        padding: 22px 10px 13px;
    }

    cart-drawer h2.cart-drawer__heading {
        font-size: 16px;
    }

    cart-drawer .cart-drawer__close {
        width: 22px;
        height: 22px;
    }

    cart-drawer .cart-drawer__close svg.icon-close {
        width: 7px;
        height: 7px;
    }

    .drawer__progress-bar {
        padding: 0 10px;
    }

    .drawer__progress-bar p {
        padding: 8px 10px;
        gap: 7px;
    }

    .drawer__progress-bar p span.svg-wrap {
        width: 20px;
        height: 11px;
    }

    .drawer__progress-bar p span.text-wrap {
        font-size: 12px;
    }

    cart-drawer cart-drawer-items {
        padding: 18px 10px 0;
    }

    cart-drawer .cart-drawer__items .cart-item {
        padding: 0 0 18px;
    }

    cart-drawer .cart-drawer__items .cart-item__media {
        width: 64px;
        margin-right: 9px;
    }

    .cart-item-name-price {
        gap: 5px;
        margin-bottom: 3px;
    }

    .cart-item-name-price .cart-item__name {
        font-size: 12px;
    }

    .cart-drawer__items .cart-item-name-price .cart-item__price-wrapper .final__price {
        font-size: 12px;
    }

    cart-drawer .cart-item__details .product-option span {
        font-size: 11px;
        line-height: 1;
    }

    .cart-drawer__items .cart-item__totals,
    .main-cart-items-wrapper .cart-item__totals {
        margin: 0;
    }

    cart-drawer .cart-drawer__items .cart-item__quantity .cart-item__quantity-wrapper {
        margin: 10px 0 0;
        gap: 5px;
    }

    cart-drawer .cart-item__quantity .quantity {
        width: 60px;
        height: 24px;
        border-radius: 2px;
    }

    cart-drawer .cart-item__quantity .quantity input.quantity__input {
        font-size: 12px;
    }

    cart-drawer .cart-item__quantity .quantity button.quantity__button svg.icon {
        width: 7px;
        height: 7px;
    }

    .cart-drawer__items .cart-item__error,
    .main-cart-items-wrapper .cart-item__error {
        margin-top: 0px;
    }

    cart-drawer .cart-item__quantity cart-remove-button {
        font-size: 10px;
        line-height: 1.25;
    }

    .drawer__related-product {
        margin: 0 10px 22px;
    }

    .related-product-header {
        padding: 8px 10px;
    }

    .related-product-header h3 {
        font-size: 14px;
    }

    .related-product-list {
        padding: 10px;
    }

    .related-product-item {
        gap: 10px;
    }

    .related-product-media {
        width: 70px;
    }

    .related-product-info {
        width: calc(100% - 70px - 10px);
    }

    .related-product-info a.title {
        font-size: 12px;
    }

    .related-variant-list {
        gap: 6px;
        margin-top: 4px;
    }

    .related-variant-item select {
        font-size: 11px;
    }

    .related-product-info .related-product-atc {
        gap: 5px;
    }

    .related-product-info .related-product-atc span.price {
        font-size: 13px;
    }

    .related-product-atc-btn {
        height: 30px;
        width: 65px;
        font-size: 10px;
        padding: 2px;
    }

    .drawer__footer {
        padding: 10px 10px 10px;
    }

    .cart-drawer__footer .totals-subtotal,
    .cart-drawer__footer .totals-discount,
    .cart-drawer__footer .totals {
        margin-top: 7px;
    }

    .totals-subtotal .totals-subtotal-label,
    .totals-discount .total-discount-label,
    .totals-subtotal .totals-subtotal-value,
    .totals-discount .total-discount-value {
        font-size: 13px;
    }

    .cart-drawer__footer h2.totals__total,
    .cart-drawer__footer p.totals__total-value {
        font-size: 14px;
    }

    .cart-drawer .cart-drawer__checkout-button {
        min-height: 40px;
        height: 40px;
        font-size: 15px !important;
    }

    .drawer__footer .cart__ctas {
        gap: 6px;
        margin-top: 8px;
    }

    .drawer__footer .cart__ctas small.tax-note,
    .drawer__footer .cart__ctas small.tax-note * {
        font-size: 10px;
    }

    .cart-drawer .cart-drawer__checkout-button {
        min-height: 34px;
        height: 34px;
        font-size: 14px !important;
        padding: 5px;
    }

    .cart__empty-text-wrapper .cart__empty-text {
        font-size: 16px;
        margin-bottom: 16px;
    }
}

@media(max-width:480px) {
    .cart-drawer-container {
        width: calc(100% - 10px);
    }
}