/* Dental Express — TI WooCommerce Wishlist button restyle (single product page) */

body.single-product .tinv-wraper.tinvwl-woocommerce_after_add_to_cart_button {
	width: 100%;
	margin: 10px 0 0;
}

body.single-product .tinvwl_add_to_wishlist_button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: 100% !important;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	background: #fff !important;
	border: 1px solid #f6d3d4 !important;
	border-bottom: 2px solid #d71920 !important;
	border-radius: 8px !important;
	color: #d71920 !important;
	font-size: 13px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.single-product .tinvwl_add_to_wishlist_button:hover {
	background: linear-gradient(180deg, #d71920 0%, #b51218 100%) !important;
	border-color: #b51218 !important;
	color: #fff !important;
	box-shadow: 0 10px 20px rgba(215, 25, 32, .24) !important;
	transform: translateY(-1px);
}

body.single-product .tinvwl_add_to_wishlist_button.tinvwl-product-already-on-wishlist {
	background: #fff5f5 !important;
	border-color: #f6d3d4 !important;
	color: #d71920 !important;
}

body.single-product .tinvwl_add_to_wishlist_button::before {
	font-size: 16px !important;
	line-height: 1 !important;
}

/* ---- Quick View modal — compact icon button next to "افزودن به سبد خرید" ---- */
.dx-qv-wishlist {
	position: relative;
	flex: 0 0 auto;
}

/* Icon-only button, so a hover tooltip explains what it does — reuses the
   `aria-label` the plugin already renders on the button, no markup needed. */
.dx-qv-wishlist .tinvwl_add_to_wishlist_button::after {
	content: attr(aria-label);
	position: absolute;
	bottom: 100%;
	right: 50%;
	transform: translateX(50%) translateY(-6px);
	margin-bottom: 4px;
	padding: 5px 10px;
	background: #1f2937;
	border-radius: 6px;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .16s ease, transform .16s ease;
	z-index: 10;
}

.dx-qv-wishlist .tinvwl_add_to_wishlist_button:hover::after {
	opacity: 1;
	visibility: visible;
	transform: translateX(50%) translateY(-10px);
}

.dx-qv-wishlist .tinv-wraper {
	display: block !important;
	width: 44px !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	/* No overflow:hidden here — it would clip the hover tooltip below,
	   which is positioned outside this box. font-size:0 on the button
	   already keeps stray text invisible without needing to clip it. */
}

.dx-qv-wishlist .tinvwl_add_to_wishlist_button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 44px !important;
	height: 44px !important;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #fff !important;
	border: 1px solid #f6d3d4 !important;
	border-bottom: 2px solid #d71920 !important;
	border-radius: 8px !important;
	color: #d71920 !important;
	box-shadow: none !important;
	transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
	/* Belt-and-suspenders text hiding: the named text spans get display:none
	   below, but zeroing the button's own font-size means ANY stray text
	   node collapses too — the icon glyph gets its size back explicitly
	   on ::before, so it stays visible either way. No overflow:hidden here,
	   it would clip the hover tooltip (::after) positioned above the box. */
	font-size: 0 !important;
	line-height: 0 !important;
	white-space: nowrap !important;
}

.dx-qv-wishlist .tinvwl_add_to_wishlist_button:hover {
	background: linear-gradient(180deg, #d71920 0%, #b51218 100%) !important;
	color: #fff !important;
	box-shadow: 0 10px 20px rgba(215, 25, 32, .24) !important;
	transform: translateY(-1px);
}

.dx-qv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-product-already-on-wishlist {
	background: #fff1f0 !important;
	color: #d71920 !important;
}

.dx-qv-wishlist .tinvwl_add_to_wishlist_button::before {
	font-size: 18px !important;
	line-height: 1 !important;
}

.dx-qv-wishlist .tinvwl_add_to_wishlist-text,
.dx-qv-wishlist .tinvwl_already_on_wishlist-text {
	display: none !important;
}
