body.open-cart {
    overflow: hidden;
}
#cart-popup {
    display: block !important;
    position: fixed;
    top: 0;
	bottom: 0;
    right: -390px;
    width: 360px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    z-index: 999999;
    height: 100vh;
	height: 100dvh;
    transition: all 0.5s;
    visibility: hidden;
    border-radius: 15px 0px 0px 15px;
}
div#cart-popup-header .allclear-cart {
	margin-right: 0;
	margin-left: auto;
	color: #9a9a9a;
	text-decoration: none;
	cursor: pointer;
	display: flex;
	align-items: center;
}
#cart-popup-header .allclear-cart:hover {
	text-decoration: underline;
}
#cart-popup-header #allclear-cart svg {
    width: auto;
    height: 14px;
    margin-right: 4px;
    margin-top: -2px;
}
body:not(.logged-in) #cart-popup #update-saved-cart-btn {
    display: none !important;
}

body:not(.logged-in) #cart-popup #create-savecart-form {
    width: calc(100% - 5px);
}
.open-cart:before {
    content: "";
    position: fixed;
    top: 0;
	bottom: 0;
    z-index: 9999;
    background: rgba(0,0,0,.25);
    left: 0;
    width: 100%;
    height: 100vh;
	height: 100dvh;
	transition: all 0.5s;
}

.open-cart #cart-popup {
    right: 0;
    visibility: visible;
}

#cart-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    z-index: 3;
	column-gap: 12px;
}

#cart-popup-header #close-cart-popup {
    align-self: flex-end;
    cursor: pointer;
    display: inline-block;
    font-size: 0px;
    height: 25px;
    line-height: 1;
    margin: 0;
    position: relative;
    transition: .3s;
    width: 25px;
    border: none;
    background: transparent;
}
#cart-popup-header #close-cart-popup:after, 
#cart-popup-header #close-cart-popup:before {
    background: #69727d;
    border-radius: 1px;
    content: "";
    height: 3px;
    left: 0;
    margin-top: -1px;
    position: absolute;
    top: 50%;
    transition: .3s;
    width: 100%;
}
#cart-popup-header #close-cart-popup:before {
    transform: rotate(45deg);
}
#cart-popup-header #close-cart-popup:after {
    transform: rotate(-45deg);
}
#cart-popup #cart-popup-content {
    padding: 55px 0 120px;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
}
#cart-popup-content .cart-items {
    padding: 0;
    margin: 0;
    list-style: none;
    height: calc(100% - 40px);
    overflow-y: auto;
}
#cart-popup-content .cart-items .cart-item {
    list-style: none;
    margin: 0 0 15px 0;
    padding: 0 0 15px 0;
    border-bottom: 1px solid #d5d8dc;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#cart-popup-content .cart-items .cart-item:last-child {
    border-bottom: none;
    margin: 0;
}
#cart-popup-content .cart-items .cart-item img {
    width: 70px;
    height: 45px;
	object-fit: contain;
    margin-right: 15px;
    min-width: 70px;
}
#cart-popup-content .cart-items .cart-item .details {
    width: 100%;
}

#cart-popup-content .cart-items .cart-item .name {
    font-size: 14px;
    line-height: normal;
    display: flex;
    align-items: flex-start;
    margin: 0 0 10px 0;
    width: 100%;
    justify-content: space-between;
}
#cart-popup-content .cart-items .cart-item .name .roomscls {
    display: block;
    margin: 4px 0 0 0;
    color: #ddd;
}
#cart-popup-content .cart-items .cart-item .name button {
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    min-width: 25px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 5px;
    color: #000;
}
#cart-popup-content .cart-items .price {
    display: block;
    margin: 5px;
    font-weight: 700;
}
#cart-popup-content .price-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    gap: 10px;
}
#cart-popup-content .quantity-control {
    display: flex;
    align-items: center;
    margin: 0;
    border: 1px solid #707070;
    border-radius: 25px;
    width: 100%;
    max-width: 120px;
    padding: 4px 5px 4px 15px;
    line-height: normal;
    height: 35px;
}
/* Chrome, Safari, Edge, Opera */
.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.quantity-control input[type=number] {
  -moz-appearance: textfield;
}

#cart-popup-content .quantity-control button {
    border: none;
    background: transparent;
    padding: 3px;
    color: #000 !important;
}

#cart-popup-content .quantity-control .cartqty {
    width: 60px;
    text-align: center;
    border: none;
    appearance: none;
}

#cart-popup-content .cart-footer {
    border-top: 1px solid #d5d8dc;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3;
    margin: 0;
    display: block;
    width: 100%;
    padding: 0;
	background-color: #ffffff;
}

#cart-popup-content .cart-footer .cart-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    border-bottom: 1px solid #d5d8dc;
    padding: 10px 0;
}

#cart-popup-content .cart-footer .cart-subtotal span {
    font-weight: normal;
}

#cart-popup-content .button-group {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

#cart-popup-content .button-group .button {
    line-height: normal !important;
    display: inline-block !important;
    color: rgb(255, 255, 255);
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(43, 46, 52);
    border-image: initial;
    border-radius: 25px;
    background: rgb(43, 46, 52);
    margin: 0px;
    padding: 10px !important;
    transition: 0.5s;
    text-align: center !important;
    font-size: 14px !important;
    text-transform: capitalize;
    width: calc(50% - 5px);
}
#cart-popup-content .button-group a.button,
#cart-popup-content .button-group .button:hover {
    background: #82A0B9 !important;
    border-color: #82A0B9 !important;
}
#cart-popup-content .button-group a.button:hover {
    background: rgb(43, 46, 52) !important;
    border-color: rgb(43, 46, 52) !important;
}

.loading-spinner {
    position: absolute;
    width: 100%;
    text-align: center;
    z-index: 99;
    height: 100%;
    left: 0;
    top: 0;
    margin: 0;
    padding: 30px;
    background: rgb(255 255 255 / 57%);
}

.loading-spinner .spinner {
    margin: 0 auto;
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    z-index: 1;
}

@media screen and (max-width: 480px) {
    #cart-popup {
        width: 90%;
        max-width: 360px;
    }
}