/* Carrito lateral (widget Menu Cart de Elementor Pro, plantilla propia .pm-mc) */

.elementor-menu-cart__container .elementor-menu-cart__main {
	width: 440px;
	max-width: 100vw;
	padding: 0 !important;
	background: #fff;
	color: #16110e;
	font-family: "Instrument Sans", system-ui, sans-serif;
	box-shadow: -12px 0 40px rgba(10, 10, 10, .18);
	overflow: hidden;
}
.elementor-menu-cart__main .widget_shopping_cart_content {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	padding: 0;
}

/* Con la barra de administración visible, el panel empieza debajo de ella */
.admin-bar .elementor-menu-cart__container .elementor-menu-cart__main {
	top: 32px;
	height: calc(100% - 32px);
}
@media (max-width: 782px) {
	.admin-bar .elementor-menu-cart__container .elementor-menu-cart__main {
		top: 46px;
		height: calc(100% - 46px);
	}
}

/* Botón de cerrar de Elementor, colocado dentro de la cabecera */
.elementor-menu-cart__main .elementor-menu-cart__close-button,
.elementor-menu-cart__main .elementor-menu-cart__close-button-custom {
	position: absolute;
	top: 22px;
	right: 22px;
	z-index: 2;
	width: 36px;
	height: 36px;
	margin: 0;
	border-radius: 50%;
	color: #16110e;
	transition: background-color .15s ease;
}
.elementor-menu-cart__main .elementor-menu-cart__close-button:hover {
	background-color: #f3ede4;
}
.elementor-menu-cart__main .elementor-menu-cart__close-button::before,
.elementor-menu-cart__main .elementor-menu-cart__close-button::after {
	width: 18px;
	height: 1.5px;
	left: 9px;
	top: 17px;
	background: currentColor;
}

.pm-mc {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	transition: opacity .15s ease;
}
.pm-mc--cargando {
	opacity: .55;
	pointer-events: none;
}

/* Cabecera */
.pm-mc__cabecera {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex: 0 0 auto;
	padding: 26px 70px 20px 28px;
	border-bottom: 1px solid #e6ddd1;
}
.pm-mc__titulo {
	margin: 0;
	font-family: "Tungsten Compressed", "Anton", "Instrument Sans", sans-serif;
	font-size: 40px;
	font-weight: 600;
	line-height: .9;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #16110e;
}
.pm-mc__recuento {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #6b625b;
}

/* Líneas */
.pm-mc__lineas {
	flex: 1 1 auto;
	min-height: 0;
	margin: 0;
	padding: 20px 20px 24px;
	list-style: none;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #f7f1e8;
}
.pm-mc__linea {
	display: flex;
	gap: 16px;
	margin: 0 0 12px;
	padding: 16px;
	border: 1px solid #e6ddd1;
	border-radius: 6px;
	background: #fff;
}
.pm-mc__linea:last-child {
	margin-bottom: 0;
}
.pm-mc__foto {
	flex: 0 0 84px;
	width: 84px;
}
.pm-mc__foto img {
	display: block;
	width: 84px;
	height: 84px;
	object-fit: contain;
	border-radius: 4px;
	background: #fff;
}
.pm-mc__datos {
	flex: 1 1 auto;
	min-width: 0;
}
.pm-mc__fila {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}
.pm-mc__nombre {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}
.pm-mc__nombre a {
	color: #16110e;
	text-decoration: none;
}
.pm-mc__nombre a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.pm-mc__importe {
	flex: 0 0 auto;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	color: #16110e;
}
.pm-mc__importe .amount {
	color: inherit;
	font-weight: inherit;
}
.pm-mc__datos dl.variation {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: #5c544e;
}
.pm-mc__datos dl.variation dt,
.pm-mc__datos dl.variation dd {
	display: inline;
	float: none;
	margin: 0;
	padding: 0;
	font-weight: 400;
}
.pm-mc__datos dl.variation dd::after {
	content: "";
	display: block;
}
.pm-mc__datos dl.variation dd p {
	display: inline;
	margin: 0;
}
.pm-mc__fila--acciones {
	align-items: center;
	margin-top: 12px;
}

/* Selector de cantidad */
.pm-mc__cantidad {
	display: inline-flex;
	align-items: stretch;
	height: 36px;
	border: 1px solid #e6ddd1;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}
.pm-mc .pm-mc__paso {
	width: 32px;
	min-width: 0;
	min-height: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #16110e;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}
.pm-mc .pm-mc__paso:hover {
	background: #f7f1e8;
	color: #16110e;
}
.pm-mc input.pm-mc__cant {
	width: 38px;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	color: #16110e;
	-moz-appearance: textfield;
	appearance: textfield;
}
.pm-mc input.pm-mc__cant::-webkit-outer-spin-button,
.pm-mc input.pm-mc__cant::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}
.pm-mc__unidad {
	font-size: 13px;
	color: #5c544e;
}
.pm-mc .pm-mc__eliminar {
	min-height: 0;
	margin: 0;
	padding: 4px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #5c544e;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.pm-mc .pm-mc__eliminar:hover {
	background: transparent;
	color: #16110e;
}

/* Pie fijo: totales y botones */
.pm-mc__pie {
	flex: 0 0 auto;
	padding: 22px 28px 26px;
	border-top: 1px solid #e6ddd1;
	background: #fff;
}
.pm-mc__totales {
	margin: 0 0 20px;
}
.pm-mc__total-fila {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 3px 0;
	font-size: 14px;
	color: #5c544e;
}
.pm-mc__total-fila dt,
.pm-mc__total-fila dd {
	margin: 0;
	padding: 0;
	font-weight: 400;
}
.pm-mc__total-fila .amount {
	color: inherit;
	font-weight: inherit;
}
.pm-mc__total-fila--total {
	margin-top: 12px;
	padding-top: 16px;
	border-top: 1px solid #e6ddd1;
	font-size: 19px;
	color: #16110e;
}
.pm-mc__total-fila--total dt,
.pm-mc__total-fila--total dd {
	font-weight: 600;
}
.pm-mc__total-fila--total small {
	margin-left: 4px;
	font-size: 12px;
	font-weight: 400;
	color: #6b625b;
}
.pm-mc a.pm-mc__boton {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 24px;
	border-radius: 4px;
	background: #16110e;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .15s ease;
}
.pm-mc a.pm-mc__boton:hover {
	background: #3a2c22;
	color: #fff;
}
.pm-mc a.pm-mc__enlace {
	display: block;
	width: fit-content;
	margin: 16px auto 0;
	color: #16110e;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.pm-mc a.pm-mc__enlace:hover {
	color: #5c544e;
}

/* Carrito vacío */
.pm-mc__vacio {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 22px;
	padding: 40px 28px;
	background: #f7f1e8;
	text-align: center;
}
.pm-mc__vacio .woocommerce-mini-cart__empty-message {
	margin: 0;
	text-align: center;
	font-size: 16px;
	color: #5c544e;
}

.pm-mc__aviso:not(.screen-reader-text) {
	margin: 0;
	padding: 10px 28px;
	background: #fbeaea;
	color: #8a1f1f;
	font-size: 13px;
}

@media (max-width: 480px) {
	.elementor-menu-cart__container .elementor-menu-cart__main {
		width: 100vw;
	}
	.pm-mc__cabecera {
		padding: 22px 64px 16px 20px;
	}
	.pm-mc__lineas {
		padding: 14px 12px 18px;
	}
	.pm-mc__linea {
		gap: 12px;
		padding: 12px;
	}
	.pm-mc__foto,
	.pm-mc__foto img {
		flex-basis: 68px;
		width: 68px;
		height: 68px;
	}
	.pm-mc__pie {
		padding: 18px 20px 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pm-mc,
	.pm-mc a.pm-mc__boton,
	.elementor-menu-cart__main .elementor-menu-cart__close-button {
		transition: none;
	}
}
