/* Everything this widget renders is position:absolute, so it has no
   in-flow content of its own to size itself by - without this rule, the
   widget's auto-generated Elementor wrapper collapses to 0 width/height
   (confirmed live: .mv-qvt-bar computed to width:0px on the real site,
   despite rendering fine in the editor). Claiming the position directly
   on Elementor's own per-instance wrapper class - not an inner div -
   makes this work regardless of exactly where the widget is dropped,
   as long as its direct parent (the image/media container) is itself
   position:relative - already true, it's the same container the old eye
   icon positioned against. */
.elementor-widget-mv_quick_view_trigger {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.mv-qvt-wrap {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* ---------- Desktop size bar (hover-revealed) ---------- */
.mv-qvt-bar-trigger {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease;
	pointer-events: none;
}

/* Reveal is driven by the CARD's own hover state (same container pattern
   already proven on the old eye icon), not this widget's own wrapper -
   .mv-qvt-wrap sits at inset:0 with pointer-events:none so it never blocks
   the card's other hover-driven effects (e.g. the second-image swap). */
[data-elementor-type="loop-item"]:hover .mv-qvt-bar-trigger {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.mv-qvt-bar {
	direction: ltr; /* sizes are Latin (S/M/L/XL) - always left-to-right, independent of page direction */
	width: 100%;
	display: flex;
	align-items: stretch;
	background: rgba(250, 247, 242, 0.88);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	border-style: solid;
	border-width: 1px 1px 1px 1px;
	border-top: none; /* sides + bottom only, per spec - seam stays open into the photo above */
	border-color: rgba(22, 35, 61, 0.16);
}

.mv-qvt-chip {
	all: unset;
	box-sizing: border-box;
	position: relative;
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 13px 4px;
	font-size: 12.5px;
	letter-spacing: 0.03em;
	color: #16233D;
	cursor: pointer;
	text-align: center;
	transition: background 0.12s ease, color 0.12s ease;
}

/* .mv-qvt-dividers-yes is Elementor's own prefix_class, applied to the
   WIDGET's outer wrapper (an ancestor of .mv-qvt-bar, not this element
   itself) - see the "Dividers Between Chips" switcher control. */
.mv-qvt-dividers-yes .mv-qvt-chip + .mv-qvt-chip {
	border-inline-start: 1px solid rgba(22, 35, 61, 0.12);
}

.mv-qvt-chip:hover,
.mv-qvt-chip:focus-visible {
	background: #16233D;
	color: #FAF7F2;
}

.mv-qvt-chip.oos {
	color: rgba(22, 35, 61, 0.4);
}

.mv-qvt-chip.oos::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 1px;
	height: 78%;
	background: rgba(22, 35, 61, 0.55);
	transform: rotate(35deg);
	transform-origin: center;
}

/* ---------- Mobile / tablet "+" icon ---------- */
/* No hover on touch devices - the bar is undiscoverable there, so this
   breakpoint always shows the icon instead. Matches the existing eye-icon
   convention's own breakpoint (mark-vance-gallery-carousel), not a new
   value - tablet and phone get identical treatment. */
.mv-qvt-mobile-icon {
	display: none;
}

@media (max-width: 1024px) {
	.mv-qvt-bar-trigger {
		display: none;
	}

	.mv-qvt-mobile-icon {
		all: unset;
		box-sizing: border-box;
		position: absolute;
		left: 14px;
		bottom: 14px;
		width: 40px;
		height: 40px;
		border-radius: 50%;
		background: #16233D;
		color: #FAF7F2;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		pointer-events: auto;
	}

	.mv-qvt-mobile-icon i,
	.mv-qvt-mobile-icon svg {
		font-size: 18px;
		width: 18px;
		height: 18px;
		color: inherit;
		fill: currentColor;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mv-qvt-bar-trigger {
		transition: none;
	}
}
