/**
 * Table / list rows — .bm-table, .bm-list-row.
 * Edit this file only to change list/table branding.
 */

.joc-blockora-morph-app .bm-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.joc-blockora-morph-app .bm-table th,
.joc-blockora-morph-app .bm-table td {
	padding: 0.85rem 1.25rem;
	text-align: left;
	vertical-align: middle;
	border-bottom: 1px solid color-mix(in srgb, var(--bm-color-outline-variant) 20%, transparent);
	font-size: 13px;
	color: var(--bm-color-on-surface);
}

.joc-blockora-morph-app .bm-table th {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bm-color-outline);
	background: var(--bm-color-surface-container, #eaedff);
}

.joc-blockora-morph-app .bm-table tbody tr {
	transition: background-color var(--bm-duration) ease;
}

.joc-blockora-morph-app .bm-table tbody tr:hover td {
	background: color-mix(in srgb, var(--bm-color-surface-low) 80%, transparent);
}

.joc-blockora-morph-app .bm-table tbody tr:last-child td {
	border-bottom: 0;
}

.joc-blockora-morph-app .bm-list-rows {
	display: block;
}

.joc-blockora-morph-app .bm-list-row {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid color-mix(in srgb, var(--bm-color-outline-variant) 15%, transparent);
	transition: background-color var(--bm-duration) ease;
}

.joc-blockora-morph-app .bm-list-row:last-child {
	border-bottom: 0;
}

.joc-blockora-morph-app .bm-list-row:hover {
	background: color-mix(in srgb, var(--bm-color-surface-low) 70%, transparent);
}

/* Gutenberg blocks list cards */
.joc-blockora-morph-app .bm-gb-list {
	display: flex;
	flex-direction: column;
}

.joc-blockora-morph-app .bm-gb-card {
	display: grid;
	grid-template-columns: minmax(148px, 188px) minmax(0, 1fr);
	gap: 1rem;
	align-items: stretch;
	padding: 1.1rem 1.25rem;
	border-bottom: 1px solid color-mix(in srgb, var(--bm-color-outline-variant) 15%, transparent);
	transition: background-color var(--bm-duration) ease;
}

.joc-blockora-morph-app .bm-gb-list--selectable .bm-gb-card {
	grid-template-columns: 28px minmax(148px, 188px) minmax(0, 1fr);
}

.joc-blockora-morph-app .bm-gb-bulk {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	padding: 0.85rem 1.25rem;
	border-bottom: 1px solid color-mix(in srgb, var(--bm-color-outline-variant) 18%, transparent);
	background: color-mix(in srgb, #fef9c3 55%, var(--bm-color-surface-lowest));
}

.joc-blockora-morph-app .bm-gb-bulk__info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
}

.joc-blockora-morph-app .bm-gb-bulk__select-all {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--bm-color-on-surface);
	cursor: pointer;
}

.joc-blockora-morph-app .bm-gb-bulk__select-all input {
	margin: 0;
}

.joc-blockora-morph-app .bm-gb-bulk__count {
	font-size: 12px;
	color: var(--bm-color-on-surface-variant);
}

.joc-blockora-morph-app .bm-gb-bulk__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.joc-blockora-morph-app .bm-gb-card__check,
.joc-blockora-morph-app .bm-gb-card__check-spacer {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 0.35rem;
}

.joc-blockora-morph-app .bm-gb-card__check {
	margin: 0;
	cursor: pointer;
}

.joc-blockora-morph-app .bm-gb-card__check input {
	margin: 0;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.joc-blockora-morph-app .bm-gb-card:last-child {
	border-bottom: 0;
}

.joc-blockora-morph-app .bm-gb-card:hover {
	background: color-mix(in srgb, var(--bm-color-surface-low) 70%, transparent);
}

.joc-blockora-morph-app .bm-gb-card.has-update {
	background: color-mix(in srgb, #fef9c3 72%, var(--bm-color-surface-lowest));
}

.joc-blockora-morph-app .bm-gb-card.has-update:hover {
	background: color-mix(in srgb, #fef08a 55%, var(--bm-color-surface-lowest));
}

.joc-blockora-morph-app .bm-gb-card__thumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--bm-color-outline-variant) 35%, transparent);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(19, 27, 46, 0.04);
	transition:
		border-color var(--bm-duration) ease,
		box-shadow var(--bm-duration) ease,
		transform var(--bm-duration) ease;
}

.joc-blockora-morph-app .bm-gb-card__thumb:hover {
	border-color: color-mix(in srgb, var(--bm-color-primary) 35%, transparent);
	box-shadow: 0 6px 16px rgba(53, 37, 205, 0.1);
	transform: translateY(-1px);
}

.joc-blockora-morph-app .bm-gb-card__thumb:focus-visible {
	outline: 2px solid var(--bm-color-primary);
	outline-offset: 2px;
}

.joc-blockora-morph-app .bm-gb-card__thumb .bm-lib-thumb {
	position: absolute;
	inset: 0;
	border-radius: 0;
}

.joc-blockora-morph-app .bm-gb-card__content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.85rem;
	justify-content: center;
}

.joc-blockora-morph-app .bm-gb-card__main {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	min-width: 0;
}

.joc-blockora-morph-app .bm-gb-card__body {
	flex: 1;
	min-width: 0;
}

.joc-blockora-morph-app .bm-gb-card__update {
	flex-shrink: 0;
	margin-left: auto;
	align-self: flex-start;
}

.joc-blockora-morph-app .bm-gb-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	flex-shrink: 0;
	border-radius: 10px;
	background: color-mix(in srgb, var(--bm-color-primary) 12%, transparent);
	color: var(--bm-color-primary);
}

.joc-blockora-morph-app .bm-gb-card__icon .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
}

.joc-blockora-morph-app .bm-gb-card__title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.65rem;
}

.joc-blockora-morph-app .bm-gb-card__badges {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
}

.joc-blockora-morph-app .bm-gb-card__title {
	font-size: 14px;
	font-weight: 600;
	color: var(--bm-color-on-surface);
	line-height: 1.3;
}

.joc-blockora-morph-app .bm-gb-card__meta {
	margin: 0.3rem 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--bm-color-on-surface-variant);
}

.joc-blockora-morph-app .bm-gb-card__code {
	display: inline;
	padding: 0.12rem 0.4rem;
	border-radius: 0.35rem;
	background: var(--bm-color-surface-container);
	font-size: 11px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	color: var(--bm-color-on-surface);
}

.joc-blockora-morph-app .bm-gb-card__meta-sep {
	margin: 0 0.4rem;
	color: var(--bm-color-outline);
}

.joc-blockora-morph-app .bm-gb-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.joc-blockora-morph-app .bm-gb-card__actions .bm-btn .dashicons {
	width: 14px;
	height: 14px;
	font-size: 14px;
	margin-right: 0.25rem;
	line-height: 1;
	vertical-align: -2px;
}

.joc-blockora-morph-app .bm-gb-card__icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--bm-radius);
	background: transparent;
	color: var(--bm-color-outline);
	cursor: pointer;
	transition: color var(--bm-duration) ease, background var(--bm-duration) ease;
}

.joc-blockora-morph-app .bm-gb-card__icon-btn:hover {
	background: var(--bm-color-surface-low);
	color: var(--bm-color-on-surface);
}

.joc-blockora-morph-app .bm-gb-card__icon-btn.is-danger:hover {
	background: var(--bm-color-danger-soft);
	color: var(--bm-color-danger);
}

.joc-blockora-morph-app .bm-gb-card__icon-btn .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 1;
}

/* List search + category filter toolbar (page body, above list card) */
.joc-blockora-morph-app .bm-list-filters {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto;
	gap: 0.75rem 0.85rem;
	align-items: center;
	margin: 0 0 1rem;
	padding: 0;
	border: none;
	background: transparent;
}

.joc-blockora-morph-app .bm-list-filters--with-post-type {
	grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) minmax(160px, 220px) auto;
}

.joc-blockora-morph-app .bm-list-filters__search {
	position: relative;
	display: block;
	min-width: 0;
}

.joc-blockora-morph-app .bm-list-filters__search-icon {
	position: absolute;
	top: 50%;
	left: 0.85rem;
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 1;
	color: var(--bm-color-outline);
	transform: translateY(-50%);
	pointer-events: none;
	transition: color var(--bm-duration) ease;
}

.joc-blockora-morph-app .bm-list-filters__search:focus-within .bm-list-filters__search-icon {
	color: var(--bm-color-primary);
}

.joc-blockora-morph-app .bm-list-filters__search-input {
	box-sizing: border-box;
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 0.9rem 0 2.4rem;
	border: 1px solid color-mix(in srgb, var(--bm-color-outline-variant) 55%, transparent);
	border-radius: 12px;
	background: var(--bm-color-surface-lowest);
	color: var(--bm-color-on-surface);
	font-size: 13px;
	line-height: 1.3;
	outline: none;
	transition:
		border-color var(--bm-duration) ease,
		box-shadow var(--bm-duration) ease;
}

.joc-blockora-morph-app .bm-list-filters__search-input::placeholder {
	color: var(--bm-color-outline);
}

.joc-blockora-morph-app .bm-list-filters__search-input:focus {
	border-color: var(--bm-color-primary);
	box-shadow: 0 0 0 1px var(--bm-color-primary);
}

.joc-blockora-morph-app .bm-list-filters__category {
	min-width: 0;
}

.joc-blockora-morph-app .bm-list-filters__category .bm-searchable-select,
.joc-blockora-morph-app .bm-list-filters__post-type .bm-searchable-select {
	width: 100%;
}

.joc-blockora-morph-app .bm-list-filters__post-type {
	min-width: 0;
}

.joc-blockora-morph-app button.bm-list-filters__clear,
.joc-blockora-morph-app .bm-list-filters__clear {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	box-sizing: border-box !important;
	height: 40px !important;
	min-height: 40px !important;
	max-height: 40px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 1px solid color-mix(in srgb, var(--bm-color-outline-variant) 55%, transparent) !important;
	border-radius: 12px !important;
	background: var(--bm-color-surface-lowest) !important;
	color: var(--bm-color-on-surface-variant) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none !important;
	transition:
		color var(--bm-duration) ease,
		border-color var(--bm-duration) ease,
		background var(--bm-duration) ease;
}

.joc-blockora-morph-app button.bm-list-filters__clear .dashicons,
.joc-blockora-morph-app .bm-list-filters__clear .dashicons {
	width: 16px !important;
	height: 16px !important;
	font-size: 16px !important;
	line-height: 1 !important;
	margin: 0 !important;
}

.joc-blockora-morph-app button.bm-list-filters__clear:hover,
.joc-blockora-morph-app .bm-list-filters__clear:hover {
	border-color: var(--bm-color-primary) !important;
	background: var(--bm-color-surface-low) !important;
	color: var(--bm-color-primary) !important;
}

.joc-blockora-morph-app .bm-list-filters__meta {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.85rem;
	margin: 0;
}

.joc-blockora-morph-app .bm-list-filters__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: var(--bm-color-surface-container, #eaedff);
	color: var(--bm-color-on-surface-variant);
	font-size: 12px;
	line-height: 1.3;
}

.joc-blockora-morph-app .bm-list-filters__chip strong {
	color: var(--bm-color-on-surface);
	font-weight: 700;
}

.joc-blockora-morph-app .bm-list-filters__count {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--bm-color-on-surface-variant);
}

.joc-blockora-morph-app .bm-list-filters__empty {
	padding: 2rem 1.25rem;
	text-align: center;
	color: var(--bm-color-on-surface-variant);
	font-size: 13px;
}

@media (max-width: 640px) {
	.joc-blockora-morph-app .bm-gb-card {
		grid-template-columns: 1fr;
	}

	.joc-blockora-morph-app .bm-gb-list--selectable .bm-gb-card {
		grid-template-columns: 28px minmax(0, 1fr);
	}

	.joc-blockora-morph-app .bm-gb-list--selectable .bm-gb-card__thumb {
		grid-column: 1 / -1;
		max-width: 280px;
	}

	.joc-blockora-morph-app .bm-gb-card__thumb {
		max-width: 280px;
	}

	.joc-blockora-morph-app .bm-gb-bulk {
		flex-direction: column;
		align-items: stretch;
	}

	.joc-blockora-morph-app .bm-gb-bulk__actions {
		width: 100%;
	}

	.joc-blockora-morph-app .bm-gb-bulk__actions .bm-btn {
		flex: 1;
	}

	.joc-blockora-morph-app .bm-list-filters {
		grid-template-columns: 1fr;
	}

	.joc-blockora-morph-app .bm-list-filters__clear {
		width: 100%;
	}
}

@media (min-width: 1024px) {
	.joc-blockora-morph-app .bm-list-row {
		flex-direction: row;
		align-items: center;
		gap: 1rem;
	}
}
