/* Trofeos Colombia — Barra de compra fija
 * Valores de partida. Colores, tamaños y tipografías se sobrescriben desde Elementor.
 */

.tcsb {
	--tcsb-speed: 350ms;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	box-sizing: border-box;
	color: #1b1a17;
	background-color: #fff;
	box-shadow: 0 -8px 30px rgba(0, 0, 0, .12);
	transform: translateY(calc(100% + 40px));
	opacity: 0;
	visibility: hidden;
	transition: transform var(--tcsb-speed) cubic-bezier(.2, .7, .3, 1), opacity var(--tcsb-speed) ease, visibility 0s linear var(--tcsb-speed);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

.tcsb--anim-fade {
	transform: none;
}

.tcsb--anim-none {
	transition: none;
}

.tcsb.is-visible {
	transform: none;
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.tcsb *,
.tcsb *::before,
.tcsb *::after {
	box-sizing: border-box;
}

.tcsb__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 12px 24px;
}

.tcsb__media {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tcsb__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	transition: opacity .2s ease;
}

.tcsb__media img.is-swapping {
	opacity: 0;
}

.tcsb__text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.25;
}

.tcsb__lead {
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .7;
}

.tcsb__spec {
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tcsb.is-empty .tcsb__spec,
.tcsb.is-unavailable .tcsb__spec {
	font-weight: 400;
	opacity: .85;
	white-space: normal;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.tcsb__spec.is-changed {
	animation: tcsb-pop .45s ease;
}

@keyframes tcsb-pop {
	0% { opacity: .2; transform: translateY(4px); }
	100% { opacity: 1; transform: none; }
}

.tcsb__price {
	font-size: 14px;
}

.tcsb__price[hidden] {
	display: none;
}

.tcsb__price del {
	opacity: .6;
	margin-right: 6px;
}

.tcsb__price ins {
	text-decoration: none;
}

/* Botón: aislado de los estilos globales de botón del tema y del kit. */
.tcsb button.tcsb__btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 14px 26px;
	border: 1px solid transparent;
	border-radius: 2px;
	box-shadow: none;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: #fff;
	background-color: #1b1a17;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease, transform .15s ease;
	-webkit-tap-highlight-color: transparent;
}

.tcsb button.tcsb__btn:hover,
.tcsb button.tcsb__btn:focus {
	color: #fff;
	background-color: #000;
	box-shadow: none;
	text-decoration: none;
}

.tcsb button.tcsb__btn:active {
	transform: scale(.98);
}

.tcsb button.tcsb__btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.tcsb button.tcsb__btn:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.tcsb button.tcsb__btn.is-loading {
	cursor: progress;
	opacity: .8;
}

.tcsb__icon {
	display: inline-flex;
	line-height: 1;
}

.tcsb__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.tcsb-icon--after .tcsb__icon {
	order: 2;
}

/* Vista previa en el editor: la barra se queda en su sitio para poder diseñarla. */
.tcsb.tcsb--preview {
	position: relative;
	left: auto;
	right: auto;
	bottom: auto;
	transform: none;
	opacity: 1;
	visibility: visible;
}

.tcsb-empty {
	padding: 16px;
	text-align: center;
	border: 1px dashed currentColor;
	opacity: .6;
}

/* Resalta el selector cuando la barra lleva hasta él. */
.tcsb-flash {
	animation: tcsb-flash 1.4s ease;
}

@keyframes tcsb-flash {
	0%, 100% { box-shadow: 0 0 0 0 rgba(198, 96, 76, 0); }
	25% { box-shadow: 0 0 0 6px rgba(198, 96, 76, .35); }
}

/* Espacio al final de la página para que la barra no tape el pie. */
body.tcsb-reserve {
	padding-bottom: var(--tcsb-h, 0px);
}

/* Dispositivos (puntos de corte de Elementor por defecto). */
@media (min-width: 1025px) {
	.tcsb.tcsb--hide-desktop:not(.tcsb--preview) { display: none; }
}

@media (min-width: 768px) and (max-width: 1024px) {
	.tcsb.tcsb--hide-tablet:not(.tcsb--preview) { display: none; }
}

@media (max-width: 767px) {
	.tcsb.tcsb--hide-mobile:not(.tcsb--preview) { display: none; }

	.tcsb__inner {
		gap: 12px;
		padding: 10px 14px;
	}

	.tcsb__media {
		width: 44px;
		height: 44px;
	}

	.tcsb__spec {
		font-size: 15px;
	}

	.tcsb button.tcsb__btn {
		padding: 13px 16px;
		font-size: 13px;
	}

	.tcsb--m-stacked .tcsb__inner {
		flex-wrap: wrap;
	}

	.tcsb--m-stacked .tcsb__text {
		flex: 1 1 0;
	}

	.tcsb--m-stacked button.tcsb__btn {
		flex: 1 0 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tcsb,
	.tcsb__spec.is-changed {
		transition: none;
		animation: none;
	}
}
