/* Estilos base de Login y Carrito. Especificidad baja: los controles de Elementor ({{WRAPPER}}) siempre ganan. */

.wzpy-login,
.wzpy-cart {
	display: flex;
}
 
.woocommerce form.wzpy-login-form.login {
	border: 0 solid transparent;
}

.wzpy-login__button,
.wzpy-cart__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	line-height: 1;
	text-decoration: none;
	border: 0 solid transparent;
	box-sizing: border-box;
	transition: all .2s;
}

.wzpy-login__button svg,
.wzpy-cart__link svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Login: pastilla azul con icono de usuario + "Ingresar" */
.wzpy-login__button {
	padding: 6px 14px 6px 8px;
	border-radius: 50px;
	background: #1e90ff;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
}

.wzpy-login__button i,
.wzpy-login__button svg {
	font-size: 20px;
}

.wzpy-login__button:hover {
	background: #0b7ae6;
	color: #fff;
}

/* Carrito: icono blanco con contador */
.wzpy-cart__link {
	position: relative;
	padding: 6px;
	color: #fff;
	font-size: 14px;
}

.wzpy-cart__link i,
.wzpy-cart__link svg {
	font-size: 20px;
}

.wzpy-cart__link:hover {
	color: #1e90ff;
}

.wzpy-cart__count {
	position: absolute;
	top: -4px;
	right: -6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 50px;
	background: #1e90ff;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	box-sizing: border-box;
}

.wzpy-cart--hide-empty-yes .wzpy-cart__count[data-count="0"] {
	display: none;
}

/* ---------- Formulario de login (panel lateral) ---------- */

.wzpy-login-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
}

.wzpy-login-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.wzpy-login-form__label {
	color: #333;
	font-size: 14px;
	font-weight: 500;
}

.wzpy-login-form .wzpy-login-form__input {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #dcdcdc;
	border-radius: 6px;
	background: #fff;
	color: #333;
	font-size: 14px;
	box-sizing: border-box;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}

.wzpy-login-form .wzpy-login-form__input:focus-visible {
	border-color: #1e90ff;
}

.wzpy-login-form__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.wzpy-login-form__remember {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: #555;
	font-size: 13px;
	cursor: pointer;
}

.wzpy-login-form__link {
	color: #1e90ff;
	font-size: 13px;
	text-decoration: none;
}

.wzpy-login-form__link:hover {
	text-decoration: underline;
}

.wzpy-login-form .wzpy-login-form__submit {
	width: 100%;
	margin: 0;
	padding: 13px 16px;
	border: 0 solid transparent;
	border-radius: 6px;
	background: #1e90ff;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: all .2s;
}

.wzpy-login-form .wzpy-login-form__submit:hover {
	background: #0b7ae6;
}

.wzpy-login-form__register {
	margin: 0;
	color: #555;
	font-size: 13px;
	text-align: center;
}

/* ---------- Carrito lateral ---------- */

.wzpy-cart__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wzpy-cart__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 14px 0;
	border-top: 1px solid transparent;
}

.wzpy-cart__item + .wzpy-cart__item {
	border-top-color: #eee;
}

.wzpy-cart__item img {
	display: none;
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 4px;
}

.wzpy-cart--images-yes .wzpy-cart__item img {
	display: block;
}

.wzpy-cart__info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.wzpy-cart__info dl.variation {
	margin: 0;
	font-size: 12px;
}

.wzpy-cart__name {
	color: #222;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}

.wzpy-cart__name:hover {
	color: #1e90ff;
}

.wzpy-cart__meta {
	color: #666;
	font-size: 13px;
}

.wzpy-cart__remove {
	flex-shrink: 0;
	color: #999;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
}

.wzpy-cart__remove:hover {
	color: #e53935;
}

.wzpy-cart__empty {
	display: none;
	margin: 0;
	padding: 40px 0;
	color: #777;
	font-size: 14px;
	text-align: center;
}

.wzpy-cart__items[data-count="0"] + .wzpy-cart__empty {
	display: block;
}

.wzpy-drawer:has(.wzpy-cart__items[data-count="0"]) .wzpy-drawer__footer {
	display: none;
}

.wzpy-cart__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 6px;
	color: #333;
	font-size: 15px;
}

.wzpy-cart__total .wzpy-cart__subtotal {
	color: #222;
	font-weight: 700;
}

.wzpy-cart__btn {
	display: block;
	padding: 12px 16px;
	border: 1px solid #1e90ff;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: all .2s;
}

.wzpy-cart__btn--cart {
	background: transparent;
	color: #1e90ff;
}

.wzpy-cart__btn--cart:hover {
	background: #eef6ff;
	color: #1e90ff;
}

.wzpy-cart__btn--checkout {
	background: #1e90ff;
	color: #fff;
}

.wzpy-cart__btn--checkout:hover {
	background: #0b7ae6;
	color: #fff;
}
