/* Cart List */
.cart-modal {
	display: flex;
	position: fixed;
	right: -100%;
	top: 80px;
	width: 400px;
	overflow-y: auto;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	z-index: 1002;
	transition: right 0.3s ease-in-out;
	height: calc(100% - 90px);
	flex-direction: column;
	align-items: center;
}
/* .cart-modal {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1002;
    transition: top 0.3s ease-in-out;
} */

.cart-list {
	max-height: calc(100% - 180px);
	overflow-y: auto;
	margin-top: 20px;
	margin-bottom: 20px;
	width: calc(100% - 40px);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cart-modal.show {
    right: 10px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.modal-nav-bar-left {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: white;
}

span.modal-window-title {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    background: var(--themed-gradient);
    box-shadow: 1px 1px 5px 1px rgba(128, 128, 128, 0.2);
}

/* Cart Item */
.cart-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    justify-content: space-between;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    margin-right: 10px;
    object-fit: cover;
}

.cart-item-details-container {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    font-family: 'Geologica Light';
}

.cart-item p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

/* Remove Cart Item Button */
.cart-list-item-remove {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-list-item-remove i {
    font-size: 20px;
    color: red;
}

/* Cart Button */
.cart-button {
    border: none;
    background-color: transparent;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 1000;
}

#cart-button.visible {
    display: block;
}

.checkout-button,
.continue-shopping {
	padding: 10px;
	background: var(--themed-gradient);
	color: #fff;
	border-radius: 15px;
	cursor: pointer;
	margin-top: 10px;
	display: flex;
	justify-content: center;
	text-decoration: none;
	position: absolute;
	bottom: 10px;
	width: calc(100% - 20px);
	margin-left: 10px;
	border: none;
	font-size: 17px;
	margin: 0;
}

.continue-shopping {
    background-color: white;
    bottom: 65px;
}

.continue-shopping:hover {
    color: white;
    background-color: black;
    border: 1px solid black;
}
/* position: fixed; */
/* opacity: 1; */
/* width: 100vw;
height: 100vh;
z-index: 999;
display: flex;
justify-content: center;
align-items: center; */


.mobile-cart {
    display: none;
}



.cl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: block;
    overflow: hidden;
}

.cl-modal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 80%;
    max-width: 600px;
    max-height: 90%;
    overflow-y: auto;
    transition: height 0.3s ease, width 0.3s ease;
}

.cl-modal-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.cl-modalmanager-navbar-title {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    background-color: white;
    box-shadow: 1px 1px 5px 1px rgba(128, 128, 128, 0.2);
}

.cl-modal-navbar-left {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #000000;
}


.cl-modal-window-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: -webkit-fill-available;
    margin: 20px;
}

#cl-stripe-form {
    width: 100%;
}

#cl-stripe-paymentsubmit {
    width: 100%;
    height: 45px;
    font-size: 17px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    background-color: black;
    color: white;
    border: 1px solid black;
    transition: background-color 0.3s, color 0.3s;
}


#cl-stripe-paymentsubmit:hover {
    background-color: white;
    color: black;
}



@media (max-width: 1000px) {
    .desktop-cart {
        display: none;
    }
    
    .mobile-cart {
        display: unset;
    }

    .cart-modal {
        height: calc(100% - 200px);
        width: 100%;
        left: 0;
        top: unset;
        right: unset;
        bottom: -100%;
        border-radius: 20px 20px 0 0;
        transition: bottom 0.3s ease-in-out;
    }

    .cart-modal.show {
        bottom: 0;
    }

    .checkout-button {
        bottom: 20px;
    }

    .continue-shopping {
        bottom: 75px;
    }
}

@media (max-width: 768px) {
    .cl-modal-window {
        width: 100%;
        height: 100vh;
        max-height: unset;
        border-radius: 0;
    }
}


