/* Orça Silks — estilos do widget de orçamento · Desenvolvido por Studio Silks */

/* ── Botão Orçar — base ──────────────────────────────────────────────────── */

.loa-orcar-btn {
	background: #25D366 !important;
	color: #fff !important;
	border: none !important;
	font-weight: 600;
	border-radius: 6px;
	position: relative;
	overflow: hidden;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease !important;
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
}

.loa-orcar-btn img.loa-orcar-btn-icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex-shrink: 0;
}

.loa-orcar-btn:hover {
	background: #1ebe5b !important;
}

.loa-orcar-btn:active {
	transform: scale(0.96);
}

/* ── Animação: shimmer (brilho passando) ──────────────────────────────────── */

.loa-anim-shimmer::after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 60%;
	height: 100%;
	background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
	transition: none;
	pointer-events: none;
}

.loa-anim-shimmer:hover::after {
	left: 150%;
	transition: left 0.5s ease;
}

/* ── Animação: slide_up (texto sobe) ─────────────────────────────────────── */

.loa-anim-slide_up .loa-btn-text {
	display: inline-block;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.loa-anim-slide_up:hover .loa-btn-text {
	transform: translateY(-110%);
	opacity: 0;
}

.loa-anim-slide_up::before {
	content: attr(data-hover-text);
	position: absolute;
	left: 0;
	right: 0;
	text-align: center;
	transform: translateY(110%);
	opacity: 0;
	transition: transform 0.25s ease, opacity 0.25s ease;
	pointer-events: none;
}

.loa-anim-slide_up:hover::before {
	transform: translateY(0);
	opacity: 1;
}

/* ── Animação: pulse (escala) ────────────────────────────────────────────── */

.loa-anim-pulse:hover {
	transform: scale(1.06) !important;
	box-shadow: 0 4px 14px rgba(37,211,102,0.4) !important;
}

.loa-single-btn {
	display: inline-block;
	padding: 14px 28px !important;
	font-size: 16px !important;
}

.loa-float-wrap {
	position: fixed !important;
	top: auto !important;
	bottom: 18px !important;
	z-index: 999999 !important;
	margin: 0 !important;
}

.loa-float-wrap.loa-pos-right {
	right: 18px !important;
	left: auto !important;
}

.loa-float-wrap.loa-pos-left {
	left: 18px !important;
	right: auto !important;
}

.loa-float-wrap.loa-pos-center {
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%) !important;
}

.loa-float-btn {
	position: relative;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #1f2933;
	color: #fff;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0,0,0,0.25);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.loa-cart-icon {
	width: 26px;
	height: 26px;
	display: block;
}

.loa-cart-icon-img {
	object-fit: contain;
}

.loa-float-btn:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

@keyframes loa-pulse-anim {
	0% { transform: scale(1); }
	30% { transform: scale(1.25) rotate(-4deg); }
	60% { transform: scale(0.94) rotate(3deg); }
	100% { transform: scale(1) rotate(0); }
}

@keyframes loa-cart-bounce-anim {
	0%   { transform: scale(1); }
	25%  { transform: scale(1.3) rotate(-5deg); }
	50%  { transform: scale(0.9) rotate(4deg); }
	75%  { transform: scale(1.1); }
	100% { transform: scale(1) rotate(0); }
}

.loa-float-btn.loa-pulse {
	animation: loa-pulse-anim 0.5s ease;
}

.loa-float-btn.loa-cart-bounce {
	animation: loa-cart-bounce-anim 0.5s cubic-bezier(.34,1.56,.64,1);
}

.loa-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	background: #25D366;
	color: #fff;
	font-size: 12px;
	min-width: 20px;
	height: 20px;
	border-radius: 10px;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

@keyframes loa-pop-anim {
	0% { transform: scale(0.3); }
	55% { transform: scale(1.35); }
	100% { transform: scale(1); }
}

.loa-badge.loa-pop {
	animation: loa-pop-anim 0.4s cubic-bezier(.34,1.56,.64,1);
}

.loa-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0);
	z-index: 9999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, background 0.25s ease, visibility 0s linear 0.25s;
}

.loa-modal-overlay.loa-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	background: rgba(0,0,0,0.5);
	transition: opacity 0.25s ease, background 0.25s ease;
}

.loa-modal {
	background: #fff;
	width: 100%;
	max-width: 480px;
	max-height: 85vh;
	border-radius: 16px 16px 0 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: translateY(40px);
	opacity: 0;
	transition: transform 0.32s cubic-bezier(.34,1.56,.64,1), opacity 0.25s ease;
}

.loa-modal-overlay.loa-open .loa-modal {
	transform: translateY(0);
	opacity: 1;
}

.loa-modal-overlay.loa-anim-fade .loa-modal {
	transform: none;
}

.loa-modal-overlay.loa-anim-zoom .loa-modal {
	transform: scale(0.85);
}

.loa-modal-overlay.loa-anim-zoom.loa-open .loa-modal {
	transform: scale(1);
}

@media (min-width: 600px) {
	.loa-modal-overlay {
		align-items: center;
	}
	.loa-modal {
		border-radius: 12px;
		max-height: 80vh;
		transform: translateY(20px) scale(0.97);
	}
	.loa-modal-overlay.loa-open .loa-modal {
		transform: translateY(0) scale(1);
	}
	.loa-modal-overlay.loa-anim-fade .loa-modal {
		transform: none;
	}
}

.loa-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #eee;
}

.loa-modal-header h3 {
	margin: 0;
	font-size: 18px;
}

.loa-modal-close {
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #555;
}

.loa-modal-body {
	padding: 16px 20px;
	overflow-y: auto;
}

.loa-empty {
	color: #777;
	text-align: center;
	padding: 24px 0;
}

.loa-cart-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
	animation: loa-item-fade-in 0.25s ease both;
}

@keyframes loa-item-fade-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.loa-cart-item img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}

.loa-item-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.loa-item-info strong {
	font-size: 14px;
}

.loa-qty-input {
	width: 60px;
	padding: 4px 6px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.loa-remove-item {
	background: none;
	border: none;
	color: #c0392b;
	font-size: 20px;
	cursor: pointer;
	padding: 0 6px;
}

.loa-cart-total {
	text-align: right;
	font-size: 16px;
	margin: 14px 0;
}

.loa-btn {
	width: 100%;
	display: block;
	background: #25D366;
	color: #fff;
	border: none;
	padding: 14px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	margin-top: 6px;
	transition: transform 0.15s ease, opacity 0.15s ease, background 0.2s ease;
}

.loa-btn:active {
	transform: scale(0.97);
}

.loa-btn.loa-secondary {
	background: #e5e7eb;
	color: #333;
}

.loa-success {
	text-align: center;
	padding: 30px 0 10px;
}

.loa-success p {
	color: #333;
	font-size: 15px;
	margin-top: 4px;
}

.loa-checkmark {
	width: 84px;
	height: 84px;
}

.loa-checkmark-circle {
	stroke: #25D366;
	stroke-width: 2;
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	animation: loa-draw-circle 0.5s ease forwards;
}

.loa-checkmark-check {
	stroke: #25D366;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 36;
	stroke-dashoffset: 36;
	animation: loa-draw-check 0.3s 0.5s ease forwards;
}

@keyframes loa-draw-circle {
	to { stroke-dashoffset: 0; }
}

@keyframes loa-draw-check {
	to { stroke-dashoffset: 0; }
}

.loa-form-actions {
	display: flex;
	gap: 10px;
}

.loa-form-actions .loa-btn {
	margin-top: 0;
}

#loa-finalize-form label {
	display: block;
	font-size: 14px;
	margin-bottom: 12px;
	color: #333;
}

#loa-finalize-form input {
	width: 100%;
	padding: 12px;
	margin-top: 4px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

#loa-finalize-form input:focus {
	outline: none;
	border-color: #25D366;
}

.loa-field-hint {
	display: block;
	font-size: 12px;
	margin-top: 3px;
	min-height: 16px;
	transition: color 0.2s ease;
}

.loa-hint-ok {
	color: #10b981;
	font-weight: 600;
}

.loa-hint-erro {
	color: #ef4444;
}

.loa-form-error {
	background: #fdecea;
	color: #b3261e;
	border: 1px solid #f5c6c3;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	margin-bottom: 12px;
}

.loa-toast {
	position: fixed;
	left: 50%;
	bottom: 90px;
	transform: translate(-50%, 20px);
	background: #1f2933;
	color: #fff;
	padding: 10px 18px;
	border-radius: 24px;
	font-size: 14px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	z-index: 10000;
}

.loa-toast.loa-show {
	opacity: 1;
	transform: translate(-50%, 0);
}
