/* WP Super Chat widget. Everything is scoped under .wpsc-root.
 * Uses logical properties (inline-start/end) so right-to-left pages mirror correctly. */

.wpsc-root {
	--wpsc-accent: #2453d6;
	--wpsc-on-accent: #ffffff;
	--wpsc-text: #111827;
	--wpsc-muted: #4b5563;
	--wpsc-border: #e5e7eb;
	--wpsc-surface: #ffffff;
	--wpsc-ground: #f7f8fa;
	--wpsc-field: #d0d5db;
	--wpsc-radius: 20px;
	--wpsc-width: 380px;
	--wpsc-offset-x: 20px;
	--wpsc-offset-y: 20px;
	--wpsc-launcher: 60px;
	--wpsc-ico-cut: var(--wpsc-accent);
	/* The brand color as text and outlines: a readable shade (set by the widget). */
	--wpsc-accent-ink: var(--wpsc-accent-ink-light, var(--wpsc-accent));
	font-family: var(--wpsc-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Sans Hebrew", Helvetica, Arial, sans-serif);
	font-size: 14px;
	line-height: 1.45;
	color: var(--wpsc-text);
	text-align: start;
	box-sizing: border-box;
}
.wpsc-root.wpsc-font-inherit { --wpsc-font: inherit; }
.wpsc-root *, .wpsc-root *::before, .wpsc-root *::after { box-sizing: inherit; }
.wpsc-root button, .wpsc-root input { font: inherit; margin: 0; letter-spacing: normal; text-transform: none; }
.wpsc-root img { max-width: 100%; border: 0; }
/* Our display rules must never beat the hidden attribute (e.g. the launcher when the bubble is off). */
.wpsc-root [hidden], .wpsc-root[hidden] { display: none !important; }

/* Dark scheme (and "auto" when the visitor's device is dark) */
.wpsc-root.wpsc-scheme-dark {
	--wpsc-text: #f3f4f6;
	--wpsc-muted: #a1a7b3;
	--wpsc-border: #374151;
	--wpsc-surface: #1f2430;
	--wpsc-ground: #151922;
	--wpsc-field: #3c4454;
	--wpsc-accent-ink: var(--wpsc-accent-ink-dark, var(--wpsc-accent));
}
@media (prefers-color-scheme: dark) {
	.wpsc-root.wpsc-scheme-auto {
		--wpsc-text: #f3f4f6;
		--wpsc-muted: #a1a7b3;
		--wpsc-border: #374151;
		--wpsc-surface: #1f2430;
		--wpsc-ground: #151922;
		--wpsc-field: #3c4454;
		--wpsc-accent-ink: var(--wpsc-accent-ink-dark, var(--wpsc-accent));
	}
}

/* Floating layout. The side is physical (left/right); JS mirrors it for RTL pages. */
.wpsc-root.wpsc-floating {
	position: fixed;
	bottom: var(--wpsc-offset-y);
	z-index: 2147483000;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
/* Cross-axis alignment follows the text direction, so pin it to the physical side. */
.wpsc-root.wpsc-pos-right { right: var(--wpsc-offset-x); align-items: flex-end; }
.wpsc-root.wpsc-pos-left { left: var(--wpsc-offset-x); align-items: flex-start; }
.wpsc-root.wpsc-pos-right[dir="rtl"] { align-items: flex-start; }
.wpsc-root.wpsc-pos-left[dir="rtl"] { align-items: flex-end; }

/* Launcher */
.wpsc-root .wpsc-launcher {
	min-width: var(--wpsc-launcher);
	height: var(--wpsc-launcher);
	border: 0;
	border-radius: 999px;
	background: var(--wpsc-accent);
	color: var(--wpsc-on-accent);
	--wpsc-ico-cut: var(--wpsc-accent);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0;
	box-shadow: 0 8px 24px rgba(16, 24, 40, .22), 0 2px 6px rgba(16, 24, 40, .12);
	transition: transform .18s ease, box-shadow .18s ease;
}
.wpsc-root .wpsc-launcher:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 24, 40, .26), 0 2px 6px rgba(16, 24, 40, .12); }
.wpsc-root .wpsc-launcher-label { padding-inline: 18px 22px; }
.wpsc-root .wpsc-launcher-icon { display: inline-flex; align-items: center; justify-content: center; width: calc(var(--wpsc-launcher) * .5); height: calc(var(--wpsc-launcher) * .5); }
.wpsc-root .wpsc-launcher-icon svg { width: 100%; height: 100%; display: block; }
.wpsc-root .wpsc-launcher.wpsc-is-open .wpsc-launcher-icon { width: calc(var(--wpsc-launcher) * .38); height: calc(var(--wpsc-launcher) * .38); animation: wpsc-turn .2s ease; }
.wpsc-root .wpsc-launcher-img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.wpsc-root .wpsc-launcher-text { font-size: 15px; font-weight: 600; white-space: nowrap; }
.wpsc-root .wpsc-launcher.wpsc-is-open .wpsc-launcher-text { display: none; }
.wpsc-root .wpsc-launcher.wpsc-is-open { padding: 0; width: var(--wpsc-launcher); }
.wpsc-root .wpsc-launcher:focus-visible, .wpsc-root button:focus-visible, .wpsc-root a:focus-visible {
	outline: 3px solid var(--wpsc-accent-ink);
	outline-offset: 2px;
}
@keyframes wpsc-turn { from { transform: rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }

.wpsc-root .wpsc-ico-cut { fill: var(--wpsc-ico-cut); }
.wpsc-root .wpsc-ico-cut-line { stroke: var(--wpsc-ico-cut); }

/* Teaser message beside the launcher */
.wpsc-root .wpsc-teaser {
	position: relative;
	display: flex;
	align-items: flex-start;
	max-width: 260px;
	background: var(--wpsc-surface);
	color: var(--wpsc-text);
	border: 1px solid var(--wpsc-border);
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(16, 24, 40, .14);
	animation: wpsc-rise .25s ease;
}
.wpsc-root .wpsc-teaser-text {
	flex: 1;
	border: 0;
	background: none;
	color: inherit;
	text-align: start;
	padding-block: 12px;
	padding-inline: 14px 4px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.4;
}
.wpsc-root .wpsc-teaser-close {
	flex: none;
	width: 32px;
	height: 32px;
	margin: 4px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--wpsc-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.wpsc-root .wpsc-teaser-close svg { width: 14px; height: 14px; }
.wpsc-root .wpsc-teaser-close:hover { background: var(--wpsc-ground); }
@keyframes wpsc-rise { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Panel */
/* Keep theme styles for generic elements (padding, margins, sticky headers…) off the widget. */
.wpsc-root .wpsc-panel, .wpsc-root .wpsc-header, .wpsc-root .wpsc-form, .wpsc-root .wpsc-messages, .wpsc-root .wpsc-foot {
	margin: 0;
	min-height: 0;
	max-width: none;
	float: none;
	box-sizing: border-box;
}
.wpsc-root .wpsc-panel {
	padding: 0;
	display: flex;
	flex-direction: column;
	background: var(--wpsc-surface);
	border-radius: var(--wpsc-radius);
	overflow: hidden;
	box-shadow: 0 16px 48px rgba(16, 24, 40, .2), 0 2px 6px rgba(16, 24, 40, .08);
}
.wpsc-root .wpsc-panel[hidden] { display: none; }
.wpsc-root.wpsc-floating .wpsc-panel { width: min(var(--wpsc-width), calc(100vw - 24px)); height: min(640px, calc(100vh - var(--wpsc-launcher) - var(--wpsc-offset-y) - 40px)); animation: wpsc-rise .2s ease; }
.wpsc-root.wpsc-inline .wpsc-panel { width: 100%; max-width: 720px; height: 560px; border: 1px solid var(--wpsc-border); box-shadow: none; }

.wpsc-root .wpsc-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-block: 14px;
	padding-inline: 16px 10px;
	background: var(--wpsc-accent);
	color: var(--wpsc-on-accent);
	--wpsc-ico-cut: var(--wpsc-accent);
}
.wpsc-root.wpsc-header-gradient .wpsc-header {
	background: linear-gradient(135deg, var(--wpsc-accent), color-mix(in srgb, var(--wpsc-accent) 62%, #000));
}
.wpsc-root.wpsc-header-light .wpsc-header {
	background: var(--wpsc-surface);
	color: var(--wpsc-text);
	border-bottom: 1px solid var(--wpsc-border);
	--wpsc-ico-cut: var(--wpsc-accent);
}
.wpsc-root .wpsc-avatar {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .2);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.wpsc-root .wpsc-avatar svg { width: 22px; height: 22px; }
.wpsc-root .wpsc-avatar-img { background: var(--wpsc-surface); }
.wpsc-root .wpsc-avatar-img img { width: 100%; height: 100%; object-fit: cover; }
.wpsc-root.wpsc-header-light .wpsc-avatar { background: var(--wpsc-accent); color: var(--wpsc-on-accent); }
.wpsc-root.wpsc-header-light .wpsc-avatar svg { --wpsc-ico-cut: var(--wpsc-accent); }
.wpsc-root .wpsc-titles { flex: 1; min-width: 0; }
.wpsc-root .wpsc-name { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpsc-root .wpsc-subtitle { font-size: 12px; opacity: .88; }
.wpsc-root.wpsc-header-light .wpsc-subtitle { color: var(--wpsc-muted); opacity: 1; }
.wpsc-root .wpsc-icon-btn {
	flex: none;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.wpsc-root .wpsc-icon-btn svg { width: 18px; height: 18px; }
.wpsc-root .wpsc-icon-btn:hover { background: rgba(255, 255, 255, .16); }
.wpsc-root.wpsc-header-light .wpsc-icon-btn { color: var(--wpsc-muted); }
.wpsc-root.wpsc-header-light .wpsc-icon-btn:hover { background: var(--wpsc-ground); color: var(--wpsc-text); }

/* Messages */
.wpsc-root .wpsc-messages {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	background: var(--wpsc-ground);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.wpsc-root .wpsc-msg { display: flex; flex-direction: column; gap: 6px; max-width: 88%; }
.wpsc-root .wpsc-user { align-self: flex-end; align-items: flex-end; }
.wpsc-root .wpsc-bot { align-self: flex-start; align-items: flex-start; }
.wpsc-root .wpsc-bubble {
	padding: 10px 12px;
	border-radius: calc(var(--wpsc-radius) * .7);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	unicode-bidi: plaintext;
	text-align: start;
}
.wpsc-root .wpsc-bot .wpsc-bubble { background: var(--wpsc-surface); border: 1px solid var(--wpsc-border); border-end-start-radius: 4px; }
.wpsc-root .wpsc-user .wpsc-bubble { background: var(--wpsc-accent); color: var(--wpsc-on-accent); border-end-end-radius: 4px; }
.wpsc-root .wpsc-bubble a { color: inherit; text-decoration: underline; }
.wpsc-root .wpsc-bubble.wpsc-error { border-color: #fecdca; background: #fef3f2; color: #912018; }
.wpsc-root .wpsc-admin-hint { display: block; margin-top: 6px; font-size: 12px; opacity: .9; }

.wpsc-root .wpsc-typing { min-width: 56px; min-height: 38px; position: relative; }
.wpsc-root .wpsc-typing::after {
	content: "";
	position: absolute;
	inset-inline-start: 14px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-radius: 50%;
	background: var(--wpsc-muted);
	box-shadow: 10px 0 0 var(--wpsc-muted), 20px 0 0 var(--wpsc-muted);
	animation: wpsc-pulse 1s infinite ease-in-out;
}
.wpsc-root[dir="rtl"] .wpsc-typing::after { box-shadow: -10px 0 0 var(--wpsc-muted), -20px 0 0 var(--wpsc-muted); }
@keyframes wpsc-pulse { 50% { opacity: .35; } }

.wpsc-root .wpsc-sources { display: flex; flex-wrap: wrap; gap: 6px; }
/* Suggested questions under the welcome message */
.wpsc-root .wpsc-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.wpsc-root .wpsc-suggest-btn {
	display: inline-flex; align-items: center; max-width: 100%; margin: 0; padding: 7px 12px;
	font: inherit; font-size: 13px; line-height: 1.3; text-align: start; text-transform: none; letter-spacing: normal;
	color: var(--wpsc-accent-ink); background: var(--wpsc-surface); border: 1px solid var(--wpsc-field); border-radius: 999px;
	box-shadow: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.wpsc-root .wpsc-suggest-btn:hover { background: var(--wpsc-ground); border-color: var(--wpsc-accent); color: var(--wpsc-accent-ink); }
.wpsc-root .wpsc-suggest-btn:focus-visible { outline: 2px solid var(--wpsc-accent-ink); outline-offset: 2px; }
/* Lead form offered by the bot */
.wpsc-root .wpsc-lead { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; padding: 12px; max-width: 100%; border: 1px solid var(--wpsc-border); border-radius: 14px; background: var(--wpsc-surface); box-sizing: border-box; }
.wpsc-root .wpsc-lead-intro { margin: 0; font-size: 14px; font-weight: 600; color: var(--wpsc-text); line-height: 1.4; }
.wpsc-root .wpsc-lead-field { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 12px; color: var(--wpsc-muted); }
.wpsc-root .wpsc-lead-input {
	width: 100%; box-sizing: border-box; margin: 0; padding: 8px 10px; font: inherit; font-size: 14px; line-height: 1.4;
	color: var(--wpsc-text); background: var(--wpsc-surface); border: 1px solid var(--wpsc-field); border-radius: 10px; box-shadow: none; resize: vertical;
}
.wpsc-root .wpsc-lead-input:focus { outline: 2px solid var(--wpsc-accent-ink); outline-offset: 0; border-color: var(--wpsc-accent); }
.wpsc-root .wpsc-lead-consent { margin: 0; font-size: 11px; color: var(--wpsc-muted); line-height: 1.4; }
.wpsc-root .wpsc-lead-actions { display: flex; gap: 8px; align-items: center; }
.wpsc-root .wpsc-lead-send {
	margin: 0; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: normal;
	color: var(--wpsc-on-accent); background: var(--wpsc-accent); border: 0; border-radius: 999px; box-shadow: none; cursor: pointer;
}
.wpsc-root .wpsc-lead-send:disabled { opacity: .6; cursor: default; }
.wpsc-root .wpsc-lead-skip { margin: 0; padding: 8px 10px; font: inherit; font-size: 13px; text-transform: none; color: var(--wpsc-muted); background: transparent; border: 0; box-shadow: none; cursor: pointer; }
.wpsc-root .wpsc-lead-skip:hover { color: var(--wpsc-text); }
.wpsc-root .wpsc-lead-msg { margin: 0; font-size: 12px; color: #b42318; }
.wpsc-root .wpsc-lead-msg:empty { display: none; }
.wpsc-root .wpsc-lead-thanks { margin: 4px 0 0; padding: 10px 12px; font-size: 13px; color: var(--wpsc-text); background: var(--wpsc-ground); border-radius: 12px; }
/* Was this answer helpful? */
.wpsc-root .wpsc-feedback { display: flex; align-items: center; gap: 2px; margin-top: 2px; }
.wpsc-root .wpsc-fb { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--wpsc-muted); cursor: pointer; opacity: .75; transition: background .15s, color .15s, opacity .15s; }
.wpsc-root .wpsc-fb-down svg { transform: rotate(180deg); }
.wpsc-root .wpsc-fb:hover:not(:disabled) { background: var(--wpsc-ground); color: var(--wpsc-text); opacity: 1; }
.wpsc-root .wpsc-fb:disabled { cursor: default; opacity: .45; }
.wpsc-root .wpsc-fb.is-picked { color: var(--wpsc-accent-ink); opacity: 1; }
.wpsc-root .wpsc-fb-thanks { font-size: 12px; color: var(--wpsc-muted); margin-inline-start: 6px; }
.wpsc-root .wpsc-source {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid var(--wpsc-field);
	background: var(--wpsc-surface);
	color: var(--wpsc-text);
	text-decoration: none;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.wpsc-root .wpsc-source:hover { border-color: var(--wpsc-accent); color: var(--wpsc-accent-ink); }
.wpsc-root .wpsc-source svg { flex: none; }

/* Input */
.wpsc-root .wpsc-form {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 12px;
	border-top: 1px solid var(--wpsc-border);
	background: var(--wpsc-surface);
}
.wpsc-root .wpsc-input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--wpsc-field);
	border-radius: 999px;
	background: var(--wpsc-ground);
	color: var(--wpsc-text);
	font-size: 15px;
	text-align: start;
}
.wpsc-root .wpsc-input { unicode-bidi: plaintext; text-align: start; }
.wpsc-root .wpsc-input::placeholder { color: var(--wpsc-muted); opacity: 1; }
.wpsc-root .wpsc-input:focus { outline: 2px solid var(--wpsc-accent-ink); outline-offset: 0; border-color: transparent; }
.wpsc-root .wpsc-send {
	flex: none;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--wpsc-accent);
	color: var(--wpsc-on-accent);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.wpsc-root[dir="rtl"] .wpsc-send svg { transform: scaleX(-1); }
.wpsc-root .wpsc-send:disabled, .wpsc-root .wpsc-input:disabled, .wpsc-root .wpsc-input[readonly] { opacity: .6; cursor: default; }
.wpsc-root .wpsc-foot { text-align: center; font-size: 11px; color: var(--wpsc-muted); padding: 0 12px 10px; background: var(--wpsc-surface); }

.wpsc-root .wpsc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Phones: the floating panel fills the screen */
@media (max-width: 480px) {
	.wpsc-root.wpsc-floating.wpsc-open { inset: 0; padding: 0; gap: 0; }
	.wpsc-root.wpsc-floating.wpsc-open .wpsc-panel { width: 100%; height: 100%; border-radius: 0; }
	.wpsc-root.wpsc-floating.wpsc-open .wpsc-launcher, .wpsc-root.wpsc-floating.wpsc-open .wpsc-teaser { display: none; }
	.wpsc-root .wpsc-launcher-label .wpsc-launcher-text { font-size: 14px; }
}

/* "Jump to latest" over the bottom edge of the messages (shown after scrolling up while new content arrives) */
.wpsc-root .wpsc-jump-wrap { position: relative; flex: none; height: 0; z-index: 1; }
.wpsc-root .wpsc-jump {
	position: absolute;
	bottom: 10px;
	left: 0;
	right: 0;
	width: 36px;
	height: 36px;
	margin: 0 auto;
	padding: 0;
	border: 1px solid var(--wpsc-border);
	border-radius: 50%;
	background: var(--wpsc-surface);
	color: var(--wpsc-text);
	box-shadow: 0 4px 12px rgba(16, 24, 40, .18);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: wpsc-rise .15s ease;
}
.wpsc-root .wpsc-jump[hidden] { display: none; }
.wpsc-root .wpsc-jump:hover { background: var(--wpsc-ground); }
.wpsc-root .wpsc-jump:focus-visible { outline: 2px solid var(--wpsc-accent); outline-offset: 2px; }

/* Tool status line */
.wpsc-root .wpsc-status {
	padding: 6px 16px;
	font-size: 12px;
	color: var(--wpsc-muted);
	background: var(--wpsc-ground);
	border-top: 1px solid var(--wpsc-border);
}
.wpsc-root .wpsc-status[hidden] { display: none; }
.wpsc-root .wpsc-status::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-inline-end: 8px;
	border-radius: 50%;
	background: var(--wpsc-accent);
	animation: wpsc-pulse 1s infinite ease-in-out;
}

/* Cards from tools: products, orders, downloads */
.wpsc-root .wpsc-cards { display: flex; flex-direction: column; gap: 8px; width: 100%; min-width: 260px; }
.wpsc-root .wpsc-card {
	position: relative;
	display: flex;
	gap: 10px;
	padding: 10px;
	background: var(--wpsc-surface);
	border: 1px solid var(--wpsc-border);
	border-radius: calc(var(--wpsc-radius) * .6);
}
.wpsc-root .wpsc-card-img { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--wpsc-ground); }
.wpsc-root .wpsc-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wpsc-root .wpsc-card-title { font-weight: 600; font-size: 13px; color: var(--wpsc-text); text-decoration: none; padding-inline-end: 48px; }
.wpsc-root a.wpsc-card-title:hover { color: var(--wpsc-accent-ink); }
.wpsc-root .wpsc-card-subtitle { font-size: 12px; color: var(--wpsc-muted); }
.wpsc-root .wpsc-card-text { font-size: 12px; color: var(--wpsc-text); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wpsc-root .wpsc-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wpsc-root .wpsc-card-btn {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	color: var(--wpsc-accent-ink);
	border: 1px solid var(--wpsc-accent);
	background: var(--wpsc-surface);
}
.wpsc-root .wpsc-card-btn:first-child { background: var(--wpsc-accent); color: var(--wpsc-on-accent); }
.wpsc-root .wpsc-card-badge {
	position: absolute;
	top: 8px;
	inset-inline-end: 8px;
	font-size: 10px;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--wpsc-ground);
	color: var(--wpsc-muted);
}

/* Mode badge: "Test mode" (WP admin) or "Preview: only admins see this" (site) */
.wpsc-root .wpsc-mode-badge {
	display: inline-block;
	margin-top: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .22);
	font-size: 11px;
	font-weight: 600;
}
.wpsc-root.wpsc-header-light .wpsc-mode-badge { background: var(--wpsc-ground); color: var(--wpsc-muted); }

/* Quick replies (tool 'actions' display) */
.wpsc-root .wpsc-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.wpsc-root .wpsc-action {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid var(--wpsc-accent);
	border-radius: 999px;
	background: var(--wpsc-surface);
	color: var(--wpsc-accent-ink);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
}
.wpsc-root .wpsc-action:hover { background: var(--wpsc-accent); color: var(--wpsc-on-accent); }
.wpsc-root .wpsc-display { max-width: 100%; }

/* Dark schemes: soften error bubbles and accent-outlined buttons */
.wpsc-root.wpsc-scheme-dark .wpsc-bubble.wpsc-error { background: #3b1d1d; border-color: #7a2e2e; color: #fecaca; }

@media (prefers-reduced-motion: reduce) {
	.wpsc-root .wpsc-typing::after, .wpsc-root .wpsc-status::before { animation: none; }
	.wpsc-root .wpsc-launcher, .wpsc-root .wpsc-teaser, .wpsc-root .wpsc-panel, .wpsc-root .wpsc-launcher-icon, .wpsc-root .wpsc-jump { transition: none; animation: none !important; }
}

/* Busy send button (aria-disabled keeps it focusable) */
.wpsc-root .wpsc-send.is-busy { opacity: .55; cursor: default; }

/* High contrast (Windows forced colors): backgrounds are dropped, so outline what they showed. */
@media (forced-colors: active) {
	.wpsc-root .wpsc-launcher, .wpsc-root .wpsc-panel, .wpsc-root .wpsc-bubble, .wpsc-root .wpsc-send,
	.wpsc-root .wpsc-input, .wpsc-root .wpsc-suggest-btn, .wpsc-root .wpsc-source, .wpsc-root .wpsc-card,
	.wpsc-root .wpsc-card-btn, .wpsc-root .wpsc-action, .wpsc-root .wpsc-teaser, .wpsc-root .wpsc-lead-input, .wpsc-root .wpsc-jump { border: 1px solid CanvasText; }
	.wpsc-root .wpsc-user .wpsc-bubble { border-color: Highlight; }
	.wpsc-root .wpsc-typing::after { color: CanvasText; }
	.wpsc-root .wpsc-ico-cut { fill: Canvas; }
	.wpsc-root svg { forced-color-adjust: auto; }
	.wpsc-root :focus-visible { outline: 3px solid Highlight !important; }
}

/* Texts the owner types can be in either direction: each follows its own content. */
.wpsc-root .wpsc-name, .wpsc-root .wpsc-subtitle, .wpsc-root .wpsc-foot, .wpsc-root .wpsc-teaser-text,
.wpsc-root .wpsc-launcher-text, .wpsc-root .wpsc-mode-badge, .wpsc-root .wpsc-source, .wpsc-root .wpsc-card-title,
.wpsc-root .wpsc-card-subtitle, .wpsc-root .wpsc-card-text, .wpsc-root .wpsc-action, .wpsc-root .wpsc-status { unicode-bidi: plaintext; }
/* …but the header titles line up with the layout (a Latin bot name on an Arabic page stays on the right). */
.wpsc-root[dir="rtl"] .wpsc-titles > * { text-align: right; }
.wpsc-root[dir="ltr"] .wpsc-titles > * { text-align: left; }
