/* Media Pick Lab */
.tnt-media-pick-lab-root {
	--tnt-mp-gap: 1rem;
	--tnt-mp-slot: 140px;
	max-width: 1280px;
	margin: 2rem auto 4rem;
	padding: 0 1.25rem;
	font-family: var(--wp--preset--font-family--montserrat, Montserrat, sans-serif);
}

.tnt-media-pick-header h1 {
	margin: 0 0 0.35rem;
	font-size: 1.75rem;
}

.tnt-media-pick-progress {
	height: 8px;
	background: #e8e8e8;
	border-radius: 4px;
	margin: 1rem 0 1.5rem;
	overflow: hidden;
}

.tnt-media-pick-progress__bar {
	height: 100%;
	background: #1a5f7a;
	transition: width 0.25s ease;
}

.tnt-media-pick-layout {
	display: grid;
	grid-template-columns: minmax(260px, 340px) 1fr;
	gap: 1.5rem;
	align-items: start;
}

@media (max-width: 900px) {
	.tnt-media-pick-layout {
		grid-template-columns: 1fr;
	}
}

.tnt-media-pick-slots h2,
.tnt-media-pick-gallery h2,
.tnt-media-pick-gallery h3 {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
}

.tnt-media-pick-slot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(var(--tnt-mp-slot), 1fr));
	gap: var(--tnt-mp-gap);
}

.tnt-media-pick-slot {
	border: 2px dashed #bbb;
	border-radius: 8px;
	min-height: var(--tnt-mp-slot);
	padding: 0.5rem;
	cursor: pointer;
	background: #fafafa;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.tnt-media-pick-slot.is-active {
	border-color: #1a5f7a;
	box-shadow: 0 0 0 2px rgba(26, 95, 122, 0.25);
}

.tnt-media-pick-slot.is-filled {
	border-style: solid;
	border-color: #ccc;
}

.tnt-media-pick-slot__label {
	font-size: 0.75rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
	line-height: 1.2;
}

.tnt-media-pick-slot__empty {
	color: #888;
	font-size: 0.8rem;
	text-align: center;
	padding: 2rem 0.25rem;
}

.tnt-media-pick-slot__thumb {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
}

.tnt-media-pick-slot__meta {
	font-size: 0.7rem;
	color: #555;
	margin-top: 0.35rem;
}

.tnt-media-pick-slot__clear {
	margin-top: 0.35rem;
	font-size: 0.7rem;
	background: none;
	border: none;
	color: #a33;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}

.tnt-media-pick-candidates,
.tnt-media-pick-library {
	margin-bottom: 1.25rem;
}

.tnt-media-pick-dropzone {
	border: 2px dashed #1a5f7a;
	border-radius: 8px;
	padding: 0.75rem;
	margin-bottom: 0.75rem;
	text-align: center;
	font-size: 0.85rem;
	color: #444;
	background: #f0f7fa;
}

.tnt-media-pick-dropzone.is-dragover {
	background: #dceef5;
}

.tnt-media-pick-thumb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 0.5rem;
	max-height: 320px;
	overflow-y: auto;
	padding: 0.25rem;
}

.tnt-media-pick-thumb {
	border: 2px solid transparent;
	border-radius: 6px;
	padding: 0;
	background: #eee;
	cursor: pointer;
	overflow: hidden;
	aspect-ratio: 1;
}

.tnt-media-pick-thumb:hover,
.tnt-media-pick-thumb:focus {
	border-color: #1a5f7a;
}

.tnt-media-pick-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tnt-media-pick-thumb.is-video::after {
	content: '▶';
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	color: #fff;
	background: rgba(0, 0, 0, 0.35);
}

.tnt-media-pick-thumb {
	position: relative;
}

.tnt-media-pick-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.tnt-media-pick-actions button {
	padding: 0.55rem 1.1rem;
	border-radius: 6px;
	border: 1px solid #1a5f7a;
	background: #1a5f7a;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.tnt-media-pick-actions button.is-secondary {
	background: #fff;
	color: #1a5f7a;
}

.tnt-media-pick-actions button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.tnt-media-pick-status {
	padding: 0.75rem 1rem;
	border-radius: 6px;
	margin: 1rem 0;
	font-size: 0.9rem;
}

.tnt-media-pick-status.is-error {
	background: #fde8e8;
	color: #8b1a1a;
}

.tnt-media-pick-status.is-ok {
	background: #e8f5e9;
	color: #1b5e20;
}

.tnt-media-pick-gate {
	max-width: 32rem;
	margin: 3rem auto;
	padding: 1.5rem;
	border: 1px solid #ddd;
	border-radius: 8px;
}

.tnt-media-pick-search {
	width: 100%;
	max-width: 280px;
	margin-bottom: 0.5rem;
	padding: 0.45rem 0.6rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.tnt-media-pick-pager {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	margin-top: 0.5rem;
	font-size: 0.85rem;
}
