/* Styling for the "Invisible" attribute-group special rendering (product page
   attributes tab) - ported from JMI production and adapted to DEV's own
   conventions: registered as a real stylesheet via addStyle() (see
   catalog/controller/journal3/product_tabs.php) instead of JMI's inline
   <style> block, and reuses the .jmi-thule-kit-link/-arrow/-title classes
   already defined in jmi-fitment.css for PDF/HTML/FitAssistant-fallback
   link buttons (same "arrow + title" visual pattern DEV already has) rather
   than duplicating JMI's inline-styled version of the same thing. Dead CSS
   rules from JMI's copy (.heading4/.heading6/.techSpecs__Item/
   .paragraph-small - not generated by this template) were not ported. */

.attributes-plain > .inv-attr-line,
.attributes-plain > .inv-attr-item {
	margin-top: 12px;
}

.attributes-plain > .inv-attr-line:first-child,
.attributes-plain > .inv-attr-item:first-child {
	margin-top: 0;
}

.inv-attr-line-pdf,
.inv-attr-line-html-link,
.inv-attr-line-fitassistant {
	padding-top: 12px;
	padding-bottom: 12px;
}

.inv-attr-line-pdf .jmi-thule-kit-title,
.inv-attr-line-html-link .jmi-thule-kit-title,
.inv-attr-line-fitassistant .jmi-thule-kit-title {
	font-size: 16px;
	font-weight: 600;
}

.inv-attr-item {
	padding-top: 12px;
	padding-bottom: 12px;
	border-top: 1px solid #e2e6ee;
}

.attributes-plain > .inv-attr-item:first-child {
	border-top: none;
}

.inv-attr-name {
	font-weight: 700;
	margin-bottom: 4px;
}

/* Video button + preview thumbnail */
.instruction-yt-button {
	display: block;
	width: 100%;
	max-width: 400px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	cursor: pointer;
}

.instruction-yt-button:hover,
.instruction-yt-button:focus,
.instruction-yt-button:active {
	border: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
}

.attribute-video-preview {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: transparent;
}

.attribute-video-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

.attribute-video-preview-generic {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #19294d 0%, #3a4f8f 100%);
}

.attribute-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: #19294d;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	pointer-events: none;
}

/* Fullscreen video modal */
body.instruction-video-open {
	overflow: hidden;
}

.instruction-video-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 2147483647;
}

.instruction-video-modal.is-open {
	display: block;
}

.instruction-video-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.66);
	z-index: 1;
}

.instruction-video-dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(1100px, calc(100vw - 80px), calc((100vh - 140px) * 16 / 9));
	z-index: 2147483646;
	background: #000;
	isolation: isolate;
}

.instruction-video-frame-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	z-index: 2147483646;
}

.instruction-video-frame-wrap iframe,
.instruction-video-frame-wrap video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	z-index: 2147483647;
	background: #000;
}

.instruction-video-close {
	position: fixed;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #ffffff;
	color: #000000;
	font-size: 30px;
	line-height: 44px;
	text-align: center;
	cursor: pointer;
	z-index: 2147483647;
	padding: 0;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

@media (max-width: 767px) {
	.instruction-video-dialog {
		width: calc(100vw - 20px);
	}

	.instruction-video-close {
		top: 10px;
		right: 10px;
	}
}
