/* Ventana "Tus favoritos" (WPC Smart Wishlist) con el estilo de Blosoom */
html body .woosw-popup {
	--w-texto: #23433F;
	--w-verde: #366661;
	--w-rosa: #F6C8C7;
	--w-rosa-s: #FDF1F1;
	--w-rosa-t: #FF77A9;
	--w-linea: rgba(35, 67, 63, .12);
	--w-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--w-serif: "Noto Serif Display", Georgia, serif;
	padding: 0 16px;
	background: rgba(35, 67, 63, .42);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	font-family: var(--w-font);
	color: var(--w-texto);
}
html body .woosw-popup .woosw-popup-inner .woosw-popup-content {
	display: flex;
	flex-direction: column;
	max-width: 540px;
	height: auto !important;
	min-height: 0 !important;
	max-height: min(86vh, 720px);
	border-radius: 6px !important;
	background: #fff;
	box-shadow: 0 30px 70px -30px rgba(35, 67, 63, .55);
	overflow: hidden;
}

/* ---------- Cabecera ---------- */
html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-top {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	height: auto;
	padding: 22px 24px 18px;
	border-bottom: 1px solid var(--w-linea);
	background: #fff;
	color: var(--w-texto);
	font: italic 300 26px/1.15 var(--w-serif);
	line-height: 1.15;
	text-transform: none;
}
html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-top::before {
	top: 0;
	font-size: 20px;
	line-height: 1;
	font-style: normal;
	color: var(--w-rosa-t);
}
html body .woosw-popup .woosw-popup-content-top .woosw-name { font: inherit; text-transform: none; }
html body .woosw-popup .woosw-popup-content-top .woosw-count-wrapper {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	font: inherit;
}
html body .woosw-popup .woosw-popup-content-top .woosw-count-wrapper::before,
html body .woosw-popup .woosw-popup-content-top .woosw-count-wrapper::after { content: none !important; }
html body .woosw-popup .woosw-popup-content-top .woosw-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--w-rosa-s);
	color: var(--w-rosa-t);
	font: 500 12.5px/1 var(--w-font);
	font-style: normal;
}
html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-top .woosw-popup-close {
	position: relative !important;
	top: auto;
	right: auto !important;
	left: auto !important;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	margin-left: auto;
	border-radius: 50%;
	background: var(--w-rosa-s);
	box-shadow: none;
	cursor: pointer;
	transition: background-color .2s ease;
}
html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-top .woosw-popup-close:hover { background: var(--w-rosa); }
html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-top .woosw-popup-close::before,
html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-top .woosw-popup-close::after {
	left: calc(50% - 7px);
	width: 14px;
	height: 1.5px;
	background-color: var(--w-texto);
}

/* ---------- Ramos guardados ---------- */
html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-mid {
	flex: 1 1 auto;
	min-height: 0;
	max-height: none;
	overflow-y: auto !important;
	padding: 6px 0;
	background: #fff;
}
html body .woosw-popup .woosw-items .woosw-item .woosw-item-inner {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 14px;
	padding: 14px 24px;
	border-top: 0;
	border-bottom: 1px solid var(--w-linea);
}
html body .woosw-popup .woosw-items .woosw-item:last-child .woosw-item-inner { border-bottom: 0; }
html body .woosw-popup .woosw-items .woosw-item .woosw-item--image {
	flex: 0 0 72px;
	width: 72px;
	margin: 0;
	padding: 0;
}
html body .woosw-popup .woosw-items .woosw-item .woosw-item--image img {
	display: block;
	width: 72px !important;
	height: 90px !important;
	max-width: none;
	margin: 0;
	border-radius: 4px;
	object-fit: cover;
}
html body .woosw-popup .woosw-items .woosw-item .woosw-item--info { flex: 1 1 auto; min-width: 0; padding: 0; }
html body .woosw-popup .woosw-items .woosw-item .woosw-item--name a {
	display: block;
	color: var(--w-texto) !important;
	font: 500 15px/1.35 var(--w-font) !important;
	letter-spacing: 0;
	text-transform: none !important;
	text-decoration: none !important;
}
html body .woosw-popup .woosw-items .woosw-item .woosw-item--name a:hover { color: var(--w-rosa-t) !important; }
html body .woosw-popup .woosw-items .woosw-item .woosw-item--price {
	margin-top: 4px;
	color: var(--w-texto);
	font: 500 14.5px/1.3 var(--w-font);
}
html body .woosw-popup .woosw-items .woosw-item .woosw-item--price .woocommerce-Price-amount { color: var(--w-texto); }
html body .woosw-popup .woosw-items .woosw-item .woosw-item--time {
	margin-top: 3px;
	font: 400 12.5px/1.3 var(--w-font);
	opacity: .55;
}
html body .woosw-popup .woosw-items .woosw-item .woosw-item--time::before { content: "Guardado el "; }
html body .woosw-popup .woosw-items .woosw-item .woosw-item--actions { flex: 0 0 auto; margin: 0; text-align: right; }
html body .woosw-popup .woosw-items .woosw-item .woosw-item--stock:empty,
html body .woosw-popup .woosw-items .woosw-item .woosw-item--atc p:empty { display: none; }
html body .woosw-popup .woosw-items .woosw-item .woosw-item--atc .button,
html body .woosw-popup .woosw-items .woosw-item .woosw-item--atc a.button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	height: 40px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 1px solid var(--w-verde) !important;
	border-radius: 3px !important;
	background: var(--w-verde) !important;
	color: #fff !important;
	box-shadow: none !important;
	font: 500 11px/1 var(--w-font) !important;
	letter-spacing: .14em !important;
	text-transform: uppercase !important;
	white-space: nowrap;
	transition: background-color .2s ease;
}
html body .woosw-popup .woosw-items .woosw-item .woosw-item--atc .button:hover { background: #2C5550 !important; }
html body .woosw-popup .woosw-items .woosw-item .woosw-item--atc .button span { color: inherit; font: inherit; }
html body .woosw-popup .woosw-items .woosw-item .woosw-item--atc .added_to_cart { display: block; margin-top: 6px; color: var(--w-verde) !important; font: 500 12.5px/1.3 var(--w-font); }
/* Quitar de la lista: papelera discreta al final */
html body .woosw-popup .woosw-items .woosw-item .woosw-item--remove {
	order: 9;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	margin: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--w-texto);
	opacity: .45;
	cursor: pointer;
	transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}
html body .woosw-popup .woosw-items .woosw-item .woosw-item--remove:hover { opacity: 1; background: var(--w-rosa-s); color: var(--w-rosa-t); }
html body .woosw-popup .woosw-items .woosw-item .woosw-item--remove span::before { font-size: 16px; color: inherit; }

/* Lista vacía */
html body .woosw-popup .woosw-popup-content-mid-message {
	padding: 34px 28px !important;
	color: var(--w-texto);
	font: 400 15px/1.6 var(--w-font) !important;
	text-align: center;
}

/* ---------- Botones de abajo ---------- */
html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-bot {
	flex: 0 0 auto;
	position: relative;
	display: block;
	padding: 0;
	border-top: 1px solid var(--w-linea);
	background: #fff;
}
html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-bot .woosw-popup-content-bot-inner {
	display: flex;
	gap: 10px;
	padding: 16px 24px 20px;
}
html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-bot .woosw-popup-content-bot-inner a {
	display: inline-flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	height: 48px !important;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 1px solid var(--w-verde) !important;
	border-radius: 3px !important;
	box-shadow: none !important;
	font: 500 12px/1 var(--w-font) !important;
	letter-spacing: .14em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease;
}
html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-bot .woosw-popup-content-bot-inner .woosw-page { background: var(--w-verde) !important; color: #fff !important; }
html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-bot .woosw-popup-content-bot-inner .woosw-page:hover { background: #2C5550 !important; box-shadow: none !important; }
html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-bot .woosw-popup-content-bot-inner .woosw-continue { background: transparent !important; color: var(--w-verde) !important; }
html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-bot .woosw-popup-content-bot-inner .woosw-continue:hover { background: var(--w-verde) !important; color: #fff !important; }
/* Aviso "se ha guardado" */
html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-bot .woosw-notice {
	height: 100%;
	top: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
	background: var(--w-rosa-s);
	color: var(--w-texto);
	font: 400 14px/1.4 var(--w-font);
	text-align: center;
}
html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-bot .woosw-notice.woosw-notice-show { top: 0; }
html body .woosw-popup .woosw-popup-content-bot .woosw-notice strong { font-weight: 600; }

/* ---------- Móvil ---------- */
@media (max-width: 520px) {
	html body .woosw-popup .woosw-popup-inner .woosw-popup-content { max-width: none; max-height: 88vh; }
	html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-top { padding: 18px 18px 14px; font-size: 23px; }
	html body .woosw-popup .woosw-items .woosw-item .woosw-item-inner { flex-wrap: wrap; padding: 14px 18px; gap: 12px; }
	html body .woosw-popup .woosw-items .woosw-item .woosw-item--info { flex: 1 1 calc(100% - 130px); }
	html body .woosw-popup .woosw-items .woosw-item .woosw-item--remove { order: 0; }
	html body .woosw-popup .woosw-items .woosw-item .woosw-item--actions { order: 10; flex: 1 1 100%; }
	html body .woosw-popup .woosw-items .woosw-item .woosw-item--atc .button { width: 100%; }
	html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-bot .woosw-popup-content-bot-inner { flex-direction: column; padding: 14px 18px 18px; }
	html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-bot .woosw-popup-content-bot-inner a { flex: 0 0 auto; width: 100%; }
}

/* Rejilla fija de cada ramo: foto · datos · botón · papelera (en móvil el botón pasa debajo) */
html body .woosw-popup .woosw-items .woosw-item .woosw-item-inner {
	display: grid !important;
	grid-template-columns: 72px minmax(0, 1fr) auto 32px;
	grid-template-areas: "img info atc del";
	align-items: center;
}
html body .woosw-popup .woosw-items .woosw-item .woosw-item--image { grid-area: img; float: none !important; }
html body .woosw-popup .woosw-items .woosw-item .woosw-item--info { grid-area: info; float: none !important; width: auto !important; }
html body .woosw-popup .woosw-items .woosw-item .woosw-item--actions { grid-area: atc; float: none !important; width: auto !important; }
html body .woosw-popup .woosw-items .woosw-item .woosw-item--remove { grid-area: del; float: none !important; }
html body .woosw-popup .woosw-items .woosw-item .woosw-item--note,
html body .woosw-popup .woosw-items .woosw-item .woosw-item--badges:empty { display: none; }
html body .woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-bot .woosw-popup-content-bot-inner a {
	display: flex !important;
	line-height: 1 !important;
	text-align: center;
}
@media (max-width: 520px) {
	html body .woosw-popup .woosw-items .woosw-item .woosw-item-inner {
		grid-template-columns: 72px minmax(0, 1fr) 32px;
		grid-template-areas: "img info del" "img atc atc";
		gap: 8px 12px;
		align-items: start;
	}
	html body .woosw-popup .woosw-items .woosw-item .woosw-item--actions { text-align: left; }
	html body .woosw-popup .woosw-items .woosw-item .woosw-item--atc { flex: 1 1 100%; width: 100%; }
	html body .woosw-popup .woosw-items .woosw-item .woosw-item--atc > div { display: block; }
	html body .woosw-popup .woosw-items .woosw-item .woosw-item--atc a.button { display: flex !important; width: 100% !important; height: 38px !important; }
}
