.blinds-blinds-cart-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 9998; /* Just below the cart's z-index */
	display: none;
}

.blinds-blinds-cart-widget {
	position: fixed;
	top: 0;
	right: 0;
	width: 690px;
	max-width: 100%;
	height: 100vh;
	background: #fff;
	z-index: 9999;
	border-left: 8px solid #6a5d87;
	box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
	display: none;
	flex-direction: column;
}

/* Header Section */
.blinds-blinds-cart-header {
	position: sticky;
	top: 0;
	padding: 17px 27px 10px 27px;
	background: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.blinds-blinds-cart-widget .title-with-underline {
	display: flex;
	flex-direction: column;
}

.blinds-blinds-cart-header-col1 {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.blinds-blinds-cart-header-col2 {
	display: flex;
	gap: 1rem;
}

/* Header Icons */
.blinds-blinds-cart-icon-main {
	width: 87.999px;
	height: 87.999px;
}

.blinds-blinds-cart-icon.action-icon {
	cursor: pointer;
	transition: ease-in-out 0.2s;
}

.blinds-blinds-cart-icon.action-icon:hover {
	transform: scale(1.1);
}

.blinds-blinds-mobile-cart-icon-main {
	display: none;
}

.blinds-blinds-cart-header-col2 img {
	width: 60px;
	height: 60px;
}

.blinds-blinds-cart-action-icon:hover {
	fill: #333;
}

/* Header Titles */
.blinds-blinds-cart-titles {
	display: flex;
	flex-direction: column;
	gap: 0.5208vw;
}

.blinds-blinds-cart-main-title {
	display: flex;
	gap: 7px;
	color: #6a5d87;
	font-weight: 600;
	position: relative;
	text-align: right;
}

.blinds-blinds-cart-main-title h3 {
	position: relative;
	margin: 0;
	z-index: 2;
	font-size: 33px;
	text-align: right;
	font-weight: bold;
}

.blinds-blinds-cart-underline-svg {
	position: absolute;
	fill: #a995c4;
	z-index: 1;
	width: 178px;
	top: 25px;
}

.blinds-blinds-cart-subtitle {
	font-size: 22px;
	color: #161615;
	margin: 0;
}

.blinds-blinds-cart-count {
	color: #6a5d87;
	font-weight: bold;
}

.blinds-blinds-cart-title-mobile {
	display: none;
}

/* Content Section */
.blinds-blinds-cart-content {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	overflow-y: auto;
    padding: 25px 25px 25px 0px;
	gap: 20px;
	direction: ltr;
	flex: 1 1 auto;
	min-height: 0;
}

/* Cart Items */
.blinds-blinds-cart-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	background: #ffffff;
	padding: 10px;
	padding-left: 30px;
	box-shadow: 0 0px 10px #0000004d;
	position: relative;
	max-width: 94%;
}

.blinds-blinds-cart-item.blinds-direction-rtl {
	direction: rtl;
}

.blinds-blinds-cart-item-content {
	display: flex;
	align-items: stretch;
	gap: 12px;
	flex-grow: 1;
}

/* Item Close Button */
.blinds-blinds-cart-item-close {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	width: 33px;
	height: 33px;
	position: absolute;
	left: -16px;
	top: 50%;
	transform: translateY(-50%);
}
.blinds-blinds-cart-item-close:hover,
.blinds-blinds-cart-item-close:focus {
	background: none;
	outline: none;
}

.blinds-blinds-cart-item-close img:hover {
	transform: rotate(180deg);
}

.blinds-blinds-cart-item-close img {
	width: 100%;
	height: 100%;
	transition: ease-in-out 0.3s;
}

/* Item Image */
.blinds-blinds-cart-item-image {
	align-items: center;
	justify-content: center;
	width: 24%;
	height: 143px;
}

.blinds-blinds-cart-item-image img {
	object-fit: cover;
	height: 100%;
}

.blinds-blinds-cart-item-text {
	font-size: 18px;
	margin-top: -5px;
	padding-bottom: 25px;
	font-weight: 500;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.blinds-blinds-cart-item-text p {
	color: #6a5d87;
	margin: 0;
	font-weight: 600;
}

/* Item Price Section */
.blinds-blinds-cart-item-price {
	position: absolute;
	bottom: 5px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 16px;
	color: #666666;
}

.blinds-blinds-cart-price-details {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
}

.blinds-blinds-item-unit-price {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 5px;
	justify-content: flex-start;
}

.blinds-blinds-cart-secondary-details {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
}

.blinds-blinds-cart-sku {
	font-size: 18px;
	font-weight: 500;
	color: #161615;
}

.blinds-blinds-cart-sku-number {
	color: #6a5d87;
	font-weight: 500;
	font-size: 18px;
}

.blinds-blinds-cart-price {
	color: #6a5d87;
	font-weight: 500;
	font-size: 18px;
}

.blinds-blinds-cart-preprice-text {
	font-size: 18px;
	color: #161615;
	font-weight: 500;
}

/* Footer Section */
.blinds-blinds-cart-footer {
	position: sticky;
	bottom: 0;
	background: #f9f9f9;
	padding: 20px 30px;
	box-shadow: 0 -2px 6px #0000004d;
	flex-shrink: 0;
}

.blinds-blinds-cart-footer-row1 {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 10px;
}

.blinds-blinds-cart-footer-row-divider {
	width: 100%;
	height: 1px;
	background-color: #cccccc;
	margin-bottom: 15px;
}

.blinds-blinds-cart-footer-row2 {
	display: flex;
	gap: 1rem;
	font-size: 33px;
}

/* Footer Buttons */
.blinds-blinds-cart-button-primary,
.blinds-blinds-cart-button-secondary {
	padding: 10px;
	border-radius: 99px;
	cursor: pointer;
	font-weight: bold;
	font-size: 33px;
	transition: background-color 0.2s;
}

.blinds-blinds-cart-button-primary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	direction: rtl;
	border-color: white;
	background: linear-gradient(to top, #6a5d87, #816d9c);
	width: 65%;
	color: white;
}

.blinds-blinds-cart-button-primary:hover {
	background: linear-gradient(to top, #816d9c, #6a5d87);
}

.blinds-blinds-cart-total-amount {
	direction: ltr;
	display: inline-block;
}

.blinds-blinds-cart-button-secondary {
	border: 2px solid #6a5d87;
	color: #6a5d87;
	width: 35%;
}

.blinds-blinds-cart-button-secondary:focus {
	outline: none;
	background: none;
	color: #6a5d87;
}

.blinds-blinds-cart-button-secondary:hover {
	background: linear-gradient(to right, #816d9c, #4a3b6a);
	color: white;
}

.blinds-cart-quantity-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.blinds-cart-quantity-controls-text {
	font-size: 18px;
	font-weight: 500;
	color: #161615;
}

.blinds-cart-quantity-controls .blinds-order-summary-quantity {
	color: #6a5d87;
	font-weight: 500;
	font-size: 18px;
}

.blinds-cart-order-quantity-btn,
.blinds-cart-order-quantity-btn:focus {
	width: 24px;
	height: 24px;
	border: none;
	color: #6a5d87;
	background: #f3f3f3;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
	padding: 0;
	font-weight: 500;
}

.blinds-cart-order-quantity-btn:hover {
	background: #6a5d87;
	color: #f3f3f3;
}

.blinds-blinds-cart-coupon-title-paragraph-mobile {
	display: none;
}

.blinds-blinds-cart-discount-text-mobile {
	display: none;
}

.blinds-blinds-cart-discount-text-desktop {
	display: inline;
}

/*Coupon application*/
.blinds-blinds-cart-discount-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.blinds-blinds-cart-apply-coupon svg {
	width: 100%;
	height: 100%;
	display: block;
	margin: 0 auto;
}

.blinds-blinds-cart-apply-coupon-disabled {
	pointer-events: none;
}

.blinds-blinds-cart-coupon-header {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	gap: 5px;
}

.blinds-blinds-cart-coupon-header .blinds-blinds-cart-remove-coupon {
	color: #4266ae;
	font-size: 20px;
	font-weight: bold;
	background: none;
	text-decoration: none;
	padding: 0;
	border: none;
	background: none;
	outline: none;
}

.blinds-blinds-cart-remove-coupon:hover,
.blinds-blinds-cart-remove-coupon:focus {
	background: none;
	outline: none;
}

.blinds-blinds-cart-discount-amount.error {
	color: #9e0000;
	font-size: 20px;
}

/* Scrollbar Styles */
.blinds-blinds-cart-widget ::-webkit-scrollbar {
	width: 10px;
}

.blinds-blinds-cart-widget ::-webkit-scrollbar-thumb {
	background: #6a5d87;
	border-radius: 99px;
	background-clip: padding-box;
}

.blinds-blinds-cart-widget ::-webkit-scrollbar-thumb:hover {
	border: 0;
}

.blinds-blinds-cart-widget ::-webkit-scrollbar-track {
	background: #f3f3f3;
}

/* Coupon Section */
.blinds-blinds-cart-coupon-title {
	width: 35%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	direction: rtl;
}

.blinds-blinds-cart-coupon-title p {
	margin: 0;
	margin-bottom: -5px;
	font-size: 26px;
	font-weight: bold;
	color: #6a5d87;
}

.blinds-blinds-cart-coupon-title span {
	font-size: 20px;
	color: #161615;
}

.blinds-blinds-cart-coupon-input-wrapper {
	position: relative;
	width: 65%;
	height: 44px;
	border: 1px solid #747474;
	border-radius: 99px;
	display: flex;
	align-items: center;
	padding: 28px 5px;
	direction: rtl;
}

.blinds-blinds-cart-coupon-input-wrapper:focus-within {
	border-color: #4266ae !important;
	box-shadow: 0 0 10px rgba(66, 107, 174, 0.61);
}

.blinds-blinds-cart-coupon-input-wrapper .blinds-blinds-cart-coupon-input {
	flex: 1;
	height: 100%;
	border: none !important;
	outline: none;
	background: transparent;
	padding: 25px 20px;
	font-size: 18px;
	color: #161615;
	direction: rtl;
}

.blinds-blinds-cart-coupon-input::placeholder {
	color: #666666;
}

.blinds-blinds-cart-coupon-input:focus {
	outline: none;
}

.blinds-blinds-cart-apply-coupon {
	border-radius: 99px;
	color: white;
	height: 44px;
	width: 104px;
	font-size: 21px;
	font-weight: bold;
	background: linear-gradient(to bottom, #426bae, #4489f5);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s;
}

.blinds-blinds-cart-apply-coupon:hover {
	background: linear-gradient(to top, #426bae, #4489f5);
}

.blinds-blinds-cart-apply-coupon svg {
	width: 30px;
	height: 30px;
	fill: white;
}

.blinds-blinds-cart-item-info {
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 16px;
}

/* Add minimum spacing between the divider and the text */
.blinds-blinds-cart-item-details span {
    display: inline;
}

.blinds-blinds-cart-item-details{
	font-weight: 500;
	padding-left: 40px;
}

.blinds-blinds-cart-item-details span:not(:first-of-type) {
    margin-right: 4px;
}

.blinds-blinds-cart-mobile-count {
	display: none;
}

.blinds-cart-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.blinds-cart-loading-overlay.active {
    display: flex;
}

.blinds-add-to-cart-loading-svg {
    display: inline-block;
    vertical-align: middle;
	width: 40px;
	height: 40px;
}

.blinds-checkout-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@keyframes zoomIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.coupon-success-svg {
    animation: zoomIn 200ms ease-out forwards;
}

@keyframes shrinkOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes growIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.shrink-animation {
    animation: shrinkOut 200ms ease-in forwards;
}

.grow-animation {
    animation: growIn 200ms ease-out forwards;
}

@media screen and (min-width: 768px) {
	.blinds-blinds-cart-item-info span.blinds-blinds-cart-item-details span:nth-of-type(3) + span {
		display: inline-block;
		margin: 0;
	}
}

@media screen and (max-width: 767px) {

	.blinds-add-to-cart-loading-svg {
		width: 30px;
		height: 30px;
	}

	.blinds-blinds-cart-item-info{
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

	.blinds-blinds-cart-content {
		padding: 9px;
		margin: 0;
		gap: 15px;
	}

	/* Widget Container */
	.blinds-blinds-cart-widget {
		width: 100vw;
		border: 0px;
	}

	.blinds-blinds-cart-widget ::-webkit-scrollbar {
		width: 8px;
	}

	/* Header Adjustments */
	.blinds-blinds-cart-header {
		padding: 10px;
		box-shadow: 0px 1px 12px #00000047;
	}

	.blinds-blinds-cart-main-title h3 {
		font-size: 22px;
	}

	.blinds-blinds-cart-underline-svg {
		width: 152px;
		margin-top: -3px;
		z-index: 1;
	}

	.blinds-blinds-mobile-cart-icon-main {
		display: block;
		width: 35px;
		height: 35px;
	}

	.blinds-blinds-cart-icon-main {
		display: none;
	}

	.blinds-blinds-cart-icon.action-icon {
		width: 36px;
		height: 36px;
	}

	.blinds-blinds-cart-icon.action-icon svg {
		width: 100%;
		height: 100%;
	}

	.blinds-blinds-cart-header-col2 {
		gap: 4px;
	}

	/* Hide Desktop Title, Show Mobile Title */
	.blinds-blinds-cart-title-desktop {
		display: none;
	}

	.blinds-blinds-cart-title-mobile {
		display: inline;
		font-size: 28px;
		z-index: 2;
	}

	.blinds-blinds-cart-subtitle {
		display: none;
	}

	/* Cart Items Adjustments */
	.blinds-blinds-cart-item {
		padding: 10px;
		width: 100%;
		max-width: 100%;
	}

	.blinds-blinds-cart-item-close {
		width: 27px;
		height: 27px;
		left: 5px;
		top: 20px;
	}

	.blinds-blinds-cart-item-text {
		margin-bottom: 8px;
		gap: 0px;
	}

	.blinds-blinds-cart-item-text p {
		padding-left: 25px;
	}

	.blinds-blinds-cart-item-price {
		position: relative;
		font-size: 14px;
		flex-wrap: wrap;
	}

	.blinds-blinds-cart-button-primary,
	.blinds-blinds-cart-button-secondary {
		font-size: 20px;
		padding: 4px;
		font-weight: 600;
	}

	.blinds-blinds-cart-coupon-input-wrapper {
		padding: 2px;
	}

	.blinds-blinds-cart-apply-coupon {
		height: 37px;
		font-size: 18px;
		width: 78px;
	}

	.blinds-blinds-cart-coupon-input-wrapper .blinds-blinds-cart-coupon-input {
		font-size: 16px;
	}

	.blinds-blinds-cart-price-details {
		width: 100%;
		gap: 0px;
		flex-direction: column;
		align-items: flex-start;
		margin-top: 2px;
	}

	.blinds-blinds-cart-secondary-details {
		width: 100%;
		flex-direction: row-reverse;
		margin-top: 7px;
	}

	.blinds-blinds-cart-coupon-title p {
		font-size: 18px;
	}

	.blinds-blinds-cart-coupon-title span {
		font-size: 16px;
	}

	.blinds-blinds-cart-footer {
		padding: 5px;
		padding-top: 0px;
	}

	.blinds-blinds-cart-footer-row1 {
		margin-bottom: 0px;
		padding: 5px;
	}

	.blinds-blinds-cart-footer-row-divider {
		margin-bottom: 5px;
	}

	.blinds-cart-quantity-controls-text {
		display: none;
	}

	.blinds-blinds-cart-discount-amount.error {
		font-size: 16px;
	}

	.blinds-blinds-cart-coupon-title-paragraph-mobile {
		display: block;
	}

	.blinds-blinds-cart-coupon-title-paragraph-desktop {
		display: none;
	}

	.blinds-blinds-cart-discount-text-desktop {
		display: none;
	}

	.blinds-blinds-cart-discount-text-mobile {
		display: inline;
	}

	.blinds-blinds-cart-remove-coupon {
		font-size: 16px !important;
	}

	.blinds-blinds-cart-item-image {
		height: 118px;
		width: 85px;
	}

	.blinds-blinds-cart-sku-number {
		font-size: 16px;
	}

	.blinds-cart-quantity-controls .blinds-order-summary-quantity {
		font-size: 16px;
	}

	.blinds-cart-order-quantity-btn, .blinds-cart-order-quantity-btn:hover {
		color: #6a5d87;
		background-color: #f3f3f3;
		width: 20px;
		height: 20px;
	}

	.blinds-blinds-cart-footer-row2 {
		padding: 0px 5px;
		gap: 10px;
		margin-bottom: 4px;
	}

	.blinds-blinds-cart-coupon-input-wrapper .blinds-blinds-cart-coupon-input {
		padding: 5px 12px;
	}

	.blinds-blinds-cart-header-col1 {
		gap: 10px;
	}

	.blinds-blinds-cart-mobile-count {
		position: absolute;
		top: 6px;
		right: 6px;
		width: 20px;
		height: 20px;
		background: linear-gradient(135deg, #e82f60 0%, #a8368f 100%);
		color: #ffffff;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 14px;
		font-weight: 500;
		padding: 0 4px;
	}

	.blinds-blinds-item-quantity{
		margin-bottom: -5px;
	}

	.blinds-blinds-item-unit-price{
		margin-bottom: -8px;
	}

	.desktop-break {
        display: none;
    }
}
