/* Forhåndsvisning af logo og tekst på varebilledet (assets/forhaandsvisning.js). */

.woocommerce-product-gallery__image { position: relative; }
.vsm-fv-lag { position: absolute; z-index: 3; pointer-events: none; }
.vsm-fv-felt { position: absolute; display: flex; align-items: center; justify-content: center; box-sizing: border-box; transform-origin: center; }
.vsm-fv-felt.er-oval { border-radius: 50%; overflow: hidden; }
.vsm-fv-felt img { display: block; width: 100%; height: 100%; object-fit: contain; animation: vsm-fv-ind 220ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.vsm-fv-felt.er-tom { border: 1.5px dashed var(--wp--preset--color--teal, #006d77); background: rgba(0, 109, 119, 0.08); border-radius: 2px; }
.vsm-fv-felt.er-tom::after {
	content: attr(data-navn);
	font: 600 10px/1.1 var(--wp--preset--font-family--barlow, sans-serif);
	color: var(--wp--preset--color--teal-dyb, #00525a);
	text-align: center; padding: 2px; overflow: hidden;
}
.vsm-fv-tekst { display: block; width: 100%; line-height: 1.05; white-space: pre; overflow: hidden; font-family: var(--wp--preset--font-family--barlow-condensed, sans-serif); }

/* Ryg og ærme på en skitse i hjørnet. */
.vsm-fv-bag {
	position: absolute; right: 3%; bottom: 3%;
	width: 30%; aspect-ratio: 1;
	background: #fff; border: 1px solid var(--wp--preset--color--streg, #d9dfdf); border-radius: 8px;
	box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.35);
}
.vsm-fv-bag svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vsm-fv-bag .vsm-fv-felt.er-tom::after { font-size: 8px; }
.vsm-fv-bag-navn {
	position: absolute; left: 8px; top: 6px;
	font: 600 11px/1 var(--wp--preset--font-family--barlow, sans-serif); color: var(--wp--preset--color--blaek-daempet, #5b6b6c);
}

.vsm-fv-maerke {
	position: absolute; left: 12px; top: 12px;
	display: inline-flex; align-items: center; gap: 10px;
	padding: 6px 6px 6px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, 0.94); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 6px 18px -10px rgba(0, 0, 0, 0.4);
	font: 600 13px/1 var(--wp--preset--font-family--barlow, sans-serif); color: var(--wp--preset--color--blaek, #0f1a1b);
	pointer-events: auto;
}
.vsm-fv-skift {
	min-height: 28px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--wp--preset--color--teal-taage, #e6f1f2); color: var(--wp--preset--color--teal-dyb, #00525a);
	font: 600 12px/1 var(--wp--preset--font-family--barlow, sans-serif);
}
.vsm-fv-skift:hover { background: var(--wp--preset--color--teal-dis, #cde6e8); }

.vsm-fv-note { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--wp--preset--color--blaek-daempet, #5b6b6c); }

/* Zoom-billedet ville dække forhåndsvisningen. */
.vsm-fv-aktiv .zoomImg { display: none !important; }

@keyframes vsm-fv-ind { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vsm-fv-felt img { animation: none; } }

/* Trykplan: T-shirt forfra og bagfra, i varens farve, oven på varebilledet. */
.vsm-fv-plan {
	position: absolute; inset: 0;
	display: grid; grid-template-columns: 1fr 1fr; gap: 2%; align-content: center;
	padding: 15% 2% 9%;
	background: var(--wp--preset--color--staal, #f3f5f5);
	animation: vsm-fv-plan-ind 200ms ease-out both;
}
.vsm-fv-kol { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.vsm-fv-side { position: relative; width: 100%; aspect-ratio: 1; }
.vsm-fv-side svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vsm-fv-side .vsm-fv-felt.er-tom::after { font-size: 9px; }
.vsm-fv-side-navn { font: 600 14px/1 var(--wp--preset--font-family--barlow, sans-serif); color: var(--wp--preset--color--blaek-daempet, #5b6b6c); }
@keyframes vsm-fv-plan-ind { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .vsm-fv-plan { animation: none; } }

.vsm-fv-plan { z-index: 1; }
.vsm-fv-maerke { z-index: 2; }

/* "Se det på varen": kun på mobil, hvor galleriet står over Ordresedlen. */
.vsm-fv-se { display: none; }
@media (max-width: 781px) {
	.vsm-fv-se {
		display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 0;
		border: 0; background: none; cursor: pointer;
		font: 600 15px/1 var(--wp--preset--font-family--barlow, sans-serif); color: var(--wp--preset--color--teal, #006d77);
		text-decoration: underline; text-underline-offset: 3px;
	}
}

/* Tekst i samme lyshed som tøjet (fx hvid på hvid) får en svag kant, så den kan ses i forhåndsvisningen. */
.vsm-fv-felt.har-kant-moerk .vsm-fv-tekst { text-shadow: 0 0 1px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.35); }
.vsm-fv-felt.har-kant-lys .vsm-fv-tekst { text-shadow: 0 0 1px rgba(255, 255, 255, 0.7), 0 0 2px rgba(255, 255, 255, 0.4); }
.vsm-fv-felt .vsm-fv-tekst { font-weight: 700; }
