.gf-360 {
	position: relative;
	width: 100%;
	height: 100%;
	max-width: var(--gf360-max-width, 300px);
	margin-left: auto;
	margin-right: auto;
	overflow: visible;
	border-radius: 12px;
	background: var(--bg, transparent);
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}

.gf-360.gf-360--has-aspect-ratio {
	aspect-ratio: var(--ar, 3/4);
}

.gf-360__img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	object-position: var(--gf360-object-position, 80%);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
	margin-top: 0;
	margin-bottom: var(--gf360-margin-bottom, -300px);
	transform: translate(
		calc(var(--gf360-nudge-x, 0px) + var(--gf360-variation-nudge-x, 0px)),
		calc(var(--gf360-translate-y, -100px) + var(--gf360-nudge-y, 0px) + var(--gf360-variation-nudge-y, 0px))
	);
}

.gf-360.is-ready .gf-360__img {
	opacity: 1;
}

.gf-360__shield {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: transparent;
	z-index: 5;
	cursor: progress;
}

.gf-360.is-ready .gf-360__shield {
	display: none;
}

.gf-360__spinner {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	border: 3px solid rgba(0, 0, 0, 0.15);
	border-top-color: rgba(0, 0, 0, 0.55);
	animation: gfspin 0.9s linear infinite;
}

.gf-360__loadingText {
	font: 12px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: rgba(0, 0, 0, 0.7);
}

@keyframes gfspin {
	to {
		transform: rotate(360deg);
	}
}

.gf-360__toolbar {
	position: absolute;
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%) translateY(var(--y, 100px));
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: var(--gf360-toolbar-gap, 8px);
	width: max-content;
	max-width: min(420px, calc(100vw - 32px));
	z-index: 6;
	pointer-events: none;
	opacity: 0.9;
	transition: opacity 0.2s ease;
}

.gf-360__hint {
	position: static;
	transform: none;
	flex: 0 0 auto;
	padding: 6px 10px;
	font: 12px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	border-radius: 999px;
	pointer-events: none;
	white-space: nowrap;
}

.gf-360.is-dragging .gf-360__toolbar {
	opacity: 0;
}

.gf-360__variations {
	position: static;
	transform: none;
	flex: 0 0 auto;
	min-width: 0;
	pointer-events: auto;
}

.gf-360__variation-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gf-360__variation-select {
	display: block;
	width: auto;
	min-width: 150px;
	max-width: 220px;
	padding: 6px 28px 6px 12px;
	font: 12px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #fff;
	background: rgba(0, 0, 0, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23ffffff' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
	border: 0;
	border-radius: 999px;
	appearance: none;
	cursor: pointer;
	touch-action: manipulation;
}

.gf-360__variation-select:focus {
	outline: 2px solid rgba(255, 255, 255, 0.85);
	outline-offset: 2px;
}

.gf-360__variation-select option {
	color: #111;
	background: #fff;
}
