/* ── Buscador de manuales — bloque Gutenberg ─────────────────────────────── */

.toshiba-search-block {
	font-family: inherit;
}

/* Formulario */
.toshiba-sb__form {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.toshiba-sb__input {
	flex: 1 1 260px;
	min-width: 0;
	padding: 10px 14px;
	font-size: 15px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}

.toshiba-sb__input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.toshiba-sb__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: #2563eb;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background .15s;
	white-space: nowrap;
}

.toshiba-sb__btn:hover { background: #1d4ed8; }
.toshiba-sb__btn:active { background: #1e40af; }

/* Estado y meta */
.toshiba-sb__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
	font-size: 14px;
	color: #374151;
}

.toshiba-sb__total em {
	color: #6b7280;
	font-style: normal;
}

/* Loading */
.toshiba-sb__loading {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 24px 0;
	color: #6b7280;
	font-size: 15px;
}

.toshiba-sb__spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid #e5e7eb;
	border-top-color: #2563eb;
	border-radius: 50%;
	animation: toshiba-spin .7s linear infinite;
}

@keyframes toshiba-spin { to { transform: rotate(360deg); } }

/* Mensajes */
.toshiba-sb__hint,
.toshiba-sb__error {
	margin: 12px 0;
	font-size: 14px;
}

.toshiba-sb__hint { color: #6b7280; }

.toshiba-sb__error {
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 6px;
	padding: 10px 14px;
}

/* Tabla (reutiliza estilos del plugin) */
.toshiba-sb__table {
	width: 100%;
}

/* Paginación */
.toshiba-sb__pagination {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: #374151;
}

.toshiba-sb__pagination .button {
	padding: 6px 14px;
	font-size: 13px;
	background: #f9fafb;
	border: 1px solid #d1d5db;
	border-radius: 5px;
	cursor: pointer;
	transition: background .15s;
}

.toshiba-sb__pagination .button:hover { background: #f3f4f6; }

/* Placeholder en el editor */
.toshiba-search-block-editor-placeholder {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px 24px;
	background: #f8faff;
	border: 2px dashed #93c5fd;
	border-radius: 8px;
	color: #1e3a8a;
}

.toshiba-search-block-editor-placeholder__icon {
	font-size: 28px;
	line-height: 1;
	color: #2563eb;
}

.toshiba-search-block-editor-placeholder__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
}

.toshiba-search-block-editor-placeholder__text strong {
	font-size: 15px;
}

/* Responsive */
@media ( max-width: 640px ) {
	.toshiba-sb__meta {
		flex-direction: column;
		align-items: flex-start;
	}
}
