/**
 * LooksLoop Try-On button + modal.
 * Scoped under .looksloop-* so it never leaks into the theme. Inherits the
 * theme's button look for the trigger; the modal is self-contained.
 */

.looksloop-tryon-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin-block: 0.75rem;
}

.looksloop-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(15, 15, 20, 0.6);
	backdrop-filter: blur(2px);
}

.looksloop-card {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: 92vh;
	overflow-y: auto;
	background: #fff;
	color: #1d1915;
	border-radius: 16px;
	padding: 1.5rem;
	box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
	text-align: center;
}

.looksloop-close {
	position: absolute;
	top: 0.75rem;
	inset-inline-end: 0.75rem;
	border: 0;
	background: transparent;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	color: #6e6e7a;
}

.looksloop-title {
	margin: 0 0 0.25rem;
	font-size: 1.15rem;
	font-weight: 600;
}

.looksloop-hint {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: #6e6e7a;
}

.looksloop-file {
	display: block;
	width: 100%;
	margin-bottom: 0.75rem;
}

.looksloop-consent-row {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-bottom: 1rem;
	font-size: 0.8rem;
	color: #4a4a55;
	text-align: start;
}

.looksloop-primary {
	width: 100%;
}

.looksloop-msg {
	min-height: 1.2em;
	font-size: 0.85rem;
	color: #6e6e7a;
	margin: 0.5rem 0;
}

.looksloop-spinner {
	width: 28px;
	height: 28px;
	margin: 0.75rem auto;
	border: 3px solid #eee;
	border-top-color: #b98f4a;
	border-radius: 50%;
	animation: looksloop-spin 0.8s linear infinite;
}

@keyframes looksloop-spin {
	to {
		transform: rotate(360deg);
	}
}

.looksloop-preview {
	margin-top: 0.75rem;
}

.looksloop-thumb,
.looksloop-result {
	width: 100%;
	border-radius: 12px;
	display: block;
}

.looksloop-result {
	margin-bottom: 0.75rem;
}

.looksloop-actions {
	display: flex;
	gap: 0.5rem;
}

.looksloop-actions .button {
	flex: 1;
	text-align: center;
}

.looksloop-disclaimer {
	margin: 1rem 0 0;
	font-size: 0.7rem;
	color: #9a9aa5;
}
