/* BrickDetector web scanner — shortcode UI */

.lego-scan-container {
	max-width: 960px;
	margin: 0 auto;
	overflow: visible;
	font-family: system-ui, -apple-system, sans-serif;
}

.lego-scan-upload-toolbar {
	position: relative;
	top: auto;
	z-index: 20;
	width: 100%;
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid #ddd;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	padding: 10px 12px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
	margin-top: 0;
	margin-bottom: 20px;
}

.lego-scan-upload-toolbar.is-scrolled {
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.lego-scan-settings-wrap {
	align-self: flex-end;
}

.lego-scan-settings-toggle {
	min-width: 0;
	padding: 6px 10px;
	font-size: 0.84rem;
	opacity: 0.9;
}

.lego-scan-settings-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 8px;
	background: rgba(0, 0, 0, 0.45);
	isolation: isolate;
}

.lego-scan-settings-modal-overlay.is-open {
	display: flex;
}

.lego-scan-settings-menu {
	width: min(96vw, 1320px);
	max-height: min(88vh, 900px);
	overflow: auto;
	overscroll-behavior: contain;
	padding: 16px;
	border: 1px solid #ddd;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
	display: none;
}

.lego-scan-settings-menu.is-open {
	display: block;
}

.lego-scan-settings-title {
	margin: 0 0 10px;
	font-size: 0.95rem;
	font-weight: 700;
}

.lego-scan-settings-categories {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 14px;
}

.lego-scan-settings-category {
	min-width: 0;
	height: 100%;
	padding: 12px;
	border: 1px solid #e7e7e7;
	border-radius: 8px;
	background: #fafafa;
	box-sizing: border-box;
}

.lego-scan-setting-row {
	margin: 0;
	padding: 10px 0;
}

.lego-scan-setting-group {
	padding: 10px 0;
}

.lego-scan-setting-group .lego-scan-setting-row {
	padding: 0;
}

.lego-scan-setting-group .lego-scan-setting-row + .lego-scan-setting-row {
	margin-top: 10px;
}

.lego-scan-settings-category > .lego-scan-setting-row + .lego-scan-setting-row,
.lego-scan-settings-category > .lego-scan-setting-row + .lego-scan-setting-group,
.lego-scan-settings-category > .lego-scan-setting-group + .lego-scan-setting-row,
.lego-scan-settings-category > .lego-scan-setting-group + .lego-scan-setting-group {
	border-top: 1px solid #ececec;
}

.lego-scan-setting-row--inline {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
}

.lego-scan-setting-label {
	display: block;
	margin: 0 0 6px;
	font-size: 0.9rem;
	color: #333;
}

.lego-scan-setting-row--inline .lego-scan-setting-label {
	margin: 0;
}

.lego-scan-setting-inline-with-tools {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 10px;
}

.lego-scan-setting-label--inline {
	margin: 0;
	white-space: nowrap;
}

.lego-scan-setting-toggle {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	font-size: 0.92rem;
}

.lego-scan-setting-toggle input[type="checkbox"] {
	margin: 0;
	flex: 0 0 auto;
	margin-top: 0px;
}

.lego-scan-settings-divider {
	margin: 12px 0 10px;
	border: 0;
	border-top: 1px solid #e7e7e7;
}

.lego-scan-shortcut-list {
	display: grid;
	gap: 8px;
}

.lego-scan-shortcut-item {
	display: grid;
	grid-template-columns: 1fr 70px;
	gap: 8px;
	align-items: center;
}

.lego-scan-shortcut-item label {
	font-size: 0.9rem;
	color: #333;
}

.lego-scan-shortcut-input {
	width: 100%;
	height: 34px;
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 6px 8px;
	box-sizing: border-box;
	text-align: center;
	font-weight: 600;
}

.lego-scan-shortcut-item--wide {
	grid-template-columns: 1fr;
}

.lego-scan-shortcut-select {
	width: 100%;
	height: 34px;
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 6px 8px;
	box-sizing: border-box;
	background: #fff;
	font: inherit;
	font-size: 0.9rem;
	line-height: 1.2;
	color: #333;
}

.lego-scan-shortcut-input.is-invalid {
	border-color: #b42318;
	box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.14);
}

.lego-scan-settings-actions {
	position: sticky;
	bottom: -16px;
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 14px;
	padding-top: 12px;
	padding-bottom: 2px;
	flex-wrap: wrap;
	background: linear-gradient(to bottom, rgba(255,255,255,0.9), #fff 16px);
	border-top: 1px solid #ececec;
}

.lego-scan-settings-feedback {
	margin: 10px 0 0;
	min-height: 1.2em;
	font-size: 0.85rem;
}

.lego-scan-settings-note {
	margin: 8px 0 0;
	font-size: 0.83rem;
	color: #555;
}

#seller-credentials-terms-of-use {
	margin-bottom: 12px;
}

.lego-scan-settings-note a {
	color: inherit;
}

.lego-scan-settings-disclosure {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #ececec;
}

.lego-scan-settings-disclosure-summary {
	cursor: pointer;
	font-size: 0.92rem;
	font-weight: 700;
	color: #333;
}

.lego-scan-settings-disclosure[open] .lego-scan-settings-disclosure-summary {
	margin-bottom: 8px;
}

.lego-scan-setting-group--nested {
	padding-top: 0;
}

.lego-scan-settings-credentials-instructions {
	margin: 0 0 14px;
	font-size: 0.85rem;
	line-height: 1.45;
	color: #444;
}

.lego-scan-settings-credentials-instructions a {
	color: #2b5fc7;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lego-scan-settings-instructions-title {
	margin: 0 0 8px;
	font-size: inherit;
	font-weight: 600;
	color: #333;
}

.lego-scan-settings-instructions-list {
	margin: 0 0 12px;
	padding-left: 1.35em;
}

.lego-scan-settings-instructions-list li {
	margin-bottom: 6px;
}

.lego-scan-settings-instructions-list li:last-child {
	margin-bottom: 0;
}

.lego-scan-settings-credentials-instructions .lego-scan-settings-note {
	margin: 0;
}

.lego-scan-settings-credentials-important strong {
	font-weight: 700;
	color: #333;
}

.lego-scan-settings-feedback.is-success {
	color: #0b865f;
}

.lego-scan-settings-feedback.is-error {
	color: #b42318;
}

.lego-scan-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%) translateY(8px);
	background: #1f1f1f;
	color: #fff;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 0.9rem;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
	opacity: 0;
	pointer-events: none;
	transition: opacity 140ms ease, transform 140ms ease;
	z-index: 100010;
}

.lego-scan-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.lego-scan-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 100011;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.45);
}

.lego-scan-popup-overlay.is-open {
	display: flex;
}

.lego-scan-popup {
	width: min(92vw, 460px);
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
	padding: 14px;
}

.lego-scan-popup-text {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.4;
}

.lego-scan-popup-checkbox {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	margin-top: 12px;
	font-size: 0.9rem;
}

.lego-scan-popup-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 14px;
}

.lego-scan-empty-state {
	display: none;
	margin-top: 18px;
	padding: 14px 10px 4px;
	text-align: center;
}

.lego-scan-empty-state.is-visible {
	display: block;
}

.lego-scan-empty-logo {
	width: min(260px, 55vw);
	max-width: 100%;
	height: auto;
	animation: lego-scan-empty-pulse 2.8s linear infinite;
}

.lego-scan-empty-text {
	margin: 12px 0 0;
	color: #4f4f4f;
	font-weight: 500;
	letter-spacing: 0.01em;
}

@keyframes lego-scan-empty-pulse {
	0% {
		opacity: 1;
	}
	50% {
		opacity: 1;
	}
	75% {
		opacity: 0.35;
	}
	100% {
		opacity: 1;
	}
}

.lego-scan-upload-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.lego-scan-btn {
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
}

.lego-scan-upload-actions .lego-scan-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	margin: 0;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	font-style: inherit;
	line-height: normal;
	letter-spacing: inherit;
	text-transform: none;
	-webkit-appearance: none;
	appearance: none;
}

button.lego-scan-btn {
	border: none;
	background-clip: padding-box;
}

.lego-scan-btn--primary {
	background: #333;
	color: #fff;
}

.lego-scan-btn--secondary {
	background: #0b865f;
	color: #fff;
}

.lego-scan-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	opacity: 0;
	pointer-events: none;
}

.lego-scan-upload-hint {
	margin: 0;
	font-size: 0.9rem;
	color: #888;
	text-align: center;
}

.lego-scan-page-drop-overlay {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.35);
	padding: 18px;
	box-sizing: border-box;
}

.lego-scan-page-drop-overlay.is-active {
	display: flex;
}

.lego-scan-page-drop-content {
	width: min(100%, 700px);
	border: 3px dashed #ff6600;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.96);
	padding: 46px 20px;
	text-align: center;
}

.lego-scan-page-drop-hint {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	color: #222;
}

.lego-scan-results {
	margin-top: 32px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: stretch;
	width: 100%;
}

.lego-scan-results-toolbar {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
	margin-bottom: 4px;
}

.lego-scan-clear-results-btn[hidden] {
	display: none !important;
}

/* Result card (also used in JS templates) */
.lego-scan-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	overflow: visible;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.lego-scan-card-body {
	display: flex;
	gap: 20px;
	padding: 20px;
	width: 100%;
	box-sizing: border-box;
	transition: min-height 120ms ease;
}

.lego-scan-card-thumb {
	width: 220px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lego-scan-card-image {
	width: 100%;
	border-radius: 8px;
	background: #f0f0f0;
}

.lego-scan-card-image--scanned {
	width: 96px;
	border-radius: 6px;
	opacity: 0.68;
	border: 1px solid #ddd;
	cursor: zoom-in;
}

.lego-scan-scanned-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	color: #666;
}

.lego-scan-card-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lego-scan-card-main.is-switching-left {
	animation: lego-scan-slide-left 180ms ease-out;
}

.lego-scan-card-main.is-switching-right {
	animation: lego-scan-slide-right 180ms ease-out;
}

@keyframes lego-scan-slide-left {
	from {
		opacity: 0.3;
		transform: translateX(-8px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes lego-scan-slide-right {
	from {
		opacity: 0.3;
		transform: translateX(8px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.lego-scan-option-btn {
	position: absolute;
	top: var(--bd-body-center, 50%);
	z-index: 5;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border: 1px solid #d6d6d6;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: #555;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.lego-scan-option-btn:hover {
	color: #222;
	border-color: #bbb;
}

.lego-scan-option-btn--prev {
	left: -14px;
}

.lego-scan-option-btn--next {
	right: -14px;
}

.lego-scan-card-title {
	font-size: 1.3rem;
	font-weight: 600;
	margin: 0;
}

.lego-scan-card-meta {
	color: #666;
	font-size: 0.92rem;
	margin: 0;
}

.lego-scan-card-subtitle {
	color: #666;
	margin: 0;
}

.lego-scan-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
	column-gap: 20px;
	row-gap: 12px;
	justify-content: start;
	align-items: start;
}

.lego-scan-info:empty + .lego-scan-status {
	margin-top: 8px;
}

.lego-scan-status {
	margin-top: 10px;
	font-size: 0.95rem;
	color: #666;
}

.lego-scan-error {
	color: #c00;
}

.lego-scan-color-inline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.lego-scan-color-swatch {
	display: inline-block;
	width: 14px;
	height: 14px;
	background: #ff6600;
	border-radius: 50%;
}

.scan-color-select {
	width: 100%;
	max-width: 320px;
	height: 32px;
	border: 1px solid #d4d4d4;
	border-radius: 6px;
	padding: 4px 8px;
	font-size: 0.9rem;
	color: #4a4a4a;
	background: #fff;
}

.scan-color-select option {
	color: #6c6c6c;
}

.scan-color-picker {
	position: relative;
	max-width: 360px;
}

.scan-color-picker--disabled {
	min-height: 34px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
}

.scan-color-picker-trigger {
	width: 100%;
	min-height: 34px;
	display: grid;
	grid-template-columns: 16px 1fr auto auto;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	color: #333;
	font: inherit;
	text-align: left;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
}

.scan-color-picker-trigger:hover,
.scan-color-picker-trigger:focus,
.scan-color-picker-trigger:active {
	background: #fff !important;
	color: #333 !important;
}

.scan-color-picker-value {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.scan-color-picker-confidence {
	font-size: 0.78rem;
	color: #8a8a8a;
	font-weight: 500;
}

.scan-color-picker-chevron {
	font-size: 0.72rem;
	color: #6b6b6b;
}

.scan-color-picker-swatch {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.14);
	display: inline-block;
}

.scan-color-picker-swatch--empty {
	background: repeating-linear-gradient(
		-45deg,
		#f2f2f2,
		#f2f2f2 4px,
		#e5e5e5 4px,
		#e5e5e5 8px
	);
}

.scan-color-picker-menu {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	z-index: 12;
	display: none;
	max-height: 220px;
	overflow: auto;
	background: #fff;
	border: 1px solid #d6d6d6;
	border-radius: 8px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.13);
	padding: 4px;
}

.scan-color-picker[data-open="true"] .scan-color-picker-menu {
	display: block;
}

.scan-color-picker-option {
	width: 100%;
	display: grid;
	grid-template-columns: 16px 1fr auto;
	gap: 8px;
	align-items: center;
	padding: 7px 8px;
	border: 0;
	border-radius: 6px;
	background: #fff;
	text-align: left;
	color: #333;
	font: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
}

.scan-color-picker-option:hover {
	background: #f6f7f8 !important;
	color: #333 !important;
}

.scan-color-picker-option:focus,
.scan-color-picker-option:active {
	background: #f6f7f8 !important;
	color: #333 !important;
}

.scan-color-picker-option.is-selected {
	background: #f1f7f4;
}

.scan-color-picker-option-confidence {
	font-size: 0.76rem;
	color: #888;
}

.lego-scan-info--extra {
	margin-top: 12px;
}

.lego-scan-link {
	color: #ff6600;
}

.scan-loading-icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	vertical-align: middle;
}

/* Live camera (getUserMedia) */
.lego-scan-camera-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.75);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.lego-scan-camera-dialog {
	background: #111;
	border-radius: 12px;
	overflow: hidden;
	max-width: min(100%, 640px);
	width: 100%;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.lego-scan-camera-video {
	display: block;
	width: 100%;
	max-height: min(70vh, 480px);
	object-fit: cover;
	background: #000;
}

.lego-scan-camera-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	padding: 16px;
	background: #1a1a1a;
}

@media (max-width: 960px) {
	.lego-scan-settings-categories {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.lego-scan-upload-toolbar {
		padding: 10px;
	}

	.lego-scan-upload-actions {
		gap: 8px;
	}

	.lego-scan-upload-actions .lego-scan-btn {
		min-width: 132px;
	}

	.lego-scan-settings-wrap {
		width: auto;
		margin-top: 2px;
	}

	.lego-scan-settings-toggle {
		width: auto;
		padding: 4px 8px;
		font-size: 0.78rem;
	}

	.lego-scan-settings-menu {
		right: 0;
		left: auto;
		width: min(92vw, 300px);
	}

	.lego-scan-settings-categories {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.lego-scan-setting-row--inline {
		grid-template-columns: 1fr;
		gap: 6px;
		align-items: stretch;
	}

	.lego-scan-setting-inline-with-tools {
		grid-template-columns: 1fr;
		gap: 8px;
		align-items: stretch;
	}

	.lego-scan-card-body {
		flex-direction: column;
		gap: 14px;
		padding: 14px;
	}

	.lego-scan-option-btn--prev {
		left: 6px;
	}

	.lego-scan-option-btn--next {
		right: 6px;
	}

	.lego-scan-card-thumb {
		width: 100%;
	}

	.lego-scan-card-image {
		display: block;
	}

	.lego-scan-upload-hint {
		display: none;
	}

	.lego-scan-page-drop-content {
		padding: 30px 14px;
	}
}


.lego-scan-text-input {
	width: 100%;
	height: 34px;
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 6px 8px;
	box-sizing: border-box;
	background: #fff !important;
	font: inherit;
	font-size: 0.9rem;
	line-height: 1.2;
	color: #333;
	appearance: none;
}

.lego-scan-seller-section {
	margin-top: 18px;
	padding: 16px;
	border-top: 2px dashed #d8dee5;
	background: #f6f9fc;
	position: relative;
	border-radius: 10px;
}

.lego-scan-seller-section-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin-bottom: 14px;
}

.lego-scan-seller-title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 12px;
	width: 100%;
}

.lego-scan-seller-title-row .lego-scan-seller-title {
	flex: 1 1 auto;
	min-width: 0;
}

.lego-scan-seller-added-today {
	flex: 0 0 auto;
	text-align: right;
}

.lego-scan-seller-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
}

.lego-scan-seller-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

.lego-scan-seller-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lego-scan-seller-field--wide {
	grid-column: 1 / -1;
}

.lego-scan-seller-qty-price-row {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.lego-scan-seller-field label {
	font-size: 0.9rem;
	color: #333;
}

.lego-scan-seller-actions {
	margin-top: 12px;
	display: flex;
	justify-content: flex-start;
}

.seller-configure-defaults-link {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #2b5fc7;
	font-size: 0.82rem;
	font-weight: 400;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.lego-scan-seller-feedback {
	margin-top: 10px;
	font-size: 0.9rem;
	color: #666;
	min-height: 1.2em;
}

.lego-scan-seller-feedback.is-error {
	color: #b42318;
}

.lego-scan-seller-feedback.is-success {
	color: #0b865f;
}

.lego-scan-seller-overlay {
	position: absolute;
	inset: 0;
	z-index: 8;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 18, 23, 0.78);
	border-radius: 12px;
}

.lego-scan-seller-overlay.is-visible {
	display: flex;
}

.lego-scan-seller-overlay-inner {
	text-align: center;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
}

.lego-scan-seller-overlay-check {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #10a468;
	font-size: 1.9rem;
	font-weight: 700;
	box-shadow: 0 10px 28px rgba(16, 164, 104, 0.35);
	animation: lego-seller-pop 220ms ease-out;
}

.lego-scan-seller-overlay-subtitle {
	font-size: 0.95rem;
	opacity: 0.95;
}

@keyframes lego-seller-pop {
	0% { transform: scale(0.7); opacity: 0.2; }
	100% { transform: scale(1); opacity: 1; }
}

.lego-scan-seller-overlay-title {
	font-size: 1.2rem;
	font-weight: 700;
}

.lego-scan-seller-overlay-action {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
	font-size: 0.95rem;
	display: inline-block;
}

.lego-scan-seller-overlay-action:link,
.lego-scan-seller-overlay-action:visited,
.lego-scan-seller-overlay-action:hover,
.lego-scan-seller-overlay-action:active {
	color: #fff;
}

.lego-scan-seller-overlay-action-line {
	font-size: 0.95rem;
}

.lego-scan-seller-overlay-action-suffix {
	color: rgba(255, 255, 255, 0.92);
}

.lego-scan-seller-overlay-buttons-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 12px;
}

.lego-scan-seller-color-mismatch {
	margin-top: 6px;
	font-size: 0.78rem;
	line-height: 1.3;
	color: #b42318;
	display: none;
}

.lego-scan-seller-color-mismatch.is-visible {
	display: block;
}

.lego-scan-seller-color-mismatch a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lego-scan-card--seller .lego-scan-option-btn {
	top: var(--bd-main-center, var(--bd-body-center, 50%));
}


.lego-scan-seller-subfield {
	margin-top: 10px;
}

.lego-scan-seller-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 6px;
}

.lego-scan-seller-radio-group--inline {
	margin-top: 0;
	gap: 10px;
}

#settings-seller-title ~ .lego-scan-setting-group .lego-scan-setting-row--inline {
	grid-template-columns: 96px minmax(0, 1fr);
}

.lego-scan-seller-choice-line {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.lego-scan-image-preview-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.lego-scan-image-preview-frame {
	position: relative;
	display: inline-block;
	max-width: min(94vw, 1100px);
	max-height: 90vh;
	line-height: 0;
}

.lego-scan-image-preview-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.lego-scan-image-preview-close:hover,
.lego-scan-image-preview-close:focus-visible {
	background: rgba(0, 0, 0, 0.62);
	outline: 2px solid rgba(255, 255, 255, 0.5);
	outline-offset: 1px;
}

.lego-scan-image-preview-image {
	display: block;
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
	border-radius: 10px;
	background: #111;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
	cursor: pointer;
}

.lego-scan-inline-fields {
	display: inline-flex;
	gap: 8px;
	align-items: center;
}

.lego-scan-inline-fields > .lego-scan-shortcut-select {
	width: 86px;
}

.lego-scan-inline-fields > .lego-scan-text-input {
	width: 96px;
}

.lego-scan-inline-fields--compact > .lego-scan-shortcut-select {
	width: 72px;
}

.lego-scan-inline-suffix {
	font-size: 0.9rem;
	color: #555;
}


.lego-scan-settings-modal-overlay[hidden],
.lego-scan-settings-menu[hidden] {
	display: none !important;
}

.lego-scan-card--seller .lego-scan-shortcut-select,
.lego-scan-card--seller .lego-scan-text-input {
	background: #fff !important;
}

.lego-scan-seller-price-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 38px;
	gap: 8px;
	align-items: center;
}

.seller-price-slider-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 6px;
}

.seller-price-slider-track-wrap {
	position: relative;
}

.seller-price-slider {
	width: 100%;
	margin: 0;
}

.seller-price-slider-default-marker {
	position: absolute;
	top: 2px;
	bottom: 2px;
	width: 2px;
	background: #2b5fc7;
	border-radius: 999px;
	transform: translateX(-50%);
	pointer-events: none;
}

.seller-price-slider-values,
.seller-price-slider-range-pct {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 0.8rem;
	color: #555;
}

.seller-price-slider-values strong,
.seller-price-slider-range-pct strong {
	color: #222;
}

.seller-price-slider-values {
	position: relative;
	height: 1.2em;
	margin-top: 2px;
}

.seller-price-slider-values--current {
	margin-top: 0;
}

.seller-price-slider-default-label,
.seller-price-slider-current-label {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	white-space: nowrap;
	color: #444;
}

.seller-price-slider-default-label {
	color: #2b5fc7;
}

.seller-price-slider-note {
	font-size: 11px !important;
	font-style: italic !important;
	line-height: 1.25;
	color: #666;
}

.lego-scan-seller-icon-btn {
	width: 38px;
	height: 34px;
	padding: 0;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	color: #444;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}

.lego-scan-seller-icon-btn:hover {
	background: #f6f7f8;
}

.lego-scan-seller-icon-btn:focus,
.lego-scan-seller-icon-btn:active {
	background: #fff !important;
	color: #444 !important;
	outline: 2px solid #dce3ea;
}

.lego-scan-seller-combobox {
	position: relative;
}

.lego-scan-seller-color-input-inner {
	position: relative;
}

.lego-scan-seller-color-input-swatch {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	display: flex;
	align-items: center;
	pointer-events: none;
}

.lego-scan-seller-color-input-inner .seller-color-input {
	padding-left: 34px;
}

.lego-scan-seller-combobox-menu {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	z-index: 20;
	max-height: 220px;
	overflow: auto;
	padding: 4px;
	border: 1px solid #d6d6d6;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.13);
	display: none;
}

.lego-scan-seller-combobox[data-open="true"] .lego-scan-seller-combobox-menu {
	display: block;
}

.lego-scan-seller-color-option {
	width: 100%;
	display: grid;
	grid-template-columns: 16px 1fr;
	gap: 8px;
	align-items: center;
	padding: 7px 8px;
	border: 0;
	border-radius: 6px;
	background: #fff;
	text-align: left;
	color: #333;
	font: inherit;
	cursor: pointer;
}

.lego-scan-seller-color-option:hover,
.lego-scan-seller-color-option.is-active {
	background: #f6f7f8;
}

.lego-scan-seller-color-empty {
	padding: 8px;
	font-size: 0.9rem;
	color: #777;
}

.lego-scan-seller-price-default-note {
	margin-top: 8px;
	font-size: 11px !important;
	font-style: italic !important;
	line-height: 1.25;
	color: #666;
}

.lego-scan-seller-price-table {
	width: 100%;
	margin-top: 8px;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.86rem;
}

.lego-scan-seller-price-table th,
.lego-scan-seller-price-table td {
	padding: 7px 8px;
	border: 1px solid #dce3ea;
	background: #fff;
	text-align: left;
	vertical-align: top;
}

.lego-scan-seller-price-table thead th {
	background: #f2f5f8;
	font-size: 0.78rem;
	font-weight: 600;
	color: #596273;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.lego-scan-seller-price-table tbody th[scope="row"] {
	font-weight: 400;
}

.lego-scan-seller-price-table td strong {
	display: block;
	line-height: 1.25;
}

.lego-scan-seller-price-meta {
	display: block;
	margin-top: 2px;
	font-size: 0.75rem;
	color: #667085;
}

.lego-scan-seller-price-table tr.is-default-source th,
.lego-scan-seller-price-table tr.is-default-source td {
	background: #f8fbff;
}

.lego-scan-seller-price-table td.is-default-price {
	outline: 2px solid #2b5fc7;
	outline-offset: -2px;
	background: #edf3ff;
}
