.tdsb-wizard {
	max-width: 1100px;
	margin: 2rem auto;
	color: #1d2327;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tdsb-wizard__steps {
	display: flex;
	gap: 1rem;
	padding: 0;
	list-style: none;
	color: #50575e;
}

.tdsb-wizard__steps li.is-active {
	color: #1f6b4a;
	font-weight: 650;
}

.tdsb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 0.75rem;
	margin: 1rem 0;
}

.tdsb-card {
	border: 2px solid #dcdcde;
	border-radius: 8px;
	padding: 0.9rem;
	background: #fff;
	cursor: pointer;
	text-align: left;
}

.tdsb-card--trade {
	padding: 0;
	overflow: hidden;
}

.tdsb-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: #1d2327 center / cover no-repeat;
}

.tdsb-card--trade strong {
	display: block;
	margin: 0;
	padding: 0.7rem 0.8rem 0.85rem;
}

.tdsb-card.is-selected {
	border-color: #1f6b4a;
	box-shadow: 0 0 0 1px #1f6b4a;
}

.tdsb-card strong {
	display: block;
	margin-bottom: 0.35rem;
}

.tdsb-swatch {
	display: block;
	height: 10px;
	border-radius: 999px;
	border: 2px solid #1f6b4a;
	margin-bottom: 0.55rem;
}

.tdsb-wizard label {
	display: block;
	font-weight: 600;
}

.tdsb-wizard input {
	display: block;
	width: 100%;
	margin-top: 0.25rem;
	padding: 0.5rem 0.6rem;
}

.tdsb-hint {
	color: #50575e;
	font-size: 0.9rem;
}

.tdsb-next,
.tdsb-submit {
	background: #1f6b4a;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 0.55rem 1rem;
	cursor: pointer;
}

.tdsb-back {
	background: transparent;
	border: 1px solid #8c8f94;
	border-radius: 6px;
	padding: 0.5rem 0.9rem;
	margin-right: 0.5rem;
	cursor: pointer;
}

.tdsb-status {
	padding: 0.75rem;
	background: #f0f0f1;
	border-radius: 6px;
}

.tdsb-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 1rem 0;
}

@media (min-width: 900px) {
	.tdsb-gallery {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.tdsb-gallery__card {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	text-align: left;
	overflow: hidden;
	font: inherit;
	color: inherit;
}

.tdsb-gallery__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(29, 35, 39, 0.08);
}

.tdsb-gallery__card.is-selected {
	border-color: var(--tdsb-accent, #1f6b4a);
	box-shadow: 0 0 0 1px var(--tdsb-accent, #1f6b4a);
}

.tdsb-gallery__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--tdsb-bg, #f0f0f1);
}

.tdsb-gallery__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	cursor: zoom-in;
}

.tdsb-gallery__fallback {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--tdsb-bg, #f0f0f1), var(--tdsb-accent, #1f6b4a));
}

.tdsb-gallery__meta {
	display: block;
	padding: 0.7rem 0.8rem 0.85rem;
}

.tdsb-gallery__meta strong {
	display: block;
}

.tdsb-gallery__meta small {
	display: block;
	margin-top: 0.25rem;
	color: #50575e;
}

.tdsb-search-label {
	max-width: 22rem;
}

.tdsb-filters {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin: 0 0 1.1rem;
	padding: 0.75rem 0.85rem;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 8px;
}

.tdsb-filters__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.65rem;
}

.tdsb-filters__segment {
	display: inline-flex;
	border: 1px solid #dcdcde;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
}

.tdsb-filters__segment button {
	margin: 0;
	padding: 0.4rem 0.7rem;
	border: 0;
	border-right: 1px solid #dcdcde;
	background: transparent;
	color: #50575e;
	font: inherit;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}

.tdsb-filters__segment button:last-child {
	border-right: 0;
}

.tdsb-filters__segment button.is-active {
	background: #1d2327;
	color: #f0f0f1;
}

.tdsb-filters__select {
	flex: 0 1 10rem;
	min-width: 8.5rem;
	margin: 0;
}

.tdsb-filters__select select {
	width: 100%;
	margin-top: 0.25rem;
}

.tdsb-accent-chip {
	width: 1.35rem;
	height: 1.35rem;
	padding: 0;
	border: 2px solid #dcdcde;
	border-radius: 999px;
	background: var(--tdsb-chip, #1f6b4a);
	cursor: pointer;
}

.tdsb-accent-chip.is-active {
	border-color: #1d2327;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1d2327;
}

.tdsb-filters__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 1.25rem;
}

.tdsb-filters__count {
	font-size: 0.85rem;
	color: #50575e;
}

.tdsb-filters__clear {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #1f6b4a;
	font: inherit;
	font-size: 0.85rem;
	text-decoration: underline;
	cursor: pointer;
}

.tdsb-filter-empty {
	color: #50575e;
}

body.tdsb-lightbox-open {
	overflow: hidden;
}

.tdsb-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: rgba(20, 16, 12, 0.88);
}

.tdsb-lightbox[hidden] {
	display: none !important;
}

.tdsb-lightbox__figure {
	margin: 0;
	max-width: min(96vw, 900px);
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	overflow: auto;
}

.tdsb-lightbox__img {
	display: block;
	max-width: 100%;
	height: auto;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
	background: #1a1612;
}

.tdsb-lightbox__caption {
	margin: 0;
	color: #f7f2ea;
	font-size: 0.95rem;
	text-align: center;
}

.tdsb-domain {
	margin: 1.25rem 0;
	padding: 0.9rem 1rem;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
}

.tdsb-domain legend {
	font-weight: 650;
}

.tdsb-domain__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0.5rem 0;
}

.tdsb-domain__chip {
	padding: 0.35rem 0.7rem;
	border: 1px solid #c3c4c7;
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	font: inherit;
}

.tdsb-domain__chip.is-selected {
	border-color: #1f6b4a;
	background: #edf7f1;
}

.tdsb-domain__chip:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.tdsb-lightbox__close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid rgba(247, 242, 234, 0.35);
	border-radius: 999px;
	background: rgba(20, 16, 12, 0.55);
	color: #f7f2ea;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}
