/**
 * Provador LUP — botão, modal, canvas e animações
 */

/* -------------------------------------------------------------------------
 * Botão
 * ------------------------------------------------------------------------- */

.lup-provador-root {
	margin: 1.25rem 0;
}

.lup-provador-button-wrap {
	margin: 1.25rem 0;
}

.lup-try-on-btn {
	background: #fffc00;
	color: #000;
	border: none;
	padding: 12px 24px;
	border-radius: 50px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	line-height: 1.2;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		filter 0.2s ease;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.lup-try-on-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
	filter: brightness(1.03);
}

.lup-try-on-btn:active {
	transform: translateY(0);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.lup-try-on-btn:focus {
	outline: none;
}

.lup-try-on-btn:focus-visible {
	outline: 3px solid #000;
	outline-offset: 3px;
}

/* -------------------------------------------------------------------------
 * Modal fullscreen
 * ------------------------------------------------------------------------- */

.lup-modal,
#lup-modal {
	display: none;
	position: fixed;
	z-index: 9999999;
	inset: 0;
	width: 100%;
	height: 100%;
	background: #000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

.lup-modal.lup-modal--open,
#lup-modal.lup-modal--open {
	opacity: 1;
	pointer-events: auto;
}

#lup-canvas {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	vertical-align: middle;
	animation: lup-canvas-fade 0.45s ease 0.1s both;
}

@keyframes lup-canvas-fade {
	from {
		opacity: 0;
		transform: scale(1.02);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.lup-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: #fff;
	border: none;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10000001;
	font-size: 24px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		transform 0.2s ease,
		background 0.2s ease;
}

.lup-close:hover {
	transform: scale(1.06);
	background: #f2f2f2;
}

.lup-close:focus-visible {
	outline: 3px solid #fffc00;
	outline-offset: 2px;
}

.lup-status-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	font-size: 1rem;
	text-align: center;
	z-index: 10000000;
	max-width: 90vw;
	padding: 0 1rem;
	animation: lup-status-pulse 1.4s ease-in-out infinite;
}

@keyframes lup-status-pulse {
	0%,
	100% {
		opacity: 0.85;
	}
	50% {
		opacity: 1;
	}
}
