/**
 * WWD frontend styles.
 */

.wwd-form,
.wwd-csv-wrap {
	max-width: 820px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wwd-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 14px;
}

.wwd-form input[type="text"],
.wwd-form input[type="url"],
.wwd-form input[type="date"],
.wwd-form select,
.wwd-form textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #cfd4d9;
	border-radius: 4px;
	box-sizing: border-box;
	font-size: 14px;
}

.wwd-form textarea { font-family: inherit; }

.wwd-form .required { color: #c00; }

.wwd-form .wwd-has-error input,
.wwd-form .wwd-has-error select,
.wwd-form .wwd-has-error textarea {
	border-color: #c0392b;
	background: #fff5f5;
}

.wwd-form .wwd-field-error {
	color: #c0392b;
	font-size: 12px;
	margin-top: 4px;
	display: block;
}

.wwd-has-error input,
.wwd-has-error textarea,
.wwd-has-error select {
	border-color: #dc3232 !important;
}

.wwd-field-error {
	display: block;
	margin-top: 5px;
	color: #dc3232;
	font-size: 13px;
	font-weight: 500;
}

input.wwd-has-error,
textarea.wwd-has-error,
select.wwd-has-error {
	border-color: #dc3232 !important;
}

.wwd-steps {
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.wwd-step {
	flex: 1 1 auto;
	background: #f3f4f6;
	border: 1px solid #cfd4d9;
	color: #444;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 14px;
	border-radius: 4px;
}
.wwd-step.is-active {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.wwd-pane { display: none; }
.wwd-pane.is-active { display: block; }

.wwd-step-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 16px;
	gap: 8px;
}

.wwd-status-bar {
	margin-top: 12px;
	font-size: 13px;
	color: #555;
	display: flex;
	gap: 16px;
	align-items: center;
}

.wwd-message {
	font-weight: 600;
}
.wwd-message.is-success { color: #1f7a3a; }
.wwd-message.is-error { color: #c0392b; }

.wwd-preview img {
	max-height: 90px;
	margin-left: 8px;
	vertical-align: middle;
	border-radius: 4px;
}

.wwd-notice {
	padding: 10px 14px;
	border-radius: 4px;
	margin: 12px 0;
}
.wwd-notice-info { background: #e8f4fd; border: 1px solid #2271b1; }
.wwd-notice-error { background: #fde8e8; border: 1px solid #c0392b; color: #7a1a13; }

/* ---------- Char counter ---------- */
.wwd-char-counter {
	display: block;
	text-align: right;
	font-size: 12px;
	color: #6b7280;
	margin-top: 4px;
}
.wwd-char-counter.is-over { color: #c0392b; font-weight: 600; }

/* ---------- Field hints ---------- */
.wwd-field-hint {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #6b7280;
	font-style: italic;
}

/* ---------- Submission status widget (My Submissions) ---------- */
.wwd-my-submissions {
	max-width: 1200px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wwd-my-submissions-header {
	display: flex; justify-content: space-between; align-items: center;
	gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.wwd-my-submissions-header h2 { margin: 0; font-size: 20px; }
.wwd-my-submissions-filters {
	display: flex; gap: 6px; flex-wrap: wrap;
}
.wwd-filter-pill {
	background: #f3f4f6;
	border: 1px solid #cfd4d9;
	color: #444;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 13px;
	cursor: pointer;
	text-decoration: none;
}
.wwd-filter-pill.is-active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

/* Reviewer scope toggle (All / Mine) */
.wwd-my-submissions-scope {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin: 4px 0 12px;
}
.wwd-scope-pill {
	background: #fff;
	border: 1px solid #cfd4d9;
	color: #555;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	text-decoration: none;
	font-weight: 500;
}
.wwd-scope-pill.is-active {
	background: #111827;
	border-color: #111827;
	color: #fff;
}
.wwd-my-submissions-table .wwd-sub-actions button {
	margin-right: 6px;
	padding: 4px 10px;
	font-size: 13px;
	cursor: pointer;
}
.wwd-my-submissions-table .wwd-sub-actions button[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}
.wwd-sub-action-msg {
	display: inline-block;
	margin-left: 6px;
	font-size: 12px;
}
.wwd-sub-action-msg.is-success { color: #1f7a3a; }
.wwd-sub-action-msg.is-error   { color: #c0392b; }
.wwd-my-submissions-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	overflow: hidden;
}
.wwd-my-submissions-table th,
.wwd-my-submissions-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e5e7eb;
	text-align: left;
	font-size: 14px;
	vertical-align: top;
}
.wwd-my-submissions-table th {
	background: #f8f9fa;
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	color: #4b5563;
	letter-spacing: 0.04em;
}
.wwd-my-submissions-table tr:last-child td { border-bottom: 0; }
.wwd-my-submissions-table .wwd-sub-title { font-weight: 600; color: #111; }
.wwd-my-submissions-table .wwd-sub-actions a {
	margin-right: 8px;
	text-decoration: none;
}
.wwd-my-submissions-empty {
	text-align: center;
	padding: 40px 16px;
	color: #6b7280;
	background: #fff;
	border: 1px dashed #cfd4d9;
	border-radius: 6px;
}
.wwd-my-submissions-note {
	background: #fff5f5;
	border: 1px solid #f5c2c0;
	color: #842029;
	padding: 8px 10px;
	border-radius: 4px;
	margin-top: 6px;
	font-size: 13px;
}
.wwd-pagination {
	margin-top: 14px;
	display: flex;
	gap: 6px;
	justify-content: center;
	flex-wrap: wrap;
}
.wwd-pagination a,
.wwd-pagination span {
	padding: 5px 10px;
	border: 1px solid #cfd4d9;
	border-radius: 4px;
	font-size: 13px;
	text-decoration: none;
	color: #2271b1;
	background: #fff;
}
.wwd-pagination .current {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

/* ---------- TinyMCE inside the form ---------- */
.wwd-form .wp-editor-wrap {
	margin-top: 4px;
}
.wwd-form .wp-editor-container {
	border: 1px solid #cfd4d9;
	border-radius: 4px;
	overflow: hidden;
}
.wwd-form .mce-toolbar-grp,
.wwd-form .mce-statusbar {
	background: #f8f9fa !important;
}
.wwd-form .quicktags-toolbar { background: #f8f9fa; }
.wwd-form .wp-switch-editor {
	border-color: #cfd4d9;
	border-bottom: none;
	background: #f3f4f6;
}

/* ---------- Select2 polish to match form ---------- */
.wwd-form .select2-container--default .select2-selection--multiple {
	border-color: #cfd4d9;
	border-radius: 4px;
	min-height: 38px;
	padding: 2px 4px;
}
.wwd-form .select2-container--default.select2-container--focus .select2-selection--multiple {
	border-color: #2271b1;
}
.wwd-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
	background: #e0e7ff;
	color: #3730a3;
	border: 0;
	padding: 2px 8px;
	margin-top: 4px;
	font-size: 13px;
	border-radius: 3px;
}

/* ---------- Fix: WP media modal "Upload Files" tab visibility ---------- *
 * Some frontend themes inherit a transparent or low-contrast colour onto
 * the .media-menu buttons; force the WP defaults so the tab is visible
 * without needing to hover.
 *
 * Deliberately NOT prefixed: wp.media renders its modal at the end of
 * <body>, outside this plugin's markup, so there is nothing to scope it
 * under. A sibling plugin shipping the identical rule is harmless -
 * both set the same WP defaults.
 */
.media-modal .media-router .media-menu-item {
	color: #2271b1 !important;
	opacity: 1 !important;
	background: transparent;
}
.media-modal .media-router .media-menu-item.active,
.media-modal .media-router .media-menu-item:hover,
.media-modal .media-router .media-menu-item:focus {
	color: #135e96 !important;
	box-shadow: inset 0 -3px #2271b1 !important;
}
.media-modal .media-frame-router { background: #f6f7f7; }

/* CSV Import */
.wwd-csv-wrap {
	max-width: 100%;
}

.wwd-csv-template-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	background: #f1f8e9;
	border: 1px solid #c5e1a5;
	border-radius: 6px;
	padding: 12px 14px;
	margin: 0 0 14px;
	font-size: 14px;
}
.wwd-csv-template-box strong { color: #1f7a3a; }
.wwd-csv-template-box span { color: #4b5563; flex: 1 1 auto; min-width: 200px; }
.wwd-csv-template-link { white-space: nowrap; }

.wwd-csv-status {
	margin: 12px 0;
	min-height: 1.4em;
	font-weight: 600;
}

.wwd-csv-error-summary {
	background: #fff5f5;
	border: 1px solid #f5c2c0;
	border-radius: 4px;
	padding: 10px 14px;
	margin: 12px 0;
}
.wwd-csv-error-summary h3 { margin: 0 0 6px 0; font-size: 14px; color: #842029; }
.wwd-csv-error-summary ul { margin: 0; padding-left: 18px; max-height: 180px; overflow-y: auto; }
.wwd-csv-error-summary a { color: #842029; text-decoration: none; }
.wwd-csv-error-summary a:hover { text-decoration: underline; }

.wwd-csv-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin: 12px 0 6px;
	flex-wrap: wrap;
}
.wwd-csv-toolbar-actions { display: flex; gap: 6px; }
.wwd-csv-summary { font-weight: 600; }

.wwd-csv-table-wrap { overflow-x: auto; }

.wwd-csv-table {
	width: 100%;
	border-collapse: collapse;
	margin: 8px 0 16px;
}
.wwd-csv-table th,
.wwd-csv-table td {
	padding: 6px 8px;
	border-bottom: 1px solid #e5e7eb;
	vertical-align: top;
	font-size: 13px;
	text-align: left;
}
.wwd-csv-table th {
	background: #f8f9fa;
	font-weight: 600;
}
.wwd-csv-table tr.wwd-has-error td { background: #fff5f5; }
.wwd-csv-table tr.is-new td { background: #f1f8e9; }
.wwd-csv-table tr.is-new.wwd-has-error td { background: #fff5f5; }
.wwd-csv-table tr.wwd-row-flash td { background: #fffbcc !important; transition: background 1s; }

.wwd-csv-table .wwd-cell {
	padding: 4px 6px;
	border: 1px solid transparent;
	min-width: 120px;
	min-height: 22px;
	border-radius: 3px;
}
.wwd-csv-table .wwd-cell:focus {
	border-color: #2271b1;
	background: #fff;
	outline: none;
}

.wwd-csv-table .wwd-input {
	width: 100%;
	padding: 4px 6px;
	font-size: 13px;
	border: 1px solid #cfd4d9;
	border-radius: 3px;
	box-sizing: border-box;
}

.wwd-csv-table .col-row { width: 36px; text-align: right; color: #6b7280; }
.wwd-csv-table .col-actions { width: 40px; text-align: center; }
.wwd-csv-table .col-errors { width: 240px; }
.wwd-csv-table .col-subtitle,
.wwd-csv-table .col-secondary,
.wwd-csv-table .col-listtitle { width: 150px; }
.wwd-csv-table .col-boxes { width: 260px; }

.wwd-row-delete {
	color: #c0392b;
	font-size: 18px;
	line-height: 1;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 4px 8px;
}
.wwd-row-delete:hover { color: #fff; background: #c0392b; border-radius: 3px; }

.wwd-csv-table .wwd-err {
	font-size: 12px;
	color: #842029;
	padding: 1px 0;
}

.wwd-csv-table .wwd-empty {
	text-align: center;
	color: #6b7280;
	padding: 24px 8px;
}

/* Media picker (single + gallery) inside source cells */

/* Product search (Select2) inside source cells */

@media (max-width: 600px) {
	.wwd-steps { flex-direction: column; }
	.wwd-step { text-align: left; }
}

/* Submission form layout with live preview pane */
.wwd-submit-wrap {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	max-width: 1200px;
	margin: 0 auto;
}
.wwd-submit-wrap > .wwd-form { 
	flex: 1 1 auto; min-width: 0; 
	border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 30px;
  background: #fff;
  width: 100%;
}
.wwd-preview-pane {
	flex: 0 0 360px;
	position: sticky;
	top: 24px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 14px 16px;
	font-size: 14px;
}
.wwd-preview-pane.is-collapsed .wwd-preview-card { display: none; }
.wwd-preview-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e5e7eb;
}
.wwd-preview-title { font-weight: 600; color: #4b5563; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.wwd-preview-toggle { color: #2271b1; cursor: pointer; background: transparent; border: 0; }

.wwd-preview-card { display: flex; flex-direction: column; gap: 10px; }
.wwd-preview-h-title { margin: 0; font-size: 18px; line-height: 1.3; color: #111; }
.wwd-preview-meta { color: #6b7280; font-size: 12px; }
.wwd-preview-short { color: #374151; font-style: italic; }
.wwd-preview-desc { color: #1f2937; font-size: 13px; }
.wwd-preview-desc p { margin: 0 0 8px 0; }

.wwd-preview-media { min-height: 0; }
.wwd-preview-image { width: 100%; height: auto; border-radius: 4px; }
.wwd-preview-placeholder {
	display: inline-block; padding: 24px 8px; background: #f3f4f6;
	border-radius: 3px; color: #6b7280; text-align: center; font-size: 11px;
	width: 100%; box-sizing: border-box;
}
.wwd-preview-link a { word-break: break-all; }

.wwd-preview-tag {
	display: inline-block; background: #f3f4f6; color: #4b5563;
	padding: 2px 8px; border-radius: 3px; font-size: 11px; margin-right: 4px;
}
.wwd-preview-cats { font-size: 12px; color: #4b5563; }

@media (max-width: 900px) {
	.wwd-submit-wrap { flex-direction: column; }
	.wwd-preview-pane { position: static; flex: 1 1 auto; max-height: none; width: 100%; box-sizing: border-box; }
}

/* CSV preview modal + import report */
.wwd-csv-pending-note {
	background: #fff3cd; border: 1px solid #ffe39a; color: #856404;
	padding: 8px 12px; border-radius: 4px; font-size: 13px; margin: 8px 0;
}

.wwd-csv-modal {
	display: none;
	position: fixed; inset: 0; z-index: 100050;
	align-items: center; justify-content: center;
}
.wwd-csv-modal:not([hidden]) {
	display: flex;
}
.wwd-csv-modal[hidden] { display: none !important; }
.wwd-csv-modal-backdrop {
	position: absolute; inset: 0; background: rgba(0,0,0,0.5);
}
.wwd-csv-modal-dialog {
	position: relative; background: #fff; border-radius: 6px;
	width: min(820px, 92vw); max-height: 86vh; display: flex; flex-direction: column;
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.wwd-csv-modal-header,
.wwd-csv-modal-footer {
	padding: 12px 16px;
	display: flex; align-items: center; justify-content: space-between;
}
.wwd-csv-modal-header { border-bottom: 1px solid #e5e7eb; }
.wwd-csv-modal-footer { border-top: 1px solid #e5e7eb; gap: 8px; justify-content: flex-end; }
.wwd-csv-modal-header h2 { margin: 0; font-size: 16px; }
.wwd-csv-modal-close {
	background: transparent; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: #6b7280;
}
.wwd-csv-modal-body { padding: 14px 16px; overflow-y: auto; }
.wwd-csv-modal-summary { font-weight: 600; margin: 0 0 12px 0; }

.wwd-csv-preview-list { display: flex; flex-direction: column; gap: 10px; }
.wwd-csv-preview-item {
	display: flex; gap: 12px; padding: 10px; border: 1px solid #e5e7eb; border-radius: 4px; background: #fcfcfc;
}
.wwd-csv-preview-item.wwd-has-error { background: #fff5f5; border-color: #f5c2c0; }
.wwd-csv-preview-thumb {
	flex: 0 0 64px; width: 64px; height: 64px;
	display: flex; align-items: center; justify-content: center;
	background: #f3f4f6; border-radius: 4px; overflow: hidden;
}
.wwd-csv-preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wwd-preview-thumb-placeholder {
	font-size: 24px; font-weight: 700; color: #9ca3af;
}
.wwd-csv-preview-body { flex: 1; min-width: 0; }
.wwd-csv-preview-row1 { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.wwd-csv-preview-row-num { font-size: 11px; color: #6b7280; align-self: center; margin-right: 6px; }
.wwd-csv-preview-body h4 { margin: 0 0 4px 0; font-size: 14px; }
.wwd-csv-preview-short { color: #4b5563; font-size: 12px; margin: 2px 0; }
.wwd-csv-preview-meta { font-size: 12px; color: #4b5563; margin: 2px 0; }
.wwd-csv-preview-errors { margin: 6px 0 0; padding-left: 18px; color: #842029; font-size: 12px; }

.wwd-csv-report {
	background: #f1f8e9; border: 1px solid #c5e1a5; border-radius: 6px;
	padding: 14px 16px; margin: 16px 0;
}
.wwd-csv-report-headline { margin: 0 0 4px 0; }
.wwd-csv-report-note { color: #4b5563; font-size: 13px; margin: 0 0 12px 0; }

/* Featured image picker inside the importer table */
.wwd-csv-table .col-image { width: 130px; }
.wwd-media-picker { font-size: 12px; }
.wwd-media-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 6px;
}
.wwd-media-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: #f3f4f6;
	border: 1px solid #cfd4d9;
	border-radius: 3px;
	font-size: 11px;
	color: #4b5563;
	overflow: hidden;
}
.wwd-media-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.wwd-media-clear {
	color: #c0392b;
	font-size: 16px;
	line-height: 1;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 2px 6px;
}
.wwd-media-clear:hover { color: #fff; background: #c0392b; border-radius: 3px; }
.wwd-upload-note {
	display: inline-block;
	margin-top: 4px;
	font-size: 11px;
	color: #4b5563;
}

/* Shared badges for frontend (echo of admin) */
.wwd-badge {
	display: inline-block; font-size: 11px; font-weight: 600;
	padding: 2px 8px; border-radius: 999px;
	text-transform: uppercase; letter-spacing: 0.04em;
}
.wwd-badge-approved { background: #d1f2dc; color: #1f7a3a; }
.wwd-badge-rejected { background: #fde2e1; color: #842029; }
.wwd-badge-pending  { background: #fff3cd; color: #856404; }
.wwd-badge-error    { background: #fde2e1; color: #842029; }
/* TinyMCE button polish. Scoped under .wwd-form so these never restyle a
 * sibling plugin's editor, or the block editor, elsewhere on the page. */
.wwd-form .mce-widget button {
	border: 1px solid transparent !important;
}
.wwd-form .mce-toolbar .mce-btn-group .mce-btn:focus,
.wwd-form .mce-toolbar .mce-btn-group .mce-btn:hover,
.wwd-form .qt-dfw:focus,
.wwd-form .qt-dfw:hover {
	box-shadow: unset !important;
}
.wwd-form .mce-toolbar .mce-btn-group .mce-btn.mce-disabled:focus,
.wwd-form .mce-toolbar .mce-btn-group .mce-btn.mce-disabled:hover {
	border-color: transparent !important;
}
.wwd-form .mce-btn.mce-active button,
.wwd-form .mce-btn.mce-active:hover button,
.wwd-form .mce-btn.mce-active i,
.wwd-form .mce-btn.mce-active:hover i {
	color: #000 !important;
}


/* ---------- Highlighted Box repeater (submission form) ---------- */
.wwd-repeater {
	margin: 18px 0;
	padding: 14px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #fbfbfc;
}
.wwd-repeater > label {
	display: block;
	margin-bottom: 2px;
	font-weight: 600;
	font-size: 14px;
}
.wwd-repeater.wwd-has-error {
	border-color: #dc3232;
	background: #fff5f5;
}
.wwd-repeater-rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 10px 0;
}
.wwd-repeater-row {
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	background: #fff;
	padding: 10px 12px;
}
.wwd-repeater-row p { margin: 0 0 8px; }
.wwd-repeater-row p:last-child { margin-bottom: 0; }
.wwd-repeater-row-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid #f0f1f3;
}
.wwd-repeater-row-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #4b5563;
}
.wwd-repeater-remove {
	background: transparent;
	border: 0;
	color: #c0392b;
	cursor: pointer;
	font-size: 12px;
	padding: 2px 6px;
}
.wwd-repeater-remove:hover { text-decoration: underline; }
.wwd-repeater-add { margin-top: 4px; }

/* ---------- Preview pane: sections + boxes ---------- */
.wwd-preview-section-title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #4b5563;
	margin-bottom: 4px;
}
.wwd-preview-section-body {
	font-size: 13px;
	color: #1f2937;
}
.wwd-preview-section-body p { margin: 0 0 8px; }
.wwd-preview-boxes { display: flex; flex-direction: column; gap: 6px; }
.wwd-preview-box {
	background: #f3f4f6;
	border-radius: 4px;
	padding: 8px 10px;
	font-size: 13px;
	color: #1f2937;
}
.wwd-preview-box strong { display: block; margin-bottom: 2px; }
.wwd-preview-box p { margin: 0 0 6px; }

/* ---------- Highlighted boxes cell (importer table) ---------- */
.wwd-boxes-cell .wwd-cell { min-width: 220px; }
.wwd-boxes-count {
	display: inline-block;
	margin-top: 4px;
	font-size: 11px;
	font-weight: 600;
	color: #4b5563;
}
.wwd-boxes-hint {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	color: #9ca3af;
	font-style: italic;
}

/* ---------- Relationship fields (submission form) ---------- */
.wwd-step-intro { margin-bottom: 16px; }
.wwd-rel-field { margin-bottom: 16px; }
.wwd-form .wwd-rel-field .select2-container { display: block; }
.wwd-preview-related { display: flex; flex-direction: column; gap: 4px; }
.wwd-preview-rel-group {
	font-size: 12px;
	color: #4b5563;
	line-height: 1.5;
}
.wwd-preview-rel-group strong { color: #374151; }

/* ---------- Relationship cells (importer table) ---------- */
.wwd-csv-table .col-rel { width: 190px; }
.wwd-rel-cell .wwd-cell { min-width: 160px; }
.wwd-rel-hint {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	color: #9ca3af;
	font-style: italic;
}

/* ---------- Icon image (form + preview + importer) ---------- */
.wwd-clear-image {
	background: transparent;
	border: 0;
	color: #c0392b;
	cursor: pointer;
	font-size: 12px;
	padding: 2px 6px;
}
.wwd-clear-image:hover { text-decoration: underline; }
.wwd-preview-icon:not(:empty) { margin-bottom: 8px; }
.wwd-preview-iconimg {
	max-width: 56px;
	height: auto;
	border-radius: 4px;
	background: #f3f4f6;
	padding: 4px;
}
.wwd-csv-table .col-icon { width: 110px; }
.wwd-csv-preview-icon img {
	max-width: 48px;
	height: auto;
	border-radius: 4px;
	margin-bottom: 6px;
}

/* ---------- Step tabs: clickable, with an error marker ---------- */
.wwd-step:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}
.wwd-step-error {
	color: #c0392b;
	border-color: #dc3232;
}
/* A dot on the tab, so a failing section is visible from any other one. */
.wwd-step-error::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 6px;
	border-radius: 50%;
	background: #dc3232;
	vertical-align: middle;
}

/* ---------- Picker thumbnails ---------- *
 * An SVG often carries no intrinsic width/height, so without a floor it can
 * render at zero and look like nothing was selected. The cap stops a
 * full-size fallback (used when no thumbnail size exists) from overflowing.
 */
.wwd-preview img {
	max-width: 150px;
	min-width: 40px;
	min-height: 40px;
	object-fit: contain;
	background: #f3f4f6;
	padding: 2px;
	box-sizing: border-box;
}
