/* Cuenta Ovejas base
 * Paleta manual 2024: noche #151735, lavanda #a0a3d9, crema #f0ebe5,
 * azul medio #54578c, coral/acento #dd4f52.
 * Se usan fuentes del tema para evitar cargar archivos de tipografía externos.
 */
.tp-price .tp-orig,
.woocommerce-cart-form del,
.woocommerce-checkout-review-order-table del,
.mini_cart_item del {
	display: inline-block !important;
	color: rgba(84,87,140,.82);
	text-decoration: line-through;
	margin-right: 5px;
	opacity: .78;
}
.tp-price .tp-new,
.woocommerce-cart-form ins,
.woocommerce-checkout-review-order-table ins,
.mini_cart_item ins {
	display: inline-block !important;
	text-decoration: none;
	font-weight: 800;
	color: #151735;
	background: transparent !important;
}
.tp-price .tp-badge,
.tp-cart-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 9px;
	border-radius: 20px;
	background: #151735;
	color: #f0ebe5;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.5;
	vertical-align: middle;
	box-shadow: 0 5px 14px rgba(21,23,53,.16);
}
.tp-bogo-badge { background: #a0a3d9; color: #151735; }

.tp-progress {
	position: relative;
	padding: 17px 18px 16px;
	background: linear-gradient(180deg, rgba(240,235,229,.98), rgba(255,255,255,.96));
	border: 1px solid rgba(160,163,217,.45);
	border-radius: 18px;
	margin: 10px 0 16px;
	box-shadow: 0 10px 26px rgba(21,23,53,.08);
	color: #151735;
	overflow: hidden;
}
.tp-progress::after {
	content: "zzz";
	position: absolute;
	right: 14px;
	top: 8px;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .08em;
	color: rgba(160,163,217,.55);
	transform: rotate(-10deg);
	pointer-events: none;
}
.widget_shopping_cart_content .tp-progress { margin: 8px 10px 14px; }
.tp-progress-msg {
	position: relative;
	z-index: 1;
	margin: 0 0 11px;
	text-align: center;
	font-size: 14px;
	line-height: 1.38;
	color: #151735;
}
.tp-progress-msg strong { color: #dd4f52; font-weight: 900; }
.tp-progress-bg {
	position: relative;
	z-index: 1;
	height: 12px;
	border-radius: 999px;
	background: rgba(84,87,140,.14);
	overflow: hidden;
}
.tp-progress-bg span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #a0a3d9 0%, #54578c 48%, #151735 100%);
	transition: width .35s ease;
}
.tp-progress-steps {
	position: relative;
	z-index: 1;
	margin-top: 8px;
	text-align: center;
	font-size: 11px;
	letter-spacing: .2px;
	color: #54578c;
}
.tp-progress-steps strong { color: #151735; }

.tp-popup-overlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(21,23,53,.66);
	z-index: 9999999;
	font-family: inherit, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	backdrop-filter: blur(2px);
}
.tp-popup-box {
	width: min(90vw, 472px);
	position: relative;
	text-align: center;
	border-radius: 20px;
	background: #f0ebe5;
	color: #151735;
	padding: 34px 28px 29px;
	box-shadow: 0 24px 70px rgba(21,23,53,.34);
	border: 1px solid rgba(160,163,217,.5);
	border-top: 7px solid #151735;
	animation: tpPopIn .32s ease-out forwards;
	overflow: hidden;
}
.tp-popup-box::before {
	content: "zzz";
	position: absolute;
	right: 38px;
	top: 20px;
	font-size: 17px;
	font-weight: 900;
	letter-spacing: .08em;
	color: rgba(160,163,217,.75);
	transform: rotate(-13deg);
	pointer-events: none;
}
.tp-popup-close {
	position: absolute;
	right: 14px;
	top: 10px;
	border: 0;
	background: transparent;
	font-size: 27px;
	line-height: 1;
	cursor: pointer;
	color: #151735;
	opacity: .6;
	z-index: 2;
}
.tp-popup-close:hover { opacity: 1; }
.tp-popup-kicker {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(160,163,217,.38);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .7px;
	text-transform: uppercase;
	color: #151735;
}
.tp-popup-box h2 {
	margin: 12px 0 10px;
	font-size: 25px;
	line-height: 1.13;
	font-weight: 900;
	color: #151735;
}
.tp-popup-body p { margin: 0 0 14px; color: #54578c; font-size: 15px; line-height: 1.48; }
.tp-popup-body strong { color: #151735; font-weight: 900; }
.tp-popup-list {
	margin: 0 auto 18px;
	padding: 13px 14px;
	border-radius: 15px;
	background: rgba(255,255,255,.78);
	border: 1px solid rgba(160,163,217,.25);
	font-weight: 800;
	color: #151735;
}

.tp-conditions {
	position: relative;
	display: inline-flex;
	justify-content: center;
	margin: -4px auto 16px;
	font-size: 12px;
	font-weight: 900;
	color: #151735;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: help;
}
.tp-conditions-label::after {
	content: " ⓘ";
	font-weight: 800;
	color: #dd4f52;
}
.tp-conditions-tip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	transform: translateX(-50%);
	width: min(300px, 76vw);
	padding: 12px 14px;
	border-radius: 13px;
	background: #151735;
	color: #f0ebe5;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.38;
	box-shadow: 0 12px 30px rgba(21,23,53,.30);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
	z-index: 3;
}
.tp-conditions-tip::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translateX(-50%);
	border: 7px solid transparent;
	border-top-color: #151735;
}
.tp-conditions:hover .tp-conditions-tip,
.tp-conditions:focus .tp-conditions-tip,
.tp-conditions:focus-within .tp-conditions-tip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(-2px);
}

.tp-popup-btn {
	display: inline-flex;
	justify-content: center;
	width: 100%;
	border: 0;
	border-radius: 13px;
	background: #151735;
	color: #f0ebe5 !important;
	text-decoration: none !important;
	font-weight: 900;
	padding: 13px 16px;
	cursor: pointer;
	transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
	box-shadow: 0 10px 22px rgba(21,23,53,.18);
}
.tp-popup-btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 26px rgba(21,23,53,.24); }
@keyframes tpPopIn { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.tp-popup-products {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 10px;
	margin: 14px auto 5px;
	flex-wrap: wrap;
}
.tp-popup-product {
	width: 92px;
	text-decoration: none !important;
	color: #151735 !important;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
}
.tp-popup-product-img {
	width: 72px !important;
	height: 72px !important;
	object-fit: cover;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 9px 22px rgba(21,23,53,.15);
	border: 2px solid rgba(160,163,217,.55);
}
.tp-popup-products.is-single .tp-popup-product {
	width: min(220px, 70vw);
}
.tp-popup-products.is-single .tp-popup-product-img {
	width: 104px !important;
	height: 104px !important;
}
.tp-popup-product span {
	font-size: 10px;
	line-height: 1.22;
	font-weight: 800;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
@media (max-width: 420px) {
	.tp-popup-box { padding-left: 20px; padding-right: 20px; }
	.tp-popup-box h2 { font-size: 23px; }
	.tp-popup-product { width: 78px; }
	.tp-popup-product-img { width: 64px !important; height: 64px !important; }
}
