/* Vapor Shoppe – single product polish */

/* Sale price (template price paragraph: <del>old</del> <sr/>new<sr/>) */
:is(.elementor-location-single, .elementor-popup-modal) p:has(> del) {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 .6rem;
}
.elementor-location-single p:has(> del) { flex-wrap: nowrap; }
:is(.elementor-location-single, .elementor-popup-modal) p:has(> del) > span:nth-of-type(odd) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
:is(.elementor-location-single, .elementor-popup-modal) p:has(> del) > span:nth-of-type(2) { order: 1; }
:is(.elementor-location-single, .elementor-popup-modal) p:has(> del) > del {
	order: 2;
	font-size: .5em;
	font-weight: 500;
	color: #8a90a0;
	text-decoration-thickness: 2px;
}
.elementor-popup-modal p:has(> del) > del { font-size: .85em; }

/* Variant selector */
.variations_form table.variations,
.variations_form table.variations tbody,
.variations_form table.variations tr,
.variations_form table.variations td {
	display: block;
	border: 0;
	padding: 0;
	width: 100%;
}
.variations_form table.variations tr { margin-bottom: 14px; }
.variations_form table.variations td.label {
	margin-bottom: 8px;
	text-align: left !important;
	font: 600 13px/1.2 Poppins, sans-serif;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #131515;
}
.variations_form table.variations td.value {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}
.variations_form select.vs-select-hidden { display: none !important; }

.vs-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.vs-swatch {
	appearance: none;
	-webkit-appearance: none;
	min-height: 44px;
	padding: 0 18px;
	border: 2px solid #d9dce5;
	border-radius: 10px;
	background: #fff;
	color: #131515;
	font: 600 14px/1 Poppins, sans-serif;
	cursor: pointer;
	transition: border-color .15s, background .15s, color .15s;
}
.vs-swatch:hover { border-color: #334DA2; }
.vs-swatch[aria-pressed="true"] { border-color: #334DA2; background: #334DA2; color: #fff; }
.vs-swatch:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; border-style: dashed; }
.vs-swatch:focus-visible { outline: 2px solid #131515; outline-offset: 2px; }

/* Clear link: the template CSS stored its × glyph escape garbled, so set it here. Sits top-right of the option row. */
.variations_form table.variations tr { position: relative; }
body .elementor-widget-tm-single-product-add-to-cart a.reset_variations {
	position: absolute;
	top: 0;
	right: 0;
	margin: 0;
}
body .elementor-widget-tm-single-product-add-to-cart a.reset_variations::before {
	content: "\00d7" !important;
}

/* Stock by location chip: same garbled escape for the › arrow */
body .elementor-widget-tm-single-product-add-to-cart .stock:not(.out-of-stock)::after {
	content: "Stock by location \203A" !important;
}

/* Related / recently viewed: sit the button 14px below the card instead of touching it */
.entry-product-section:is(.related, .recent-viewed) .background-color-expand { bottom: -75px; }
/* The theme shrinks the box to height:calc(100% + 73px) on hover, which pulls the button up against the card: keep the same bottom offset */
.entry-product-section:is(.related, .recent-viewed) .product:hover .background-color-expand { height: auto !important; }
.entry-product-section:is(.related, .recent-viewed) .swiper { padding-bottom: 90px !important; } /* the theme's carousel rule sets 60px and wins without !important, clipping the button */

/* Juice template: flavours as chips (links are inert even before the script runs), VG/PG as a two-part ratio */
/* Hold the raw values back until the script has restyled them (shown anyway after 1.5s if it never runs) */
[data-id="559036df"]:not([data-vs-chips]), [data-id="2d86e12f"]:not([data-vs-chips]),
[data-id="37352aa1"]:not([data-vs-ratio]), [data-id="2ac40409"]:not([data-vs-ratio]) {
	visibility: hidden;
	animation: vs-reveal 0s 1.5s forwards;
}
@keyframes vs-reveal { to { visibility: visible; } }
[data-id="559036df"] a, [data-id="2d86e12f"] a { pointer-events: none; color: inherit; text-decoration: none; }
[data-id="559036df"][data-vs-chips], [data-id="2d86e12f"][data-vs-chips] {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 1rem;
	line-height: 1;
}
.vs-chip {
	display: inline-block;
	padding: 7px 12px;
	background: #F4F6FC;
	border: 1px solid #E3E7F3;
	border-radius: 999px;
	font: 600 .8125rem/1 Poppins, sans-serif;
	letter-spacing: .01em;
	color: #131515;
	white-space: nowrap;
}
[data-id="37352aa1"][data-vs-ratio], [data-id="2ac40409"][data-vs-ratio] {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-block: auto;
	line-height: 1;
}
.vs-ratio { font: 600 .8125rem/1 Poppins, sans-serif; letter-spacing: .08em; color: #5B6270; }
.vs-ratio b { font: 700 2rem/1 Poppins, sans-serif; letter-spacing: 0; color: #131515; }
.vs-ratio-sep { font: 400 1.5rem/1 Poppins, sans-serif; color: #C4C9D6; }
.vs-spec-tile > [data-id="37352aa1"] { align-self: flex-start; }

/* Related / recently viewed cards */
.vs-card-specs__row--compatible-with { grid-column: 1 / -1; }
