/* Build-config wizard — extends wizard.css's shared .rmqf-wizard/.rmqf-chat-*
   classes with the option chips and diagram result panel this flow needs. */

.rmqf-chat-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	padding: 0 1em 1em;
}

/* The theme's own global button style overrides plain background/border
   rules on a bare <button> (every chip renders solid yellow regardless of
   what's set below) — the unselected/selected states must still read as
   unmistakably different against that, so the selected state is forced
   with !important rather than relying on cascade order to win. */
.rmqf-chip {
	padding: 0.5em 1em;
	border: 1px solid #ddd;
	border-radius: 999px;
	background: #fff;
	color: #393c41;
	font-size: 0.9em;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.rmqf-chip:hover {
	border-color: #ffce00;
}

.rmqf-chip-selected {
	background: #0B1423 !important;
	border-color: #0B1423 !important;
	color: #FFFFFF !important;
	font-weight: 700;
}

.rmqf-chip-selected::before {
	content: "\2713  ";
}

.rmqf-chip-primary {
	background: #ffce00;
	border-color: #ffce00;
	font-weight: 700;
}

.rmqf-chip-muted {
	color: #7a7a7a;
}

.rmqf-build-upload {
	margin: 0 1em 1em;
}

.rmqf-upload-cancel {
	display: block;
	margin-top: 0.6em;
	padding: 0;
	border: none;
	background: none;
	color: #7a7a7a;
	font-size: 0.85em;
	text-decoration: underline;
	cursor: pointer;
}

.rmqf-upload-cancel:hover {
	color: #393c41;
}

/* Only one diagram is generated now (block diagram + board outline were
   merged into a single visual) — the old multi-column grid actively
   worked against readability by squeezing it into a narrow cell. It now
   gets the full available width, and the whole wizard widens for just
   this step so the diagram's own text doesn't get scaled down further
   than the other, narrower steps need. */
#rmqf-build-wizard[data-step="done"] {
	max-width: 940px;
}

/* The chat itself reads as cramped at the wizard's base 640px on a real
   desktop monitor — widen just this step (contact form stays narrow,
   which suits a short form better) and give the log a bit more height
   to match, without touching the original assembly-quote wizard, which
   doesn't use this id/data-step combination at all. */
#rmqf-build-wizard[data-step="build"] {
	max-width: 860px;
}

#rmqf-build-wizard[data-step="build"] .rmqf-chat-log {
	max-height: 520px;
}

@media (max-width: 600px) {
	#rmqf-build-wizard[data-step="build"] {
		max-width: 100%;
	}
	#rmqf-build-wizard[data-step="build"] .rmqf-chat-log {
		max-height: 55vh;
	}
}

.rmqf-build-result {
	margin-top: 1em;
}

.rmqf-build-result-item {
	margin: 0;
	padding: 1em;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
}

.rmqf-build-result-item img {
	width: 100%;
	height: auto;
	display: block;
}
