/* EE Woo Quick View modal (scoped). */
body.ltxee-woo-qv-modal--open {
	overflow: hidden;
}

.ltxee-woo-qv-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ltxee-woo-qv-modal[hidden] {
	display: none;
}

.ltxee-woo-qv-modal__backdrop {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
}

.ltxee-woo-qv-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(96vw, 560px);
	max-height: min(92vh, 720px);
	/* Mobile browsers resolve vh against the largest viewport, with the address bar hidden,
	   so a 92vh dialog can be taller than what is actually on screen. dvh tracks the visible
	   viewport; the vh line above remains the fallback where dvh is unsupported. */
	max-height: min(92dvh, 720px);
	overflow: auto;
	background: #fff;
	box-shadow: 0 14px 50px rgba(0, 0, 0, 0.25);
	border-radius: 6px;
	padding: 1.25rem 1.25rem 1rem;
	box-sizing: border-box;
}

.ltxee-woo-qv-modal__busy {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 2rem;
	font-size: 0.95rem;
	color: #555;
	text-align: center;
}

.ltxee-woo-qv-modal__added-status {
	margin: 0 0 0.75rem;
	padding: 0.5rem 0.65rem;
	font-size: 0.9rem;
	color: #1e4620;
	background: #e8f5e9;
	border-radius: 4px;
}

.ltxee-woo-qv-modal .ltxee-qv__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	border: none;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
}

.ltxee-woo-qv-modal .ltxee-qv__close:hover {
	background: rgba(0, 0, 0, 0.06);
}

.ltxee-woo-qv-modal .ltxee-qv__media {
	margin-bottom: 0.75rem;
	max-height: 220px;
	overflow: hidden;
	text-align: center;
}

.ltxee-woo-qv-modal .ltxee-qv__img {
	display: inline-block;
	max-width: 100%;
	height: auto;
}

.ltxee-woo-qv-modal .ltxee-qv__title {
	font-size: 1.35rem;
	margin: 0 0 0.65rem;
}

.ltxee-woo-qv-modal .ltxee-qv__excerpt {
	font-size: 0.92rem;
	color: #444;
	margin-bottom: 0.75rem;
}

.ltxee-woo-qv-modal .ltxee-qv__actions {
	margin-top: 0.75rem;
}

.ltxee-woo-quick-view__open.elementor-button {
	cursor: pointer;
}
