/**
 * FitPoints Upsell Carousel - Estilos Mobile-First
 * TreinaCOM Shop
 */

.tc-pts-upsell-container {
	background: #f8fbff;
	border: 1.5px solid #d0e3f8;
	border-radius: 14px;
	padding: 10px 12px;
	margin-bottom: 14px;
	box-sizing: border-box;
	width: 100%;
	position: relative;
	font-family: inherit;
	box-shadow: 0 2px 8px rgba(8, 44, 75, 0.04);
}

.tc-pts-context-checkout {
	margin-top: 10px;
	margin-bottom: 12px;
}

/* Cabeçalho de Justificativa */
.tc-pts-upsell-header {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.tc-pts-upsell-badge {
	background: #082c4b;
	color: #f9ae02;
	font-size: 11px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 9999px;
	letter-spacing: 0.02em;
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

.tc-pts-upsell-title {
	font-size: 12px;
	color: #1e293b;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
	flex: 1;
	min-width: 180px;
}

/* Container do Slider */
.tc-pts-slider-wrap {
	display: block;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.tc-pts-slide-track {
	width: 100%;
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	background: #ffffff;
	border: 1.5px solid #dbeafe;
	min-height: 72px;
	box-sizing: border-box;
	box-shadow: 0 2px 10px rgba(8, 44, 75, 0.05);
}

/* Setas de Navegação integradas DENTRO do card do produto à direita */
.tc-pts-card-nav {
	position: absolute;
	top: 6px;
	right: 8px;
	display: flex;
	align-items: center;
	gap: 4px;
	z-index: 10;
}

.tc-pts-nav-arrow {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	color: #334155;
	width: 22px;
	height: 22px;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: all 0.15s ease;
	flex-shrink: 0;
	outline: none;
	box-sizing: border-box;
	touch-action: manipulation;
	user-select: none;
}

.tc-pts-nav-arrow:hover {
	background: #082c4b;
	color: #ffffff;
	border-color: #082c4b;
}

.tc-pts-nav-arrow:active {
	transform: scale(0.92);
}

/* Card de 1 Artigo com Imagem Sangrada no Arredondamento */
.tc-pts-slide-item {
	display: none;
	align-items: center;
	gap: 10px;
	padding: 0 10px 0 0;
	box-sizing: border-box;
	width: 100%;
	min-height: 74px;
	height: 100%;
}

.tc-pts-slide-item.is-active {
	display: flex;
	animation: tcPtsFadeSlide 0.25s ease-out;
}

@keyframes tcPtsFadeSlide {
	from {
		opacity: 0;
		transform: translateX(6px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.tc-pts-item-thumb {
	width: 76px;
	min-width: 76px;
	height: 100%;
	min-height: 74px;
	border-radius: 12px 0 0 12px;
	overflow: hidden;
	background: #f8fafc;
	border: none;
	border-right: 1px solid #f1f5f9;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
}

.tc-pts-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 12px 0 0 12px;
}

.tc-pts-item-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-right: 6px;
}

.tc-pts-item-name {
	font-size: 13px;
	font-weight: 700;
	color: #082c4b;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.3;
	margin-bottom: 4px;
}

.tc-pts-item-name:hover {
	color: #0284c7;
}

.tc-pts-item-price-row {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: nowrap;
}

.tc-pts-item-price {
	font-size: 14px;
	font-weight: 800;
	color: #082c4b;
}

.tc-pts-item-price del {
	font-size: 11px;
	color: #94a3b8;
	margin-right: 3px;
}

.tc-pts-item-price ins {
	text-decoration: none;
	color: #16a34a;
}

.tc-pts-item-supplier-tag {
	font-size: 10px;
	font-weight: 700;
	color: #0284c7;
	background: #e0f2fe;
	padding: 2px 6px;
	border-radius: 4px;
	white-space: nowrap;
}

.tc-pts-item-action {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	padding-top: 18px;
}

/* Botão de Adicionar Rápido */
.tc-pts-btn-add {
	background: #f6a800;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 800;
	padding: 7px 12px;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s ease;
	line-height: 1.2;
	box-shadow: 0 2px 6px rgba(246, 168, 0, 0.35);
}

.tc-pts-btn-add:hover {
	background: #082c4b;
	color: #ffffff;
	transform: translateY(-1px);
}

.tc-pts-btn-add:active {
	transform: translateY(0);
}

.tc-pts-btn-add.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.tc-pts-btn-add.is-success {
	background: #16a34a !important;
	color: #ffffff !important;
}

/* Paginação em Pontos (Dots) */
.tc-pts-slider-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
}

.tc-pts-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #cbd5e1;
	transition: all 0.2s ease;
	cursor: pointer;
	touch-action: manipulation;
}

.tc-pts-dot:hover {
	background: #94a3b8;
}

.tc-pts-dot.is-active {
	width: 14px;
	border-radius: 9999px;
	background: #082c4b;
}

/* Ajustes Responsivos para Telas Maiores */
@media (min-width: 480px) {
	.tc-pts-upsell-container {
		padding: 12px 14px;
	}
	.tc-pts-slide-track {
		min-height: 80px;
	}
	.tc-pts-slide-item {
		min-height: 80px;
	}
	.tc-pts-item-thumb {
		width: 82px;
		min-width: 82px;
		min-height: 80px;
	}
	.tc-pts-item-name {
		font-size: 13.5px;
	}
	.tc-pts-btn-add {
		padding: 8px 14px;
		font-size: 12.5px;
	}
}
