/* Mini Cart Drawer Layout & Space-Optimized Styling */
body.cart-open .uwy.userway_p5 {
    z-index: 2 !important;
}
.mini-cart-drawer {
	position: fixed;
	top: 0;
	right: -500px;
	width: 498px;
	max-width: 100%;
	height: 100vh;
	height: 100dvh;
	background: var(--white-color);
	z-index: 9999;
	transition: right 0.3s ease;
	overflow: hidden;
	padding: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

body.cart-open .mini-cart-drawer {
	right: 0;
}

body.admin-bar .mini-cart-drawer {
	top: 32px;
	height: calc(100vh - 32px);
	height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .mini-cart-drawer {
		top: 46px;
		height: calc(100vh - 46px);
		height: calc(100dvh - 46px);
	}
}

@media screen and (max-width: 600px) {
	body.admin-bar .mini-cart-drawer {
		top: 0;
		height: 100vh;
		height: 100dvh;
	}
}

body.cart-open .cart-overlay {
	opacity: 1;
	visibility: visible;
}

body.cart-open {
	overflow: hidden;
}

.mini-cart-drawer .widget_shopping_cart_content {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	padding-top: 0;
	box-sizing: border-box;
	overflow: hidden;
}

/* Header Alignment: Title & Close on Same Line */
.coupon-progress-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 48px 10px 20px;
	background: #fbaf6b59;
	box-sizing: border-box;
}
.close-cart {
	position: absolute;
	top: 10px;
	right: 18px;
	width: 20px;
	height: 20px;
	font-size: 0px;
	line-height: 1;
	cursor: pointer;
	z-index: 10;
	background: transparent;
	border: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

span.close-cart:before {
	content: '';
	height: 15px;
	width: 15px;
	right: 0;
	border: 0px;
	position: absolute;
	display: flex !important;
	background: url(../images/cross-theme-clr.svg);
	background-repeat: no-repeat;
	background-size: 100%;
	filter: brightness(0);
	transition: all 0.3s;
}

.close-cart:hover:before {
	filter: unset;
}

/* Scrollable Products & Info Body */
.mini-cart-drawer .mini-cart-body {
	flex: 1 1 auto;
	overflow-y: auto;
	min-height: 0;
	overscroll-behavior: contain;
	padding-bottom: 8px;
}

/* Product Item List */
ul.woocommerce-mini-cart.cart_list {
	padding: 0 20px;
	margin: 0;
	list-style: none;
}

.woocommerce-mini-cart.cart_list .mini_cart_item {
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	position: relative;
	padding-right: 24px;
	display: flex;
	align-items: center;
}

.woocommerce-mini-cart.cart_list .mini_cart_item:last-child {
	border-bottom: unset;
}

.woocommerce-mini-cart.cart_list a.mini-cart-product {
	display: flex;
	align-items: center;
	width: 100%;
	text-decoration: none;
}

.woocommerce-mini-cart.cart_list .mini-cart-product-image {
	width: 56px;
	height: 70px;
	aspect-ratio: 4 / 5;
	position: relative;
	border-radius: 0;
	overflow: hidden;
	background: #f7f7f7;
	flex-shrink: 0;
}

.woocommerce-mini-cart.cart_list .mini-cart-product-image img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	filter: unset;
	display: block;
}

.woocommerce-mini-cart.cart_list span.ptn-free-label {
	position: absolute;
	left: 0;
	bottom: 0;
	font-size: 10px;
	color: var(--black-color);
	background: var(--theme-color);
	width: 100%;
	text-align: center;
	font-family: var(--heading-font);
	font-weight: 600;
	padding: 1px 0;
	line-height: 13px;
}

.woocommerce-mini-cart.cart_list .mini_cart_item .mini-cart-product-title {
	padding-left: 12px;
	width: calc(100% - 62px);
}

.woocommerce-mini-cart.cart_list .mini_cart_item .mini-cart-product-name {
	line-height: 16px;
	margin-bottom: 2px;
	font-size: 13px;
	font-weight: 500;
	color: var(--black-color);
	transition: color 0.3s;
}

.woocommerce-mini-cart.cart_list .mini_cart_item .mini-cart-product-name:hover {
	color: var(--theme-color);
}

.woocommerce .woocommerce-mini-cart.cart_list li dl,
.woocommerce .woocommerce-mini-cart.product_list_widget li dl {
	padding-left: 0;
	border: 0;
	margin: 0;
}

.woocommerce-mini-cart.cart_list dd.variation-custom {
	margin-left: 0;
	margin-bottom: 2px;
}

.woocommerce-mini-cart.cart_list dd.variation-custom p {
	color: #777;
	font-size: 11px;
	line-height: 14px;
	font-family: var(--body-font);
	font-weight: 500;
	margin: 0;
}

.mini_cart_item span.woocommerce-Price-amount.amount {
	font-size: 15px;
	color: var(--black-color);
	line-height: 19px;
	display: inline-block;
	font-family: var(--heading-font);
	font-weight: 600;
}

.woocommerce-mini-cart.cart_list .ptn-free-item-price-wrapper {
	column-gap: 8px;
	display: flex;
	align-items: center;
}

.mini_cart_item span.ptn-old-price span.woocommerce-Price-amount.amount {
	color: #888;
	text-decoration: line-through;
	font-size: 13px;
}

/* Remove / Delete button */
body .woocommerce-mini-cart.cart_list .remove_from_cart_button {
	height: 20px;
	width: 20px;
	right: 0;
	border: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0;
	display: flex !important;
	background: url(../images/delete-icon.svg) no-repeat center center;
	background-size: 15px 15px;
	opacity: 0.6;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

body .woocommerce-mini-cart.cart_list .remove_from_cart_button:hover {
	opacity: 1;
	filter: brightness(0);
	transform: translateY(-50%) scale(1.15);
}

body.woocommerce-cart .woocommerce-mini-cart.cart_list .remove_from_cart_button,
body.woocommerce-checkout .woocommerce-mini-cart.cart_list .remove_from_cart_button {
	display: none !important;
}

/* Compact Trust Badges */
.mini-cart-drawer .info-block {
	background: #F8F5EE;
	margin: 8px 20px 2px;
	padding: 8px 12px;
	border-radius: 4px;
}

.mini-cart-drawer .info-block ul {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6px 10px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.mini-cart-drawer .info-block ul li {
	font-size: 11px;
	color: #444;
	font-family: var(--body-font);
	line-height: 15px;
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
}

.mini-cart-drawer .info-block ul li svg {
	flex-shrink: 0;
	stroke: #222;
	width: 13px;
	height: 13px;
}

/* Sticky Payment & Checkout Footer */
.mini-cart-drawer .payment-block {
	flex-shrink: 0;
	margin: 0;
	padding: 12px 20px 14px;
	border-top: 1px solid #e0e0e0;
	background: var(--white-color);
	box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.04);
}

p.woocommerce-mini-cart__total.total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
	column-gap: 8px;
}

p.woocommerce-mini-cart__total.total .subtotal-text {
	font-size: 13px;
	font-weight: 600;
	color: var(--black-color);
}

span.ptn-free-item-subtotal-wrapper,
p.woocommerce-mini-cart__total.total span.woocommerce-Price-amount.amount {
	font-size: 15px;
	line-height: 20px;
	font-weight: 600;
	display: flex;
	column-gap: 8px;
	align-items: center;
}

span.ptn-free-item-subtotal-wrapper span.ptn-old-price {
	color: #888;
	text-decoration: line-through;
	font-size: 13px;
}

.minicart-trust-note {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: #666;
	line-height: 15px;
	font-weight: 500;
	margin: 0 0 10px;
}

.minicart-trust-note svg {
	flex-shrink: 0;
	stroke: #555;
	width: 12px;
	height: 12px;
	margin-top: -1px;
}

p.woocommerce-mini-cart__buttons.buttons {
	display: flex;
	margin: 0;
}

a.button.checkout.wc-forward {
	color: var(--white-color);
	font-size: 14px;
	line-height: 18px;
	font-weight: 600;
	background: var(--black-color);
	padding: 10px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	overflow: hidden;
	width: 100%;
	z-index: 1;
	border-radius: 0;
	text-decoration: none;
	box-sizing: border-box;
}

a.button.checkout.wc-forward .checkout-btn-text {
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 13px;
	font-weight: 600;
	color: var(--white-color);
	transition: color 0.3s;
}

a.button.checkout.wc-forward .checkout-btn-badges {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

a.button.checkout.wc-forward .checkout-btn-badges img {
	height: 26px;
	width: auto;
	display: block;
}

a.button.checkout.wc-forward:before {
	transition-duration: 0.8s !important;
	position: absolute;
	width: 200%;
	height: 200%;
	content: "";
	top: -200%;
	left: 50%;
	transform: translateX(-50%);
	border-radius: 50%;
	z-index: -1;
	background-color: #FBAF6B;
	will-change: transform, top;
}

a.button.checkout.wc-forward:hover {
	color: var(--black-color);
}

a.button.checkout.wc-forward:hover .checkout-btn-text {
	color: var(--black-color);
}

a.button.checkout.wc-forward:hover:before {
	top: -40%;
}

/* Empty Cart State */
.woocommerce-mini-cart__empty-container {
	padding: 40px 20px 30px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	box-sizing: border-box;
}

.woocommerce-mini-cart__empty-container .empty-cart-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #F8F5EE;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	color: #888;
}

.woocommerce-mini-cart__empty-container .empty-cart-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--black-color);
	margin-bottom: 6px;
	line-height: 24px;
	font-family: var(--heading-font);
}

.woocommerce-mini-cart__empty-container .empty-cart-desc {
	font-size: 13px;
	color: #777;
	margin-bottom: 18px;
	max-width: 260px;
	line-height: 19px;
}

.woocommerce-mini-cart__empty-container .empty-cart-btn, .woocommerce .woocommerce-mini-cart__empty-container .empty-cart-btn {
	background: var(--black-color);
	color: var(--white-color);
	padding: 11px 24px;
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-block;
	text-decoration: none;
	font-family: var(--heading-font);
}

.woocommerce-mini-cart__empty-container .empty-cart-btn:hover, .woocommerce .woocommerce-mini-cart__empty-container .empty-cart-btn:hover {
	background: var(--theme-color);
	color: var(--black-color);
}

p.woocommerce-mini-cart__empty-message {
	padding: 16px 20px;
	font-size: 16px;
	line-height: 24px;
	font-weight: 500;
	text-align: center;
}

/* Responsive Overrides */
@media screen and (max-width: 767px) {
	.mini-cart-drawer {
		width: 100%;
		max-width: 500px;
	}
	.mini-cart-drawer .widget_shopping_cart_content {
		padding-top: 0;
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
	}
	.mini-cart-drawer .coupon-progress-container {
		flex-shrink: 0;
	}
	.mini-cart-drawer .mini-cart-body {
		flex: 0 0 auto;
		overflow-y: visible;
		min-height: auto;
	}
	.mini-cart-drawer .payment-block {
		position: sticky;
		bottom: 0;
		margin-top: auto;
		z-index: 10;
		flex-shrink: 0;
		padding: 8px 16px 12px;
		background: var(--white-color);
		box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06);
	}
	.coupon-progress-title {
		padding: 10px 42px 10px 16px;
	}
	.close-cart {
		top: 9px;
		right: 16px;
	}
	ul.woocommerce-mini-cart.cart_list {
		padding: 0 16px;
	}
	.woocommerce-mini-cart.cart_list .mini_cart_item {
		padding-right: 56px;
	}
	body .woocommerce-mini-cart.cart_list .remove_from_cart_button {
		right: 32px;
	}
	.mini-cart-drawer .info-block {
		margin: 6px 16px 2px;
		padding: 6px 10px;
	}
}

@media screen and (max-width: 479px) {
	.mini-cart-drawer {
		width: 100%;
	}
	.close-cart {
        top: 12px;
        width: 15px;
        height: 15px;
    }
	.woocommerce-mini-cart.cart_list .mini_cart_item {
		padding-right: 52px;
	}
	body .woocommerce-mini-cart.cart_list .remove_from_cart_button {
		right: 30px;
	}
	.woocommerce-mini-cart.cart_list .mini-cart-product-image {
		width: 48px;
		height: 60px;
		aspect-ratio: 4 / 5;
	}
	.woocommerce-mini-cart.cart_list .mini_cart_item .mini-cart-product-title {
		width: calc(100% - 48px);
		padding-left: 10px;
	}
	.mini_cart_item span.woocommerce-Price-amount.amount {
		font-size: 13px;
	}
}

/* Add to Cart Button Loading State & Double-Click Prevention */
.woocommerce .products .product .add_to_cart_button.loading,
.woocommerce a.button.loading,
.woocommerce button.button.loading,
a.ajax_add_to_cart.loading,
button.ajax_add_to_cart.loading,
.single_add_to_cart_button.loading {
	cursor: wait !important;
	pointer-events: none !important;
}
