html.vtow-lock-scroll {
	overflow: hidden;
}

.vtow-trigger-btn {
	--vtow-color: #8a2b57;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var( --vtow-color );
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	margin: 10px 0;
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.vtow-trigger-btn:hover {
	opacity: 0.9;
	transform: translateY( -1px );
}
.vtow-trigger-icon {
	font-size: 18px;
	line-height: 1;
}

.vtow-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.vtow-modal[hidden] {
	display: none;
}
.vtow-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 20, 15, 20, 0.65 );
}
.vtow-modal-panel {
	position: relative;
	background: #fff;
	border-radius: 14px;
	width: 100%;
	max-width: 560px;
	max-height: 92vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.35 );
	display: flex;
	flex-direction: column;
}
.vtow-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #eee;
}
.vtow-modal-header h2 {
	margin: 0;
	font-size: 18px;
}
.vtow-modal-close {
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #555;
	padding: 0 4px;
}
.vtow-modal-body {
	padding: 18px 20px;
}

.vtow-choose-copy {
	margin-top: 0;
}
.vtow-choose-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.vtow-error-message {
	color: #b32d2e;
	background: #fbeaea;
	border-radius: 6px;
	padding: 8px 12px;
	margin-top: 12px;
	font-size: 13px;
}

.vtow-camera-video {
	width: 100%;
	max-width: 480px;
	border-radius: 10px;
	background: #000;
	display: block;
	margin: 0 auto;
	transform: scaleX(-1);
}
.vtow-camera-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 14px;
}

.vtow-instructions {
	font-size: 13px;
	color: #555;
	margin-top: 0;
}

.vtow-stage-wrap {
	display: flex;
	justify-content: center;
}
.vtow-stage {
	position: relative;
	width: 100%;
	max-width: 420px;
	aspect-ratio: 4 / 5;
	background: #f2f0f1;
	border-radius: 10px;
	overflow: hidden;
	touch-action: none;
}
.vtow-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	user-select: none;
	pointer-events: none;
}
.vtow-guide-oval {
	position: absolute;
	left: 50%;
	top: 38%;
	width: 46%;
	height: 58%;
	transform: translate( -50%, -30% );
	border: 2px dashed rgba( 255, 255, 255, 0.55 );
	border-radius: 50% / 45%;
	pointer-events: none;
	mix-blend-mode: difference;
}
.vtow-overlay-box {
	position: absolute;
	cursor: grab;
	touch-action: none;
}
.vtow-overlay-box:active {
	cursor: grabbing;
}
.vtow-overlay-box:focus {
	outline: 2px solid #4a90d9;
	outline-offset: 4px;
}
.vtow-overlay {
	width: 100%;
	height: 100%;
	object-fit: contain;
	user-select: none;
	pointer-events: none;
	display: block;
}
.vtow-handle {
	position: absolute;
	width: 22px;
	height: 22px;
	background: #fff;
	border: 2px solid #8a2b57;
	border-radius: 50%;
	touch-action: none;
}
.vtow-handle-resize {
	right: -11px;
	bottom: -11px;
	cursor: nwse-resize;
}
.vtow-handle-rotate {
	left: 50%;
	top: -30px;
	transform: translateX( -50% );
	cursor: grab;
}
.vtow-handle-rotate::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 22px;
	width: 2px;
	height: 12px;
	background: #8a2b57;
	transform: translateX( -50% );
}

.vtow-controls {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.vtow-control {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
}
.vtow-control-label {
	min-width: 90px;
	color: #444;
}
.vtow-control input[type="range"] {
	flex: 1;
}
.vtow-control-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

.vtow-related {
	margin-top: 20px;
	border-top: 1px solid #eee;
	padding-top: 14px;
}
.vtow-related h3 {
	font-size: 14px;
	margin: 0 0 10px;
}
.vtow-related-list {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
}
.vtow-related-item {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid transparent;
	padding: 0;
	cursor: pointer;
	background: #f2f0f1;
}
.vtow-related-item:hover,
.vtow-related-item:focus {
	border-color: #8a2b57;
}
.vtow-related-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vtow-privacy-note {
	font-size: 11px;
	color: #888;
	text-align: center;
	padding: 10px 20px 16px;
	margin: 0;
}

.vtow-hidden-canvas {
	display: none;
}

@media ( prefers-color-scheme: dark ) {
	.vtow-modal-panel {
		background: #1e1b1e;
		color: #f2f0f1;
	}
	.vtow-modal-header {
		border-color: #333;
	}
	.vtow-modal-close {
		color: #ccc;
	}
	.vtow-stage {
		background: #2a262a;
	}
	.vtow-related {
		border-color: #333;
	}
	.vtow-control-label {
		color: #ccc;
	}
	.vtow-privacy-note {
		color: #999;
	}
}
