.tkcs-block-wrapper{
	clear: both;
	width: 100%;
	display: block;
	box-sizing: border-box;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid #e5e7eb;
	/* Kadence (y otros temas) colocan la galería y el precio en una rejilla
	   CSS de 2 columnas; sin esto, el bloque cae como si fuera una columna
	   más en vez de ocupar toda la fila. La clase "woocommerce-tabs" (además
	   de la nuestra) hace que herede el mismo ancho/margen que usa el propio
	   tema para la pestaña "Descripción", en vez de estirarse hasta el borde
	   de la pantalla: si el tema define un ancho para .woocommerce-tabs, esa
	   regla del tema gana sobre esta por cargarse después. */
	grid-column: 1 / -1;
	float: none;
	position: relative;
	max-width: 100%;
}
.tkcs-block{
	margin: 0 0 28px 0;
	padding: 18px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fafafa;
	box-sizing: border-box;
}
.tkcs-block-title{
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 700;
}
.tkcs-cards{
	display: flex;
	align-items: stretch;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 6px;
	scroll-snap-type: x proximity;
}
.tkcs-card{
	position: relative;
	flex: 0 0 180px;
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 14px 12px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
.tkcs-card-main{ border-color:#111; }
.tkcs-plus{
	align-self: center;
	font-size: 22px;
	font-weight: 700;
	color: #9ca3af;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}
.tkcs-card-image img{
	width: 96px;
	height: 96px;
	object-fit: contain;
	border-radius: 8px;
}
.tkcs-card-name{
	font-size: 12.5px;
	line-height: 1.3;
	color: #111;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 32px;
}
a.tkcs-card-name:hover{ text-decoration: underline; }
.tkcs-card-price{
	font-weight: 700;
	font-size: 13px;
}
.tkcs-checkbox-label{
	font-size: 11px;
	display: flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
}
.tkcs-card.tkcs-removed{
	display: none;
}
.tkcs-remove{
	position: absolute;
	top: 4px;
	right: 4px;
	width: 22px;
	height: 22px;
	line-height: 20px;
	border-radius: 50%;
	border: 1px solid #e5e7eb;
	background: #fff;
	cursor: pointer;
	font-size: 12px;
	color: #6b7280;
	padding: 0;
}
.tkcs-remove:hover{ background:#fee2e2; color:#b91c1c; border-color:#fecaca; }
.tkcs-select-options{
	font-size: 11px !important;
	padding: 4px 8px !important;
	min-height: auto !important;
	line-height: 1.4 !important;
}

.tkcs-footer{
	margin-top: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.tkcs-total{ font-size: 15px; }
.tkcs-total-amount{ font-weight: 700; }
.tkcs-add-all{
	white-space: nowrap;
}
.tkcs-add-all[disabled]{ opacity: .6; cursor: default; }
.tkcs-message{
	margin-top: 8px;
	font-size: 13px;
}
.tkcs-message.is-success{ color:#166534; }
.tkcs-message.is-error{ color:#b91c1c; }

/* Móvil: carrusel deslizante ocupando poco espacio */
@media (max-width: 640px){
	.tkcs-block{ padding: 14px; border-radius: 10px; }
	.tkcs-block-title{ font-size: 16px; }
	.tkcs-card{ flex-basis: 138px; padding: 12px 10px; }
	.tkcs-card-image img{ width: 68px; height: 68px; }
	.tkcs-footer{ flex-direction: column; align-items: stretch; }
	.tkcs-add-all{ width: 100%; }
}
