/* Empty state in the existing ZAIDIEU slide-out cart. */
#zd-cart-drawer-content .zdce-empty-cart {
	box-sizing: border-box;
	min-height: 300px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 26px 20px 32px;
	text-align: center;
}

#zd-cart-drawer-content .zdce-empty-cart__icon {
	display: block;
	width: min(230px, 68vw);
	height: auto;
	max-height: 225px;
	object-fit: contain;
	margin: 0 auto 20px;
	filter: drop-shadow(0 10px 13px rgba(22, 18, 25, .12));
}

#zd-cart-drawer-content .zdce-empty-cart__title {
	margin: 0;
	color: #171417;
	font-size: clamp(20px, 5vw, 24px);
	font-weight: 700;
	line-height: 1.3;
}

#zd-cart-drawer-content .zdce-empty-cart__description {
	margin: 8px 0 22px;
	color: #777278;
	font-size: 16px;
	line-height: 1.45;
}

#zd-cart-drawer-content .zdce-empty-cart__shop {
	min-height: 54px;
	min-width: 170px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	border: 0;
	border-radius: 14px;
	background: #ed2a9b;
	color: #fff !important;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color .18s ease, transform .18s ease;
}

#zd-cart-drawer-content .zdce-empty-cart__shop:hover,
#zd-cart-drawer-content .zdce-empty-cart__shop:focus-visible {
	background: #d91b88;
	color: #fff !important;
	transform: translateY(-1px);
}

/* Larger, recognizable remove targets in the drawer; leave Woo's remove link intact. */
#zd-cart-drawer-content a.remove_from_cart_button,
#zd-cart-drawer-content a.remove:not(.remove-coupon),
#zd-cart-drawer-content button.remove_from_cart_button,
#zd-cart-drawer-content button.remove:not(.remove-coupon) {
	box-sizing: border-box;
	width: 44px !important;
	min-width: 44px !important;
	height: 44px !important;
	min-height: 44px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	border: 1px solid #e8e4e7 !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: #3c343a !important;
	font-size: 0 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	opacity: 1 !important;
}

#zd-cart-drawer-content a.remove_from_cart_button svg,
#zd-cart-drawer-content a.remove:not(.remove-coupon) svg,
#zd-cart-drawer-content button.remove_from_cart_button svg,
#zd-cart-drawer-content button.remove:not(.remove-coupon) svg {
	width: 20px;
	height: 20px;
	display: block !important;
	fill: currentColor;
	stroke: none;
	visibility: visible !important;
	opacity: 1 !important;
}

#zd-cart-drawer-content a.remove_from_cart_button:hover,
#zd-cart-drawer-content a.remove:not(.remove-coupon):hover,
#zd-cart-drawer-content button.remove_from_cart_button:hover,
#zd-cart-drawer-content button.remove:not(.remove-coupon):hover {
	border-color: #ed2a9b !important;
	color: #ed2a9b !important;
}

/* Coupon entry is deliberately scoped to the slide-out cart only. */
#zd-cart-drawer-content .zdce-cart-coupon {
	box-sizing: border-box;
	width: 100%;
	margin: 14px 0 18px;
	padding: 16px;
	border: 1px solid #eee8ed;
	border-radius: 14px;
	background: #fff;
}

#zd-cart-drawer-content .zdce-cart-coupon__title {
	display: block;
	margin: 0 0 10px;
	color: #211d21;
	font-size: 15px;
	font-weight: 700;
}

#zd-cart-drawer-content .zdce-cart-coupon__row {
	display: flex;
	gap: 8px;
}

#zd-cart-drawer-content .zdce-cart-coupon input {
	box-sizing: border-box;
	flex: 1 1 auto;
	width: 1%;
	min-width: 0;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #d9d4d8;
	border-radius: 10px;
	background: #fff;
	color: #211d21;
	font-size: 15px;
}

#zd-cart-drawer-content .zdce-cart-coupon input:focus {
	border-color: #ed2a9b;
	outline: 2px solid rgba(237, 42, 155, .16);
	outline-offset: 1px;
}

#zd-cart-drawer-content .zdce-cart-coupon button {
	flex: 0 0 auto;
	min-width: 78px;
	min-height: 46px;
	padding: 10px 14px;
	border: 0;
	border-radius: 10px;
	background: #ed2a9b;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

#zd-cart-drawer-content .zdce-cart-coupon button:hover,
#zd-cart-drawer-content .zdce-cart-coupon button:focus-visible {
	background: #d91b88;
}

#zd-cart-drawer-content .zdce-cart-coupon button:disabled {
	cursor: wait;
	opacity: .68;
}

#zd-cart-drawer-content .zdce-cart-coupon__message {
	margin: 9px 0 0;
	font-size: 13px;
	line-height: 1.4;
}

#zd-cart-drawer-content .zdce-cart-coupon__message[hidden] {
	display: none;
}

#zd-cart-drawer-content .zdce-cart-coupon__message.is-error {
	color: #b42318;
}

#zd-cart-drawer-content .zdce-cart-coupon__message.is-success {
	color: #18794e;
}

/* Replace only WooCommerce's sad-face icon on the full Basket empty state. */
.wp-block-woocommerce-empty-cart-block .zdce-basket-empty-icon {
	display: block;
	width: min(190px, 48vw);
	height: auto;
	max-height: 190px;
	object-fit: contain;
	margin: 0 auto 18px;
	filter: drop-shadow(0 9px 12px rgba(22, 18, 25, .12));
}

.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
	display: none !important;
	content: none !important;
	background: none !important;
}

/* Style WooCommerce's Browse store link as the branded empty-cart CTA. */
.wp-block-woocommerce-empty-cart-block .zdce-basket-empty-cta {
	margin: 22px auto 34px !important;
	text-align: center !important;
}

.wp-block-woocommerce-empty-cart-block .zdce-empty-cart__shop {
	box-sizing: border-box;
	min-height: 54px;
	min-width: 170px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	border: 0 !important;
	border-radius: 14px;
	background: #ed2a9b !important;
	color: #fff !important;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color .18s ease, transform .18s ease;
}

.wp-block-woocommerce-empty-cart-block .zdce-empty-cart__shop:hover,
.wp-block-woocommerce-empty-cart-block .zdce-empty-cart__shop:focus-visible {
	background: #d91b88 !important;
	color: #fff !important;
	transform: translateY(-1px);
}

/* Woo adds this three-dot separator before its "New in store" products. */
.wp-block-woocommerce-empty-cart-block hr.wp-block-separator.is-style-dots {
	display: none !important;
}

@media (max-width: 600px) {
	#zd-cart-drawer-content .zdce-empty-cart {
		min-height: 270px;
		padding: 22px 18px 28px;
	}

	#zd-cart-drawer-content .zdce-empty-cart__icon {
		width: min(205px, 65vw);
		max-height: 195px;
	}

	#zd-cart-drawer-content .zdce-cart-coupon {
		padding: 13px;
	}

	.wp-block-woocommerce-empty-cart-block .zdce-basket-empty-icon {
		width: min(165px, 46vw);
		max-height: 165px;
	}

	.wp-block-woocommerce-empty-cart-block .zdce-empty-cart__shop {
		min-height: 50px;
		min-width: 160px;
		font-size: 16px;
	}
}
