/**
 * Mini-cart (drawer) — estructura y transiciones (neutral, sin marca).
 * El aspecto visual del panel y su interior lo aporta cada tema en su base.css
 * (`.tz-minicart__panel` y las clases `tz-mc-*` / `tzb-mc-*` / `tzc-mc-*`).
 */

.tz-minicart {
	position: fixed;
	inset: 0;
	z-index: 1000;
	visibility: hidden;
	pointer-events: none;
}
.tz-minicart.is-open {
	visibility: visible;
	pointer-events: auto;
}

.tz-minicart__scrim {
	position: absolute;
	inset: 0;
	background: rgba(10, 15, 30, 0.5);
	opacity: 0;
	transition: opacity 0.25s ease;
}
.tz-minicart.is-open .tz-minicart__scrim {
	opacity: 1;
}

.tz-minicart__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 480px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
	will-change: transform;
	box-shadow: -12px 0 44px rgba(10, 15, 30, 0.22);
}
.tz-minicart.is-open .tz-minicart__panel {
	transform: none;
}

/* El interior (fragmento) ocupa todo el alto para poder fijar header/footer. */
.tz-minicart__fragment {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: 100%;
}

/* Bloquea el scroll del fondo cuando el drawer está abierto. */
.tz-mc-lock {
	overflow: hidden;
}

/* Icono/contador de la cabecera (estructura; color por tema). */
.tz-cart-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	cursor: pointer;
}
.tz-cart-count {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}
.tz-cart-count:not(.is-filled) {
	display: none;
}

@media (max-width: 600px) {
	.tz-minicart__panel {
		width: 100%;
	}
}

/* Error de validación del campo "Tu diseño" (lo inyecta mini-cart.js).
   Neutral: usa las variables del tema si existen, con respaldo propio. */
.tz-field-error {
	margin: 0.4rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--tz-color-error, #b3261e);
}
[name="textilizate_wetransfer"].has-error {
	border-color: var(--tz-color-error, #b3261e);
	outline-color: var(--tz-color-error, #b3261e);
}
