/* Panel lateral compartido (login, carrito). Especificidad baja: los controles de Elementor ganan. */

.wzpy-drawer {
	--wzpy-drawer-duration: 300ms;
	position: fixed;
	inset: 0;
	z-index: 99999;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear var(--wzpy-drawer-duration);
}

.wzpy-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.wzpy-drawer__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, .5);
	opacity: 0;
	transition: opacity var(--wzpy-drawer-duration) ease;
}

.wzpy-drawer.is-open .wzpy-drawer__overlay {
	opacity: 1;
}

.wzpy-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: 40%;
	max-width: 100%;
	background: #fff;
	box-shadow: -8px 0 30px rgba(0, 0, 0, .15);
	transform: translateX(100%);
	transition: transform var(--wzpy-drawer-duration) cubic-bezier(.32, .72, 0, 1);
}

.wzpy-drawer--left .wzpy-drawer__panel {
	right: auto;
	left: 0;
	transform: translateX(-100%);
}

.wzpy-drawer.is-open .wzpy-drawer__panel {
	transform: none;
}

.wzpy-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 24px;
	border-bottom: 1px solid #eee;
}

.wzpy-drawer__title {
	color: #222;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.wzpy-drawer .wzpy-drawer__close {
	display: inline-flex;
	padding: 4px;
	border: 0;
	background: none;
	color: #333;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.wzpy-drawer__close svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

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

.wzpy-drawer__body {
	flex: 1 1 auto;
	padding: 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.wzpy-drawer__footer {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 24px;
	border-top: 1px solid #eee;
}

html.wzpy-drawer-lock {
	overflow: hidden;
}

@media (max-width: 767px) {
	.wzpy-drawer__panel {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wzpy-drawer,
	.wzpy-drawer__overlay,
	.wzpy-drawer__panel {
		transition-duration: 0s;
	}
}
