/**
 * ChatCatch inline Wizard.
 *
 * Scoped under .cc-wizard so it never leaks into the host theme. The accent
 * (--cc-accent) is shared with the floating widget and overridable from settings;
 * white text on the default rust accent clears WCAG AA.
 */
.cc-wizard {
	--cc-accent: #c2410c;
	--cc-accent-ink: #ffffff;
	/* WhatsApp brand green — the Send button is always WhatsApp-branded, not themed. */
	--cc-whatsapp: #25d366;
	--cc-surface: #ffffff;
	--cc-ink: #0f172a;
	--cc-muted: #64748b;
	--cc-line: #e2e8f0;
	--cc-chosen: #fff7ed;
	--cc-radius: 12px;

	max-width: 560px;
	margin: 1.5em 0;
	padding: 20px;
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius);
	background: var(--cc-surface);
	color: var(--cc-ink);
	font-size: 16px;
	line-height: 1.45;
}

.cc-wizard *,
.cc-wizard *::before,
.cc-wizard *::after {
	box-sizing: border-box;
}

.cc-wiz-prompt {
	font-weight: 600;
	margin: 0 0 12px;
}

.cc-wiz-trail {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.cc-wiz-crumb {
	font-size: 13px;
	color: var(--cc-muted);
	background: #f1f3f5;
	padding: 3px 10px;
	border-radius: 999px;
}

.cc-wiz-choices {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cc-wiz-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	border: 1px solid var(--cc-line);
	background: var(--cc-surface);
	color: var(--cc-ink);
	border-radius: 10px;
	padding: 10px 16px;
	font: inherit;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.cc-wiz-chip:hover,
.cc-wiz-chip:focus-visible {
	background: var(--cc-accent);
	color: var(--cc-accent-ink);
	outline: none;
}

.cc-wiz-entry {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cc-wiz-input {
	width: 100%;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--cc-line);
	border-radius: 10px;
	font: inherit;
	color: var(--cc-ink);
	background: var(--cc-surface);
}

.cc-wiz-input:focus-visible {
	outline: 2px solid var(--cc-accent);
	outline-offset: 0;
}

.cc-wiz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 10px;
	padding: 10px 18px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.cc-wiz-btn-primary {
	background: var(--cc-accent);
	color: var(--cc-accent-ink);
}

.cc-wiz-btn-primary:focus-visible {
	outline: 3px solid var(--cc-accent);
	outline-offset: 2px;
}

.cc-wiz-send {
	margin-top: 12px;
	gap: 8px;
	background: var(--cc-whatsapp);
	color: #0f172a;
	border: 1px solid #000;
}

.cc-wiz-send .cc-wa-icon {
	display: inline-flex;
}

.cc-wiz-send .cc-wa-icon svg {
	width: 20px;
	height: 20px;
}

.cc-wiz-summary {
	list-style: none;
	margin: 0 0 12px;
	padding: 12px 14px;
	background: var(--cc-chosen);
	border-radius: 10px;
}

.cc-wiz-summary li {
	margin: 2px 0;
}

.cc-wiz-skip {
	display: inline-block;
	margin-top: 8px;
	border: 0;
	background: transparent;
	color: var(--cc-muted);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.cc-wiz-nav {
	margin-top: 12px;
}

.cc-wiz-restart {
	border: 0;
	background: transparent;
	color: var(--cc-muted);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

@media ( max-width: 480px ) {
	.cc-wizard {
		padding: 16px;
		font-size: 15px;
	}

	.cc-wiz-send {
		width: 100%;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.cc-wiz-chip {
		transition: none;
	}
}
