/* =====================================================================
   CARRITO DE UN SOLO PRODUCTO — Modal de reemplazo
   Theme: bricks-child | project/assets/css/lpx-cart-replace.css
   ===================================================================== */

.lpx-replace-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.lpx-replace-modal.is-open {
	visibility: visible;
	opacity: 1;
}

.lpx-replace-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.lpx-replace-modal__card {
	position: relative;
	width: 100%;
	max-width: 26rem;
	background: #fff;
	border-radius: 1.25rem;
	padding: 2rem 1.75rem;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
	text-align: center;
	transform: translateY(8px) scale(0.98);
	transition: transform 0.2s ease;
}

.lpx-replace-modal.is-open .lpx-replace-modal__card {
	transform: translateY(0) scale(1);
}

.lpx-replace-modal__title {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #000;
}

.lpx-replace-modal__text {
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #5c5a55;
}

.lpx-replace-modal__actions {
	display: flex;
	gap: 0.75rem;
}

.lpx-replace-modal__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	height: 3rem;
	padding: 0 1.25rem;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: 0.75rem;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lpx-replace-modal__btn--cancel {
	background: transparent;
	color: #000;
	border: 1px solid #000;
}

.lpx-replace-modal__btn--cancel:hover {
	background: #f6f4f1;
}

.lpx-replace-modal__btn--confirm {
	background: #000;
	color: #fff;
	border: 1px solid #000;
}

.lpx-replace-modal__btn--confirm:hover {
	background: #2a2926;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
