/* Bloque de subasta en la ficha del lote */

.cb-auction-box {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 16px 20px;
	margin: 16px 0;
}

.cb-auction-status {
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.8em;
	letter-spacing: 0.04em;
	margin: 0 0 8px;
}

.cb-status-live { color: #1a7f37; }
.cb-status-closed { color: #888; }
.cb-status-scheduled { color: #9a6700; }

.cb-auction-box p {
	margin: 4px 0;
}

.cb-auction-countdown {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.cb-auction-reserve {
	color: #9a6700;
	font-size: 0.9em;
}

.cb-you-are-top {
	color: #1a7f37;
	font-weight: 600;
}

.cb-bid-form {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.cb-bid-input {
	flex: 1 1 140px;
	min-width: 120px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.cb-bid-notice {
	margin-top: 10px;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 0.92em;
}

.cb-bid-notice.cb-ok {
	background: #e6f4ea;
	color: #1a7f37;
}

.cb-bid-notice.cb-err {
	background: #fdecea;
	color: #b3261e;
}

.cb-bid-login {
	margin-top: 12px;
	font-size: 0.95em;
}

/* Badges en el catálogo */
.cb-loop-badge {
	display: inline-block;
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding: 2px 10px;
	border-radius: 999px;
	margin-bottom: 6px;
}
.cb-badge-live { background: #e6f4ea; color: #1a7f37; }
.cb-badge-scheduled { background: #fff3cd; color: #9a6700; }
.cb-badge-closed { background: #eee; color: #777; }

/* Seguir lote — colores propios SIEMPRE definidos: los temas pintan
   los <button> genéricos (p. ej. texto blanco) y el botón quedaba
   invisible fuera del hover. */
.cb-watch-toggle {
	background: #fff !important;
	border: 1px solid #b5b5b5 !important;
	color: #333 !important;
	border-radius: 4px;
	padding: 6px 14px;
	cursor: pointer;
	font-size: 0.9em;
	line-height: 1.4;
	transition: background 0.15s, border-color 0.15s;
}
.cb-watch-toggle:hover {
	background: #f2f2f2 !important;
	border-color: #8a8a8a !important;
	color: #111 !important;
}
.cb-watch-toggle[data-watching="1"] {
	background: #1a7f37 !important;
	border-color: #14652c !important;
	color: #fff !important;
}
.cb-watch-toggle[data-watching="1"]:hover {
	background: #14652c !important;
	border-color: #0f4f22 !important;
	color: #fff !important;
}

/* Página del remate y listado */
.cb-event-header { margin: 12px 0 20px; }
.cb-events-filter a { margin-right: 10px; }
.cb-events-filter a.cb-current { font-weight: 700; text-decoration: underline; }
.cb-event-card { border: 1px solid #ddd; border-radius: 6px; padding: 14px 18px; margin-bottom: 14px; }
.cb-event-card h3 { margin: 0 0 6px; }
.cb-event-card p { margin: 2px 0; }

/* Página de subastas con sidebar de fechas.
   Estructura tipo tienda: la página suele renderizar en un contenedor
   angosto de artículo, así que el bloque "rompe" a ancho completo y se
   centra al ancho de contenido del tema (var de Kadence con fallback),
   con el menú de fechas a la izquierda y el grid en el resto. */
.cb-subastas {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	width: min(100vw - 48px, var(--global-content-width, 1290px));
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}
.cb-subastas-sidebar { border: 1px solid #e3e3e3; border-radius: 6px; padding: 14px 18px; position: sticky; top: 20px; }
.cb-subastas-sidebar h4 { margin: 0 0 10px; }
.cb-subastas-sidebar ul { list-style: none; margin: 0; padding: 0; }
.cb-subastas-sidebar li { margin: 6px 0; }
.cb-subastas-sidebar li.cb-current > a { font-weight: 700; text-decoration: underline; }
.cb-subastas-sidebar .count { color: #888; font-size: 0.85em; }
.cb-subastas-day { margin: 24px 0 8px; padding-bottom: 6px; border-bottom: 2px solid #eee; }
.cb-subastas-main > .cb-subastas-day:first-child { margin-top: 0; }
@media (max-width: 768px) {
	.cb-subastas { grid-template-columns: 1fr; }
	.cb-subastas-sidebar { position: static; }
}

/* Buscador de lotes en el sidebar de subastas */
.cb-subastas-search { margin-bottom: 18px; }
.cb-subastas-search h4 { margin: 0 0 8px; }
.cb-subastas-search input[type="search"] {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	margin-bottom: 8px;
	box-sizing: border-box;
}
.cb-subastas-search button { width: 100%; }
.cb-subastas-sidebar > h4 { margin-top: 4px; }
.cb-subastas-results { margin: 0 0 14px; }

/* Desplegable predictivo del buscador de lotes */
.cb-subastas-search { position: relative; }
.cb-search-suggest {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 50;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 0 0 6px 6px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.12);
	max-height: 420px;
	overflow-y: auto;
}
.cb-suggest-item {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 8px 10px;
	text-decoration: none;
	color: #222;
	border-bottom: 1px solid #f0f0f0;
}
.cb-suggest-item:hover { background: #f7f7f7; }
.cb-suggest-item img, .cb-suggest-noimg {
	width: 42px;
	height: 42px;
	object-fit: cover;
	border-radius: 4px;
	background: #eee;
	flex-shrink: 0;
}
.cb-suggest-text { display: flex; flex-direction: column; min-width: 0; }
.cb-suggest-title {
	font-size: 0.88em;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.cb-suggest-meta { font-size: 0.78em; color: #777; margin-top: 2px; }
.cb-suggest-empty { padding: 10px 12px; color: #888; font-size: 0.9em; }
