/* Theme colors via CSS variables from admin settings */
.ai-chat-root {
	position: relative;
	z-index: 2147483000;
	isolation: isolate;
}
.ai-chat-bubble {
	position: fixed;
	right: 16px;
	bottom: 16px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--ai-chat-primary, #2e7d32);
	color: var(--ai-chat-icon, #fff);
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(46, 125, 50, 0.45);
	font-size: 22px;
	line-height: 56px;
	text-align: center;
	z-index: 2147483001;
}
.ai-chat-bubble:hover {
	background: var(--ai-chat-header, #1b5e20);
}
.ai-chat-bubble:focus {
	outline: 2px solid #a5d6a7;
	outline-offset: 2px;
}
.ai-chat-panel {
	position: fixed;
	right: 16px;
	bottom: 84px;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 440px;
	max-height: calc(100vh - 120px);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
	display: none;
	flex-direction: column;
	overflow: hidden;
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 14px;
	color: var(--ai-chat-text, #212121);
	z-index: 2147483001;
	border: 1px solid var(--ai-chat-accent-light, #c8e6c9);
}
.ai-chat-panel.ai-chat-open {
	display: flex;
}
.ai-chat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	background: var(--ai-chat-header, #1b5e20);
	color: #fff;
	font-weight: 600;
}
.ai-chat-header-title {
	flex: 1;
	min-width: 0;
}
.ai-chat-header-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}
.ai-chat-header-clear {
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	padding: 5px 8px;
	cursor: pointer;
	border-radius: 4px;
}
.ai-chat-header-clear:hover {
	background: rgba(255, 255, 255, 0.24);
}
.ai-chat-header-close {
	flex-shrink: 0;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	padding: 0 2px 4px;
	cursor: pointer;
	opacity: 0.88;
	border-radius: 4px;
}
.ai-chat-header-close:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.12);
}
.ai-chat-header-close:focus {
	outline: 2px solid #a5d6a7;
	outline-offset: 1px;
}
.ai-chat-quick-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.ai-chat-quick-btn {
	border: 1px solid #fff;
	background: #fff;
	border-radius: 8px;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: var(--ai-chat-header, #1b5e20);
	text-align: left;
	line-height: 1.35;
    margin-bottom: 10px;
}
.ai-chat-quick-btn:hover {
	background: var(--ai-chat-accent-light, #e8f5e9);
	border-color: var(--ai-chat-accent-light, #e8f5e9);
}
.ai-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	background: var(--ai-chat-messages-bg, #fafafa);
}
.ai-chat-msg {
	margin-bottom: 6px;
	padding: 7px 10px;
	border-radius: 8px;
	max-width: 92%;
	word-break: break-word;
	line-height: 1.3;
}
.ai-chat-msg-user {
	background: var(--ai-chat-accent-light, #e8f5e9);
	margin-left: auto;
	border: 1px solid var(--ai-chat-accent-light, #c8e6c9);
	color: var(--ai-chat-header, #1b5e20);
}
.ai-chat-msg-assistant {
	background: #fff;
	border: 1px solid #e0e0e0;
	color: var(--ai-chat-text, #333);
	line-height: 1.55;
	font-size: 13.5px;
}
.ai-chat-msg-assistant .ai-chat-reply-product {
	font-weight: 650;
	color: var(--ai-chat-text, #212121);
	text-decoration: underline;
	text-decoration-style: dashed;
	text-underline-offset: 2px;
}
.ai-chat-msg-assistant .ai-chat-reply-brand {
	font-weight: 650;
	color: var(--ai-chat-header, #1b5e20);
}
.ai-chat-msg-assistant .ai-chat-reply-price {
	display: inline-block;
	padding: 1px 7px;
	margin: 0 1px;
	border-radius: 4px;
	background: #f5f5f5;
	border: 1px solid #e8e8e8;
	color: #263238;
	font-size: 12px;
	font-family: Menlo, Monaco, Consolas, monospace;
	font-weight: 600;
	line-height: 1.45;
	white-space: nowrap;
}
.ai-chat-msg-assistant .ai-chat-reply-spec {
	font-weight: 600;
	color: #455a64;
}
.ai-chat-msg-assistant .ai-chat-reply-strong {
	font-weight: 650;
	color: var(--ai-chat-text, #212121);
}
.ai-chat-msg-assistant .ai-chat-reply-em {
	font-style: italic;
	color: #546e7a;
}
.ai-chat-msg-assistant .ai-chat-reply-lead {
	display: inline-block;
	font-weight: 600;
	color: var(--ai-chat-text, #263238);
}
.ai-chat-msg-assistant .ai-chat-reply-stock {
	display: inline-block;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 2px 7px;
	border-radius: 999px;
	line-height: 1.4;
	vertical-align: middle;
	white-space: nowrap;
}
.ai-chat-msg-assistant .ai-chat-reply-stock-ok {
	background: #e8f5e9;
	color: #1b5e20;
	border: 1px solid #c8e6c9;
}
.ai-chat-msg-assistant .ai-chat-reply-stock-out {
	background: #ffebee;
	color: #b71c1c;
	border: 1px solid #ffcdd2;
}
.ai-chat-msg-assistant a {
	color: var(--ai-chat-text, #333);
	text-decoration: underline;
	text-decoration-style: dashed;
	text-underline-offset: 2px;
	word-break: break-word;
}
.ai-chat-msg-assistant a:hover {
	color: var(--ai-chat-text, #333);
	text-decoration-style: solid;
}
.ai-chat-msg-assistant.ai-chat-atc-resolved {
	opacity: 0.72;
}
.ai-chat-products {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 8px 0 10px;
	max-width: 96%;
	color: var(--ai-chat-text, #333);
}
.ai-chat-product-row {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 28px 10px 10px;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.15s ease, border-color 0.15s ease,
		opacity 0.22s ease, height 0.28s ease, padding 0.28s ease,
		margin 0.28s ease, border-width 0.28s ease, transform 0.22s ease;
}
.ai-chat-product-row:hover {
	border-color: color-mix(in srgb, var(--ai-chat-primary, #2e7d32) 40%, #e8e8e8);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.ai-chat-product-dismiss {
	position: absolute;
	top: 4px;
	right: 4px;
	z-index: 2;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #9e9e9e;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.72;
}
.ai-chat-product-dismiss:hover {
	opacity: 1;
	color: #616161;
	background: rgba(0, 0, 0, 0.06);
}
.ai-chat-product-dismiss:focus {
	outline: 2px solid color-mix(in srgb, var(--ai-chat-primary, #2e7d32) 45%, transparent);
	outline-offset: 1px;
}
.ai-chat-product-row-dismissing {
	overflow: hidden;
	pointer-events: none;
	opacity: 0;
	transform: translateX(14px) scale(0.98);
	margin-bottom: -8px;
	box-shadow: none !important;
}
.ai-chat-product-info {
	/* Basis 0 keeps the info column on the same flex line as the thumbnail
	   even though the row wraps (wrapping is only for the action strip). */
	flex: 1 1 0%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ai-chat-product-desc {
	font-size: 12px;
	line-height: 1.4;
	color: #666;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ai-chat-product-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin-top: 2px;
}
.ai-chat-product-atc-btn {
	margin-left: auto;
	border: 0;
	border-radius: 6px;
	background: var(--ai-chat-primary, #2e7d32);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	cursor: pointer;
	white-space: nowrap;
}
.ai-chat-product-atc-btn:hover {
	filter: brightness(0.94);
}
.ai-chat-product-atc-btn:disabled {
	opacity: 0.6;
	cursor: default;
}
.ai-chat-product-atc-status {
	flex: 1 1 100%;
	min-width: 0;
}
.ai-chat-product-atc-status:empty {
	display: none;
}
.ai-chat-product-thumb-holder {
	flex: 0 0 auto;
}
.ai-chat-product-thumb {
	display: block;
	max-width: 80px;
	max-height: 80px;
	width: auto;
	height: auto;
	border-radius: 6px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
	object-fit: contain;
}
.ai-chat-product-thumb-link {
	display: inline-block;
	line-height: 0;
}
.ai-chat-qty-wrap {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0;
}
.ai-chat-qty-label {
	font-size: 12px;
	font-weight: 600;
	margin-right: 2px;
}
.ai-chat-qty-btn {
	width: 26px;
	height: 26px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	padding: 0;
}
.ai-chat-qty-btn:hover {
	background: #f2f2f2;
}
.ai-chat-qty-input {
	width: 56px;
	height: 26px;
	text-align: center;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	font-size: 13px;
	padding: 0 4px;
}
.ai-chat-qty-min-note {
	display: block;
	width: 100%;
	font-size: 11px;
	color: #8a6d3b;
	margin-top: 2px;
}
.ai-chat-atc-head {
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.ai-chat-atc-head .ai-chat-product-name {
	font-weight: 600;
	font-size: 13px;
}
.ai-chat-atc-options-form {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	padding: 10px;
	margin: 6px 0;
}
.ai-chat-atc-options-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.ai-chat-atc-options-title {
	font-weight: 600;
	font-size: 13px;
}
.ai-chat-atc-option-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 8px;
}
.ai-chat-atc-option-label {
	font-size: 12px;
	font-weight: 600;
	margin: 0;
}
.ai-chat-atc-option-select,
.ai-chat-atc-option-input {
	width: 100%;
	height: 30px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	font-size: 13px;
	padding: 0 8px;
	background: #fff;
}
.ai-chat-atc-option-textarea {
	height: auto;
	min-height: 56px;
	padding: 6px 8px;
	resize: vertical;
	font-family: inherit;
}
.ai-chat-atc-option-file {
	width: 100%;
	font-size: 12px;
}
.ai-chat-atc-option-file-status {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	color: #666;
}
.ai-chat-atc-option-check {
	font-size: 12px;
	font-weight: 400;
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
}
.ai-chat-atc-option-err {
	margin: 6px 0;
}
.ai-chat-product-name {
	font-weight: 600;
	font-size: inherit;
	color: var(--ai-chat-text, #333);
	text-decoration: underline;
	text-decoration-style: dashed;
	text-underline-offset: 2px;
	line-height: 1.35;
	cursor: pointer;
}
.ai-chat-product-name:hover {
	color: var(--ai-chat-text, #333);
	text-decoration-style: solid;
}
.ai-chat-product-name-static {
	cursor: default;
	border-bottom: none;
}
.ai-chat-product-price {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 4px;
	background: #f5f5f5;
	border: 1px solid #e8e8e8;
	color: #333;
	font-size: 12px;
	font-family: Menlo, Monaco, Consolas, monospace;
	font-weight: 600;
	line-height: 1.4;
}
.ai-chat-product-stock {
	display: inline-block;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 2px 7px;
	border-radius: 999px;
	line-height: 1.4;
}
.ai-chat-product-stock-ok {
	background: color-mix(in srgb, var(--ai-chat-primary, #2e7d32) 12%, #fff);
	color: var(--ai-chat-header, #1b5e20);
	border: 1px solid color-mix(in srgb, var(--ai-chat-primary, #2e7d32) 30%, transparent);
}
.ai-chat-product-stock-out {
	background: #ffebee;
	color: #c62828;
	border: 1px solid #ef9a9a;
}
.ai-chat-products-more {
	font-size: 11px;
	color: #757575;
	margin-top: 2px;
}
.ai-chat-options {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
    margin-bottom: 8px;
}
.ai-chat-opt {
	border: 1px solid #fff;
	background: #fff;
	border-radius: 6px;
	padding: 4px 8px;
	cursor: pointer;
	font-size: 13px;
	color: var(--ai-chat-primary, #2e7d32);
}
.ai-chat-opt:hover {
	background: var(--ai-chat-accent-light, #e8f5e9);
	border-color: var(--ai-chat-accent-light, #e8f5e9);
}
.ai-chat-opt-nav {
	font-weight: 600;
	border-color: #f1f8e9;
	background: #f1f8e9;
}
.ai-chat-input-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #e0e0e0;
	background: #fff;
}
.ai-chat-input-row input {
	flex: 1;
	box-sizing: border-box;
	height: 38px;
	min-height: 0;
	line-height: 1.35;
	padding: 8px 10px;
	border: 1px solid #bdbdbd;
	border-radius: 6px;
	color: #333;
}
.ai-chat-input-row input:focus {
	border-color: var(--ai-chat-primary, #2e7d32);
	outline: none;
	box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}
.ai-chat-input-row button {
	padding: 8px 12px;
	background: var(--ai-chat-primary, #2e7d32);
	color: #fff;
	border: 1px solid var(--ai-chat-primary, #2e7d32);
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
}
.ai-chat-input-row button:hover {
	background: var(--ai-chat-header, #1b5e20);
	border-color: var(--ai-chat-header, #1b5e20);
}
.ai-chat-input-row button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.ai-chat-welcome {
	font-size: 13px;
	color: #424242;
	margin-bottom: 8px;
	line-height: 1.4;
}
.ai-chat-intro {
	margin-bottom: 4px;
}
.ai-chat-cap-box {
	background: #fff;
	border: 1px solid var(--ai-chat-accent-light, #c8e6c9);
	border-radius: 8px;
	padding: 8px 10px;
	margin-top: 4px;
}
.ai-chat-cap-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--ai-chat-header, #1b5e20);
}
.ai-chat-tier-pill {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	padding: 2px 6px 2px 2px;
	border-radius: 999px;
	text-transform: none;
	letter-spacing: 0;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(0, 0, 0, 0.08);
	color: #424242;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.ai-chat-tier-icon {
	display: block;
	width: 22px;
	height: 22px;
	object-fit: contain;
}
.ai-chat-tier-label {
	padding-right: 2px;
}
.ai-chat-tier-pill-lite,
.ai-chat-tier-pill-pro,
.ai-chat-tier-pill-pro_plus {
	background: rgba(255, 255, 255, 0.9);
	color: #424242;
}
.ai-chat-cap-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3px 10px;
}
.ai-chat-cap-item {
	font-size: 11px;
	line-height: 1.3;
	color: #424242;
	padding-left: 12px;
	position: relative;
}
.ai-chat-cap-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 5px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--ai-chat-primary, #2e7d32);
}
.ai-chat-examples {
	margin-top: 8px;
}
.ai-chat-examples-label {
	font-size: 11px;
	font-weight: 600;
	color: #616161;
	margin-bottom: 4px;
}
.ai-chat-example-strip {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ai-chat-example-btn {
	border: 1px dashed var(--ai-chat-primary, #2e7d32);
	background: #fff;
	border-radius: 6px;
	padding: 5px 8px;
	cursor: pointer;
	font-size: 11px;
	line-height: 1.3;
	color: var(--ai-chat-header, #1b5e20);
	text-align: left;
}
.ai-chat-example-btn:hover {
	background: var(--ai-chat-accent-light, #e8f5e9);
}
.ai-chat-atc-wrap { margin: 8px 0; }
.ai-chat-atc-btn {
	display: inline-block;
	padding: 9px 18px;
	background: var(--ai-chat-primary, #2e7d32);
	color: #fff;
	border: 1px solid var(--ai-chat-primary, #2e7d32);
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
}
.ai-chat-atc-btn:hover {
	background: var(--ai-chat-header, #1b5e20);
	border-color: var(--ai-chat-header, #1b5e20);
}
.ai-chat-atc-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.ai-chat-atc-ok { color: var(--ai-chat-primary, #2e7d32); font-weight: 600; }
.ai-chat-atc-pending { color: #558b2f; font-style: italic; }
.ai-chat-atc-err { color: #c62828; font-weight: 600; }
.ai-chat-confirm-wrap {
	margin: 10px 0;
	padding: 12px;
	background: #fff8e1;
	border: 1px solid #ffe082;
	border-radius: 8px;
}
.ai-chat-confirm-text {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.45;
	color: #424242;
}
.ai-chat-confirm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ai-chat-confirm-yes,
.ai-chat-confirm-no {
	border-radius: 6px;
	padding: 7px 12px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
}
.ai-chat-confirm-yes {
	background: #c62828;
	color: #fff;
	border-color: #c62828;
}
.ai-chat-confirm-yes:hover {
	background: #b71c1c;
	border-color: #b71c1c;
}
.ai-chat-confirm-yes:disabled { opacity: 0.6; cursor: not-allowed; }
.ai-chat-confirm-no {
	background: #fff;
	color: #424242;
	border-color: #fff;
}
.ai-chat-confirm-no:hover {
	background: #f5f5f5;
	border-color: #f5f5f5;
}
.ai-chat-typing {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 14px;
	margin-bottom: 10px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	color: #757575;
	font-size: 13px;
	max-width: 92%;
}
.ai-chat-typing-text {
	margin-right: 0;
}
.ai-chat-typing-stream {
	white-space: pre-wrap;
	color: var(--ai-chat-text, #333);
	line-height: 1.45;
	width: 100%;
}
.ai-chat-msg-streaming {
	white-space: pre-wrap;
}
/* Add-to-cart action buttons rendered as their own block below a product card. */
.ai-chat-atc-under-card {
	margin: 6px 0 10px;
}
.ai-chat-typing-dots {
	display: inline-flex;
	gap: 3px;
	align-items: center;
}
.ai-chat-typing-dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #81c784;
	animation: ai-chat-dot 1.2s infinite ease-in-out both;
}
.ai-chat-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.ai-chat-typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes ai-chat-dot {
	0%, 80%, 100% { transform: scale(0.6); opacity: 0.45; }
	40% { transform: scale(1); opacity: 1; }
}
.ai-chat-branding {
	padding: 6px 12px 10px;
	font-size: 11px;
	color: #757575;
	text-align: center;
	border-top: 1px solid #eee;
	background: var(--ai-chat-messages-bg, #fafafa);
}
.ai-chat-branding a {
	color: var(--ai-chat-primary, #2e7d32);
	text-decoration: none;
}
.ai-chat-branding a:hover { text-decoration: underline; }

.ai-chat-atc-success { margin-bottom: 8px; }
.ai-chat-atc-post-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}
.ai-chat-atc-checkout-btn,
.ai-chat-atc-shop-btn,
.ai-chat-atc-undo-btn {
	border-radius: 6px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
}
.ai-chat-atc-shop-btn {
	background: #fff;
	color: var(--ai-chat-primary, #2e7d32);
	border-color: var(--ai-chat-primary, #2e7d32);
}
.ai-chat-atc-shop-btn:hover {
	background: #f1fbf4;
}
.ai-chat-atc-shop-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.ai-chat-atc-checkout-btn {
	background: var(--ai-chat-checkout, #1565c0);
	color: #fff;
	border-color: var(--ai-chat-checkout, #1565c0);
}
.ai-chat-atc-checkout-btn:hover {
	background: var(--ai-chat-header, #0d47a1);
	border-color: var(--ai-chat-header, #0d47a1);
}
.ai-chat-atc-checkout-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.ai-chat-atc-undo-btn {
	background: #f5f5f5;
	color: #424242;
	border-color: #e0e0e0;
}
.ai-chat-atc-undo-btn:hover {
	background: #ececec;
	border-color: #d5d5d5;
}
.ai-chat-atc-undo-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.ai-chat-blocked-banner {
	margin: 16px 12px;
	padding: 20px 16px;
	border-radius: 10px;
	text-align: center;
	background: linear-gradient(135deg, #fff5f5 0%, #ffebee 50%, #fce4ec 100%);
	border: 1px solid #ef9a9a;
	color: #7f1d1d;
	box-shadow: 0 2px 8px rgba(198, 40, 40, 0.12);
}
.ai-chat-blocked-icon {
	font-size: 28px;
	line-height: 1;
	margin-bottom: 8px;
}
.ai-chat-blocked-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 8px;
	color: #b71c1c;
}
.ai-chat-blocked-message {
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 14px;
	color: #5d4037;
}
.ai-chat-blocked-contact {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 6px;
	background: #c62828;
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.15s ease;
}
.ai-chat-blocked-contact:hover {
	background: #b71c1c;
	color: #fff !important;
	text-decoration: none !important;
}

/* ===================== Pro+ identity bar ===================== */
.ai-chat-header-identity {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	margin-left: auto;
	margin-right: 4px;
	max-width: 45%;
}
.ai-chat-identity-name {
	font-size: 11px;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 110px;
}
.ai-chat-identity-btn {
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff;
	font-size: 13px;
	line-height: 1;
	padding: 4px 6px;
	cursor: pointer;
	border-radius: 4px;
}
.ai-chat-identity-icon {
	display: block;
	width: 14px;
	height: 14px;
}
.ai-chat-identity-btn:hover {
	background: rgba(255, 255, 255, 0.26);
}

/* ===================== Pro+ flow wizard ===================== */
.ai-chat-flow {
	border: 1px solid var(--ai-chat-accent-light, #c8e6c9);
	border-radius: 10px;
	background: #fff;
	margin: 8px 0;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.ai-chat-flow-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 12px;
	background: var(--ai-chat-header, #1b5e20);
	color: #fff;
}
.ai-chat-flow-title {
	font-weight: 600;
	font-size: 13px;
}
.ai-chat-flow-close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.85;
}
.ai-chat-flow-close:hover { opacity: 1; }
.ai-chat-flow-progress {
	display: flex;
	gap: 6px;
	padding: 10px 12px 2px;
	align-items: center;
}
.ai-chat-flow-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #d0d7d0;
	border: none;
	padding: 0;
	cursor: pointer;
	flex-shrink: 0;
	transition: transform 0.12s ease, background 0.12s ease;
}
.ai-chat-flow-dot:hover:not(:disabled) {
	transform: scale(1.12);
}
.ai-chat-flow-dot.is-active {
	background: var(--ai-chat-primary, #2e7d32);
	transform: scale(1.15);
}
.ai-chat-flow-dot.is-done {
	background: var(--ai-chat-accent-light, #a5d6a7);
}
.ai-chat-flow-dot.is-locked {
	cursor: default;
	opacity: 0.45;
}
.ai-chat-flow-editlinks {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0 0 10px;
	padding: 6px 8px;
	background: #f5faf5;
	border: 1px solid var(--ai-chat-accent-light, #c8e6c9);
	border-radius: 6px;
	font-size: 11px;
}
.ai-chat-flow-editlinks-label {
	color: #607d8b;
	margin-right: 2px;
}
.ai-chat-flow-editlink {
	background: none;
	border: none;
	padding: 0;
	color: var(--ai-chat-header, #1b5e20);
	font-size: 11px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}
.ai-chat-flow-editlink:hover {
	color: var(--ai-chat-primary, #2e7d32);
}
.ai-chat-flow-body {
	padding: 10px 12px;
	max-height: 230px;
	overflow-y: auto;
}
.ai-chat-flow-loading,
.ai-chat-flow-note {
	font-size: 12px;
	color: #607d8b;
	margin: 4px 0 8px;
}
.ai-chat-flow-field {
	display: block;
	margin-bottom: 8px;
}
.ai-chat-flow-field-check {
	display: flex;
	align-items: center;
	gap: 6px;
}
.ai-chat-flow-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: #455a64;
	margin-bottom: 3px;
}
.ai-chat-flow-input {
	width: 100%;
	box-sizing: border-box;
	padding: 7px 9px;
	border: 1px solid #cfd8dc;
	border-radius: 6px;
	font-size: 13px;
	font-family: inherit;
	color: var(--ai-chat-text, #212121);
	background: #fff;
}
.ai-chat-flow-input:focus {
	outline: none;
	border-color: var(--ai-chat-primary, #2e7d32);
}
textarea.ai-chat-flow-input { min-height: 54px; resize: vertical; }
.ai-chat-flow-field-check .ai-chat-flow-input {
	width: auto;
}
.ai-chat-flow-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
}
.ai-chat-flow-tab {
	flex: 1;
	padding: 6px 4px;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid #cfd8dc;
	background: #f5f7f5;
	border-radius: 6px;
	cursor: pointer;
	color: #455a64;
}
.ai-chat-flow-tab.is-active {
	background: var(--ai-chat-primary, #2e7d32);
	border-color: var(--ai-chat-primary, #2e7d32);
	color: #fff;
}
.ai-chat-flow-radios {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 8px;
}
.ai-chat-flow-radio {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 9px;
	border: 1px solid #cfd8dc;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
}
.ai-chat-flow-radio-title { flex: 1; }
.ai-chat-flow-inline-login {
	margin: 0 0 10px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid var(--ai-chat-primary, #2e7d32);
	background: #fff;
	color: var(--ai-chat-primary, #2e7d32);
	border-radius: 6px;
	cursor: pointer;
}
.ai-chat-flow-review {
	font-size: 12.5px;
	color: var(--ai-chat-text, #212121);
	border: 1px solid #dfe3e8;
	border-radius: 8px;
	overflow: hidden;
	background: #fafbfc;
}
.ai-chat-flow-review-section {
	padding: 7px 12px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #78909c;
	background: #f0f3f5;
	border-bottom: 1px solid #dfe3e8;
}
.ai-chat-flow-review-row,
.ai-chat-flow-review-prod,
.ai-chat-flow-review-total {
	display: grid;
	grid-template-columns: 34% 1fr;
	gap: 10px 12px;
	padding: 9px 12px;
	border-bottom: 1px solid #eceff1;
	align-items: start;
}
.ai-chat-flow-review-row:last-child,
.ai-chat-flow-review-prod:last-child,
.ai-chat-flow-review-total:last-child {
	border-bottom: none;
}
.ai-chat-flow-review-label,
.ai-chat-flow-review-prodname,
.ai-chat-flow-review-total-label {
	color: #607d8b;
	font-weight: 600;
	font-size: 11.5px;
	line-height: 1.35;
}
.ai-chat-flow-review-val,
.ai-chat-flow-review-prodtotal,
.ai-chat-flow-review-total-val {
	color: #263238;
	text-align: left;
	line-height: 1.45;
	word-break: break-word;
}
.ai-chat-flow-review-products,
.ai-chat-flow-review-totals {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
	background: #fff;
}
.ai-chat-flow-review-total:last-child .ai-chat-flow-review-total-label,
.ai-chat-flow-review-total:last-child .ai-chat-flow-review-total-val {
	font-weight: 700;
	color: #1b5e20;
}
.ai-chat-flow-foot {
	padding: 8px 12px 12px;
	border-top: 1px solid #eceff1;
}
.ai-chat-flow-err {
	font-size: 12px;
	color: #c62828;
	margin-bottom: 6px;
}
.ai-chat-flow-btns {
	display: flex;
	gap: 8px;
}
.ai-chat-flow-back,
.ai-chat-flow-next {
	flex: 1;
	padding: 9px 10px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	border: 1px solid #cfd8dc;
}
.ai-chat-flow-back {
	background: #f5f7f5;
	color: #455a64;
}
.ai-chat-flow-back:disabled {
	opacity: 0.5;
	cursor: default;
}
.ai-chat-flow-next {
	background: var(--ai-chat-primary, #2e7d32);
	border-color: var(--ai-chat-primary, #2e7d32);
	color: #fff;
}
.ai-chat-flow-next:disabled { opacity: 0.7; cursor: default; }
.ai-chat-flow-success {
	padding: 14px 12px;
	font-size: 13px;
	color: var(--ai-chat-text, #212121);
}
.ai-chat-flow-success-ico {
	color: var(--ai-chat-primary, #2e7d32);
	font-weight: 700;
}
.ai-chat-atc-gopage-btn {
	display: block;
	width: 100%;
	margin-top: 6px;
	background: transparent;
	border: none;
	color: var(--ai-chat-primary, #2e7d32);
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
	padding: 2px;
}

/* Order placed success banner */
.ai-chat-order-success {
	margin: 10px 0 14px;
}
.ai-chat-order-success-card {
	background: linear-gradient(180deg, #f1fbf4 0%, #ffffff 42%);
	border: 1px solid #c8e6c9;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(46, 125, 50, 0.08);
	padding: 16px 14px 14px;
	text-align: center;
}
.ai-chat-order-success-icon {
	width: 44px;
	height: 44px;
	margin: 0 auto 10px;
	border-radius: 50%;
	background: var(--ai-chat-primary, #2e7d32);
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 44px;
	box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}
.ai-chat-order-success-title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	color: #1b5e20;
}
.ai-chat-order-success-lead {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.45;
	color: #37474f;
}
.ai-chat-order-success-details {
	margin: 0 0 12px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	text-align: left;
}
.ai-chat-order-success-line,
.ai-chat-order-success-total {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	padding: 9px 12px;
	border-bottom: 1px solid #eceff1;
	font-size: 12.5px;
}
.ai-chat-order-success-line:last-child {
	border-bottom: none;
}
.ai-chat-order-success-line-name {
	color: #455a64;
}
.ai-chat-order-success-line-val {
	color: #263238;
	font-weight: 600;
	white-space: nowrap;
}
.ai-chat-order-success-total {
	background: #f5fbf6;
	border-top: 1px solid #dfe7df;
	border-bottom: none;
	font-weight: 700;
	color: #1b5e20;
}
.ai-chat-order-success-meta {
	padding: 8px 12px 10px;
	font-size: 12px;
	color: #607d8b;
	border-top: 1px solid #eceff1;
}
.ai-chat-order-success-help {
	margin: 0 0 12px;
	font-size: 13px;
	color: #546e7a;
}
.ai-chat-order-success-actions {
	display: flex;
	gap: 8px;
}
.ai-chat-order-success-btn {
	flex: 1;
	padding: 10px 8px;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
}
.ai-chat-order-success-btn-primary {
	background: var(--ai-chat-primary, #2e7d32);
	border-color: var(--ai-chat-primary, #2e7d32);
	color: #fff;
}
.ai-chat-order-success-btn-secondary {
	background: #fff;
	border-color: #cfd8dc;
	color: #37474f;
}
.ai-chat-order-success-btn:hover {
	filter: brightness(0.97);
}

.ai-chat-filters {
	display: none;
	flex-wrap: wrap;
	gap: 6px;
	padding: 8px 10px;
	border-bottom: 1px solid rgba(0,0,0,0.08);
	background: #f7f8f7;
	max-height: 72px;
	overflow-x: auto;
	overflow-y: hidden;
}
.ai-chat-filters.ai-chat-filters-on {
	display: flex;
}
.ai-chat-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	max-width: 100%;
	padding: 3px 6px 3px 8px;
	border: 1px solid rgba(0,0,0,0.12);
	border-radius: 999px;
	background: #fff;
	color: #222;
	font-size: 12px;
	line-height: 1.3;
	white-space: nowrap;
}
.ai-chat-filter-chip-label {
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 140px;
}
.ai-chat-filter-chip-x {
	border: 0;
	background: transparent;
	color: #666;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	padding: 0 2px;
}
.ai-chat-filter-chip-x:hover {
	color: #111;
}

