/* Chat Assist for WooCommerce - Frontend Styles */
:root {
	--chafwc-primary: #84cc16;
	--chafwc-primary-hover: #65a30d;
	--chafwc-primary-light: #f7fee7;
	--chafwc-primary-contrast: #fff;
	--chafwc-text: #1F2937;
	--chafwc-text-muted: #6B7280;
	--chafwc-bg: #FFFFFF;
	--chafwc-bg-secondary: #F9FAFB;
	--chafwc-border: #E5E7EB;
	--chafwc-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	--chafwc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
	--chafwc-radius: 16px;
	--chafwc-radius-sm: 8px;
	--chafwc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	--chafwc-transition: 0.2s ease;
}

/* ========================================
   Theme: Light (Frosted Glass)
   ======================================== */
.chafwc-widget[data-chafwc-theme="light"] {
	--chafwc-text: #1e293b;
	--chafwc-text-muted: #64748b;
	--chafwc-bg: rgba(248, 250, 252, 0.62);
	--chafwc-bg-secondary: rgba(241, 245, 249, 0.5);
	--chafwc-border: rgba(148, 163, 184, 0.34);
	--chafwc-shadow: 0 10px 34px rgba(15, 23, 42, 0.16);
	--chafwc-shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.08);
	--chafwc-glass-blur: blur(18px) saturate(165%);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-panel {
	background: linear-gradient(140deg, rgba(255, 255, 255, 0.62) 0%, rgba(248, 250, 252, 0.44) 52%, rgba(226, 232, 240, 0.38) 100%);
	-webkit-backdrop-filter: var(--chafwc-glass-blur);
	backdrop-filter: var(--chafwc-glass-blur);
	border: 1px solid rgba(255, 255, 255, 0.58);
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.78), inset 0 -1px 0 rgba(148, 163, 184, 0.22);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	background: linear-gradient(115deg, rgba(255, 255, 255, 0.5) 8%, rgba(255, 255, 255, 0.06) 36%, rgba(255, 255, 255, 0.34) 92%);
	opacity: 0.45;
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-input-area {
	background: linear-gradient(180deg, rgba(248, 250, 252, 0.72) 0%, rgba(241, 245, 249, 0.56) 100%);
	border-top: 1px solid rgba(148, 163, 184, 0.28);
	-webkit-backdrop-filter: blur(10px) saturate(140%);
	backdrop-filter: blur(10px) saturate(140%);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-panel-footer {
	background: rgba(248, 250, 252, 0.56);
	border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-message-assistant {
	background: rgba(241, 245, 249, 0.66);
	border: 1px solid rgba(148, 163, 184, 0.3);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-product-card {
	background: rgba(255, 255, 255, 0.55);
	border-color: rgba(148, 163, 184, 0.32);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-suggestion-btn {
	background: rgba(255, 255, 255, 0.52);
	border-color: rgba(148, 163, 184, 0.35);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-input-wrapper {
	background: rgba(255, 255, 255, 0.64);
	border-color: rgba(148, 163, 184, 0.38);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-input-wrapper:focus-within {
	border-color: rgba(132, 204, 22, 0.75);
	box-shadow: 0 0 0 2px rgba(132, 204, 22, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-voice-transcript {
	background: rgba(241, 245, 249, 0.52);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-voice-language-row {
	background: rgba(248, 250, 252, 0.45);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-handoff-form {
	background: rgba(248, 250, 252, 0.62);
	-webkit-backdrop-filter: blur(12px) saturate(145%);
	backdrop-filter: blur(12px) saturate(145%);
	border: 1px solid rgba(255, 255, 255, 0.58);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-flag-list {
	background: rgba(248, 250, 252, 0.78);
	-webkit-backdrop-filter: blur(12px) saturate(145%);
	backdrop-filter: blur(12px) saturate(145%);
	border: 1px solid rgba(148, 163, 184, 0.28);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-order-lookup-form {
	background: rgba(241, 245, 249, 0.56);
	border: 1px solid rgba(148, 163, 184, 0.3);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-order-input {
	background: rgba(255, 255, 255, 0.62);
	border-color: rgba(148, 163, 184, 0.34);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-order-card {
	background: rgba(248, 250, 252, 0.62);
	border: 1px solid rgba(148, 163, 184, 0.3);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-handoff-cancel {
	background: rgba(248, 250, 252, 0.56);
	border: 1px solid rgba(148, 163, 184, 0.32);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-handoff-email {
	background: rgba(255, 255, 255, 0.62);
	border-color: rgba(148, 163, 184, 0.34);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-source-item {
	background: rgba(248, 250, 252, 0.56);
	border-color: rgba(148, 163, 184, 0.3);
}

.chafwc-widget[data-chafwc-theme="light"] .chafwc-tabs {
	border-bottom-color: rgba(148, 163, 184, 0.3);
}

/* ========================================
   Theme: Dark (Frosted Glass)
   ======================================== */
.chafwc-widget[data-chafwc-theme="dark"] {
	--chafwc-text: #e2e8f0;
	--chafwc-text-muted: #94a3b8;
	--chafwc-bg: rgba(17, 25, 40, 0.25);
	--chafwc-bg-secondary: rgba(255, 255, 255, 0.06);
	--chafwc-border: rgba(255, 255, 255, 0.12);
	--chafwc-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
	--chafwc-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.2);
	--chafwc-primary-light: rgba(132, 204, 22, 0.15);
	--chafwc-glass-blur: blur(16px) saturate(180%);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-panel {
	-webkit-backdrop-filter: var(--chafwc-glass-blur);
	backdrop-filter: var(--chafwc-glass-blur);
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-panel-header {
	background: var(--chafwc-primary);
	color: var(--chafwc-primary-contrast, #fff);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-input-area {
	background: rgba(255, 255, 255, 0.05);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-panel-footer {
	background: rgba(255, 255, 255, 0.04);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-message-assistant {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-message-error {
	background: rgba(127, 29, 29, 0.4);
	color: #fca5a5;
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-product-card {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.12);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-product-image-placeholder {
	background: rgba(255, 255, 255, 0.06);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-suggestion-btn {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.15);
	color: var(--chafwc-text);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-suggestion-btn:hover {
	background: rgba(132, 204, 22, 0.15);
	border-color: var(--chafwc-primary);
	color: var(--chafwc-primary);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-input-wrapper {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.12);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-send-btn:disabled {
	background: rgba(255, 255, 255, 0.1);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-voice-transcript {
	background: rgba(255, 255, 255, 0.06);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-voice-language-row {
	background: rgba(255, 255, 255, 0.05);
	border-top-color: rgba(255, 255, 255, 0.1);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-flag-trigger {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.15);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-flag-list {
	background: rgba(17, 25, 40, 0.6);
	border-color: rgba(255, 255, 255, 0.12);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-flag-option:hover {
	background: rgba(255, 255, 255, 0.1);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-flag-option.chafwc-flag-selected {
	background: rgba(132, 204, 22, 0.15);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-handoff-form {
	background: rgba(17, 25, 40, 0.4);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-handoff-email {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.15);
	color: var(--chafwc-text);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-handoff-cancel {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.12);
	color: var(--chafwc-text-muted);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-quota-banner {
	background: rgba(120, 53, 15, 0.3);
	border-bottom-color: rgba(245, 158, 11, 0.4);
	color: #fbbf24;
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-quota-close {
	color: #fbbf24;
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-error-toast {
	background: rgba(127, 29, 29, 0.5);
	color: #fca5a5;
	border-color: rgba(220, 38, 38, 0.4);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-error-toast.chafwc-toast-warning {
	background: rgba(120, 53, 15, 0.4);
	color: #fbbf24;
	border-color: rgba(245, 158, 11, 0.4);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-order-lookup-form {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-order-input {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.12);
	color: var(--chafwc-text);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-order-card {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-source-item {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.1);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-source-item:hover {
	background: rgba(132, 204, 22, 0.1);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-tabs {
	border-bottom-color: rgba(255, 255, 255, 0.1);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-tab:hover {
	background: rgba(255, 255, 255, 0.08);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-typing-indicator {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-btn-minimize {
	background: rgba(255, 255, 255, 0.1);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-btn-minimize:hover {
	background: rgba(255, 255, 255, 0.2);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-messages::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
}

.chafwc-widget[data-chafwc-theme="dark"] .chafwc-product-cards::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
}

/* Widget Container */
.chafwc-widget {
	position: fixed;
	z-index: 999999;
	font-family: var(--chafwc-font);
	font-size: 14px;
	line-height: 1.5;
	box-sizing: border-box;
}

.chafwc-widget *,
.chafwc-widget *::before,
.chafwc-widget *::after {
	box-sizing: border-box;
}

.chafwc-position-bottom-right {
	bottom: 20px;
	right: 20px;
}

.chafwc-position-bottom-left {
	bottom: 20px;
	left: 20px;
}

/* Toggle Button */
.chafwc-toggle-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	padding: 0;
	background: var(--chafwc-primary);
	border: none;
	border-radius: 50%;
	color: var(--chafwc-primary-contrast);
	cursor: pointer;
	box-shadow: var(--chafwc-shadow);
	transition: transform var(--chafwc-transition), background var(--chafwc-transition);
}

.chafwc-toggle-btn:hover {
	background: var(--chafwc-primary-hover);
	transform: scale(1.05);
}

.chafwc-toggle-btn:focus {
	outline: 2px solid var(--chafwc-primary);
	outline-offset: 2px;
}

.chafwc-toggle-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.chafwc-hidden {
	display: none !important;
}

/* Chat Panel */
.chafwc-panel {
	position: absolute;
	bottom: 80px;
	width: 380px;
	height: 600px;
	max-height: 600px;
	background: var(--chafwc-bg);
	border-radius: var(--chafwc-radius);
	box-shadow: var(--chafwc-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	animation: chafwc-slide-up 0.3s ease;
}

.chafwc-position-bottom-right .chafwc-panel {
	right: 0;
}

.chafwc-position-bottom-left .chafwc-panel {
	left: 0;
}

@keyframes chafwc-slide-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Panel Header */
.chafwc-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: var(--chafwc-primary);
	color: var(--chafwc-primary-contrast);
}

.chafwc-header-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.chafwc-panel-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

.chafwc-status-indicator {
	font-size: 12px;
	opacity: 0.9;
}

.chafwc-header-actions {
	display: flex;
	gap: 8px;
}

.chafwc-btn-minimize {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	border-radius: 6px;
	color: var(--chafwc-primary-contrast);
	cursor: pointer;
	transition: background var(--chafwc-transition);
}

.chafwc-btn-minimize:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* Tabs */
.chafwc-tabs {
	display: flex;
	border-bottom: 1px solid var(--chafwc-border);
}

.chafwc-tab {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 16px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	color: var(--chafwc-text-muted);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all var(--chafwc-transition);
}

.chafwc-tab:hover {
	color: var(--chafwc-text);
	background: var(--chafwc-bg-secondary);
}

.chafwc-tab-active {
	color: var(--chafwc-primary);
	border-bottom-color: var(--chafwc-primary);
}

.chafwc-tab-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* Quota Banner */
.chafwc-quota-banner {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	background: #FEF3C7;
	border-bottom: 1px solid #F59E0B;
	font-size: 13px;
	color: #92400E;
	position: relative;
	z-index: 10;
}

.chafwc-quota-icon {
	flex-shrink: 0;
}

.chafwc-quota-text {
	flex: 1;
}

.chafwc-quota-close {
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: #92400E;
	padding: 0 4px;
	line-height: 1;
}

.chafwc-quota-close:hover {
	color: #78350F;
}

.chafwc-premium-badge {
	display: flex;
	align-items: center;
	color: #F59E0B;
}

/* Mode Content */
.chafwc-mode-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.chafwc-mode-content[hidden] {
	display: none;
}

/* Messages */
.chafwc-messages {
	flex: 1;
	overflow-y: auto;
	min-height: 0;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.chafwc-message {
	max-width: 85%;
	padding: 12px 16px;
	border-radius: 12px;
	word-wrap: break-word;
}

.chafwc-message-user {
	align-self: flex-end;
	background: var(--chafwc-primary);
	color: var(--chafwc-primary-contrast);
	border-bottom-right-radius: 4px;
}

.chafwc-message-assistant {
	align-self: flex-start;
	background: var(--chafwc-bg-secondary);
	color: var(--chafwc-text);
	border-bottom-left-radius: 4px;
}

.chafwc-message-error {
	background: #FEE2E2;
	color: #991B1B;
}

/* Message Sources */
.chafwc-message-sources {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--chafwc-border);
}

.chafwc-sources-title {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--chafwc-text-muted);
	margin-bottom: 8px;
}

.chafwc-source-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.chafwc-source-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: var(--chafwc-bg);
	border: 1px solid var(--chafwc-border);
	border-radius: var(--chafwc-radius-sm);
	text-decoration: none;
	color: var(--chafwc-text);
	transition: all var(--chafwc-transition);
}

.chafwc-source-item:hover {
	border-color: var(--chafwc-primary);
	background: var(--chafwc-primary-light);
}

.chafwc-source-item-product {
	flex-direction: column;
	align-items: flex-start;
}

.chafwc-source-name {
	font-weight: 500;
	font-size: 13px;
}

.chafwc-source-meta {
	display: flex;
	gap: 12px;
	font-size: 12px;
	color: var(--chafwc-text-muted);
}

.chafwc-source-price {
	font-weight: 600;
	color: var(--chafwc-primary);
}

.chafwc-source-stock-in {
	color: #059669;
}

.chafwc-source-stock-out {
	color: #DC2626;
}

/* Suggestions */
.chafwc-suggestions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.chafwc-suggestion-btn {
	padding: 8px 14px;
	background: var(--chafwc-bg);
	border: 1px solid var(--chafwc-border);
	border-radius: 16px;
	font-size: 13px;
	color: var(--chafwc-text);
	cursor: pointer;
	transition: all var(--chafwc-transition);
	font-family: var(--chafwc-font);
	line-height: 1.3;
}

.chafwc-suggestion-btn:hover {
	border-color: var(--chafwc-primary);
	background: var(--chafwc-primary-light);
	color: var(--chafwc-primary);
}

.chafwc-suggestion-btn:active {
	transform: scale(0.97);
}

/* Typing Indicator */
.chafwc-typing-indicator {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 12px 16px;
	background: var(--chafwc-bg-secondary);
	border-radius: 12px;
	align-self: flex-start;
	width: fit-content;
	margin: 0 16px 8px;
}

.chafwc-typing-indicator span {
	width: 8px;
	height: 8px;
	background: var(--chafwc-text-muted);
	border-radius: 50%;
	animation: chafwc-typing 1.4s infinite ease-in-out both;
}

.chafwc-typing-indicator span:nth-child(1) {
	animation-delay: -0.32s;
}

.chafwc-typing-indicator span:nth-child(2) {
	animation-delay: -0.16s;
}

@keyframes chafwc-typing {
	0%, 80%, 100% {
		transform: scale(0.6);
		opacity: 0.5;
	}
	40% {
		transform: scale(1);
		opacity: 1;
	}
}

/* Input Area */
.chafwc-input-area {
	padding: 12px 16px;
	border-top: 1px solid var(--chafwc-border);
	background: var(--chafwc-bg);
}

.chafwc-chat-form {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.chafwc-input-wrapper {
	flex: 1;
	position: relative;
	display: flex;
	align-items: flex-end;
	gap: 8px;
	background: var(--chafwc-bg-secondary);
	border: 1px solid var(--chafwc-border);
	border-radius: 24px;
	padding: 8px 12px;
	transition: border-color var(--chafwc-transition);
}

.chafwc-input-wrapper:focus-within {
	border-color: var(--chafwc-primary);
}

.chafwc-input {
	flex: 1;
	min-height: 36px;
	max-height: 120px;
	padding: 8px 44px 8px 0;
	background: none;
	border: none;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	color: var(--chafwc-text);
	resize: none;
	outline: none;
}

.chafwc-input::placeholder {
	color: var(--chafwc-text-muted);
}

.chafwc-send-btn {
	position: absolute;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	background: var(--chafwc-primary);
	border: none;
	border-radius: 50%;
	color: var(--chafwc-primary-contrast);
	cursor: pointer;
	transition: background var(--chafwc-transition), transform var(--chafwc-transition);
	flex-shrink: 0;
}

.chafwc-send-btn:hover {
	background: var(--chafwc-primary-hover);
	transform: scale(1.05);
}

.chafwc-send-btn:disabled {
	background: var(--chafwc-border);
	cursor: not-allowed;
	transform: none;
}

/* Voice Mode */
.chafwc-voice-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 32px 24px;
	min-height: 0;
	flex: 1;
	overflow-y: auto;
}

.chafwc-voice-visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	justify-content: center;
}

/* Spinner for connecting state */
.chafwc-voice-spinner {
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.chafwc-spinner-ring {
	width: 60px;
	height: 60px;
	border: 4px solid var(--chafwc-primary-light);
	border-top-color: var(--chafwc-primary);
	border-radius: 50%;
	animation: chafwc-spin 1s linear infinite;
}

@keyframes chafwc-spin {
	to { transform: rotate(360deg); }
}

/* Audio Wave Visualization */
.chafwc-voice-wave {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 80px;
	padding: 0 20px;
}

.chafwc-wave-bar {
	width: 6px;
	height: 20px;
	background: var(--chafwc-primary-light);
	border-radius: 3px;
	transition: height 0.1s ease, background 0.2s ease;
}

/* Idle state - static bars */
.chafwc-voice-wave .chafwc-wave-bar:nth-child(1) { height: 15px; }
.chafwc-voice-wave .chafwc-wave-bar:nth-child(2) { height: 25px; }
.chafwc-voice-wave .chafwc-wave-bar:nth-child(3) { height: 35px; }
.chafwc-voice-wave .chafwc-wave-bar:nth-child(4) { height: 45px; }
.chafwc-voice-wave .chafwc-wave-bar:nth-child(5) { height: 35px; }
.chafwc-voice-wave .chafwc-wave-bar:nth-child(6) { height: 25px; }
.chafwc-voice-wave .chafwc-wave-bar:nth-child(7) { height: 15px; }

/* Listening state - active wave animation */
.chafwc-voice-listening .chafwc-voice-wave .chafwc-wave-bar {
	background: var(--chafwc-primary);
	animation: chafwc-wave 1s ease-in-out infinite;
}

.chafwc-voice-listening .chafwc-wave-bar:nth-child(1) { animation-delay: 0s; }
.chafwc-voice-listening .chafwc-wave-bar:nth-child(2) { animation-delay: 0.1s; }
.chafwc-voice-listening .chafwc-wave-bar:nth-child(3) { animation-delay: 0.2s; }
.chafwc-voice-listening .chafwc-wave-bar:nth-child(4) { animation-delay: 0.3s; }
.chafwc-voice-listening .chafwc-wave-bar:nth-child(5) { animation-delay: 0.4s; }
.chafwc-voice-listening .chafwc-wave-bar:nth-child(6) { animation-delay: 0.5s; }
.chafwc-voice-listening .chafwc-wave-bar:nth-child(7) { animation-delay: 0.6s; }

@keyframes chafwc-wave {
	0%, 100% { height: 15px; }
	50% { height: 50px; }
}

/* Speaking state - pulsing wave */
.chafwc-voice-speaking .chafwc-voice-wave .chafwc-wave-bar {
	background: #10B981;
	animation: chafwc-speak 0.6s ease-in-out infinite alternate;
}

.chafwc-voice-speaking .chafwc-wave-bar:nth-child(1) { animation-delay: 0s; }
.chafwc-voice-speaking .chafwc-wave-bar:nth-child(2) { animation-delay: 0.08s; }
.chafwc-voice-speaking .chafwc-wave-bar:nth-child(3) { animation-delay: 0.16s; }
.chafwc-voice-speaking .chafwc-wave-bar:nth-child(4) { animation-delay: 0.24s; }
.chafwc-voice-speaking .chafwc-wave-bar:nth-child(5) { animation-delay: 0.16s; }
.chafwc-voice-speaking .chafwc-wave-bar:nth-child(6) { animation-delay: 0.08s; }
.chafwc-voice-speaking .chafwc-wave-bar:nth-child(7) { animation-delay: 0s; }

@keyframes chafwc-speak {
	0% { height: 20px; opacity: 0.6; }
	100% { height: 45px; opacity: 1; }
}

/* Thinking/Connecting state - subtle pulse */
.chafwc-voice-thinking .chafwc-voice-wave .chafwc-wave-bar {
	background: var(--chafwc-text-muted);
	animation: chafwc-think 1.5s ease-in-out infinite;
}

@keyframes chafwc-think {
	0%, 100% { opacity: 0.3; }
	50% { opacity: 0.8; }
}

.chafwc-voice-state {
	margin-top: 24px;
	font-size: 16px;
	font-weight: 500;
	color: var(--chafwc-text);
}

.chafwc-voice-transcript {
	width: 100%;
	margin-top: 24px;
	padding: 16px;
	background: var(--chafwc-bg-secondary);
	border-radius: var(--chafwc-radius-sm);
	min-height: 60px;
}

.chafwc-transcript-user,
.chafwc-transcript-assistant {
	font-size: 13px;
	line-height: 1.5;
}

.chafwc-transcript-user {
	color: var(--chafwc-text-muted);
	margin-bottom: 8px;
}

.chafwc-transcript-assistant {
	color: var(--chafwc-text);
	font-weight: 500;
}

.chafwc-voice-controls {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
}

/* Custom Flag Dropdown - Cross-browser compatible */
.chafwc-flag-dropdown {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.chafwc-flag-trigger {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 8px;
	background: var(--chafwc-bg-secondary);
	border: 1px solid var(--chafwc-border);
	border-radius: var(--chafwc-radius-sm);
	cursor: pointer;
	transition: border-color var(--chafwc-transition), box-shadow var(--chafwc-transition);
}

.chafwc-flag-trigger:hover {
	border-color: var(--chafwc-primary);
}

.chafwc-flag-trigger:focus {
	outline: none;
	border-color: var(--chafwc-primary);
	box-shadow: 0 0 0 2px rgba(132, 204, 22, 0.2);
}

.chafwc-flag-img {
	display: block;
	width: 24px;
	height: 16px;
	object-fit: cover;
	border-radius: 2px;
}

.chafwc-flag-arrow {
	color: var(--chafwc-text-muted);
	transition: transform var(--chafwc-transition);
}

.chafwc-flag-open .chafwc-flag-arrow {
	transform: rotate(180deg);
}

.chafwc-flag-list {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin: 0 0 6px 0;
	padding: 4px;
	list-style: none;
	background: var(--chafwc-bg);
	border: 1px solid var(--chafwc-border);
	border-radius: var(--chafwc-radius-sm);
	box-shadow: var(--chafwc-shadow);
	z-index: 100;
	min-width: 44px;
}

.chafwc-flag-option {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
	border-radius: 4px;
	cursor: pointer;
	transition: background var(--chafwc-transition);
}

.chafwc-flag-option:hover {
	background: var(--chafwc-bg-secondary);
}

.chafwc-flag-option.chafwc-flag-selected {
	background: var(--chafwc-primary-light);
}

.chafwc-flag-option img {
	display: block;
	width: 24px;
	height: 16px;
	object-fit: cover;
	border-radius: 2px;
}

/* Single language - no dropdown arrow */
.chafwc-flag-single .chafwc-flag-trigger {
	cursor: default;
	padding: 6px;
}

.chafwc-flag-single .chafwc-flag-trigger:hover {
	border-color: var(--chafwc-border);
}

/* Flag dropdown in chat form (outside input wrapper) */
.chafwc-chat-form .chafwc-flag-dropdown {
	flex-shrink: 0;
}

/* Voice mode language row - mic button centered, language selector right */
.chafwc-voice-language-row {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	padding: 16px;
	border-top: 1px solid var(--chafwc-border);
	background: var(--chafwc-bg);
}

.chafwc-voice-language-row .chafwc-flag-dropdown {
	position: absolute;
	right: 16px;
}


.chafwc-voice-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	padding: 0;
	background: var(--chafwc-primary);
	border: none;
	border-radius: 50%;
	color: var(--chafwc-primary-contrast);
	cursor: pointer;
	box-shadow: var(--chafwc-shadow-sm);
	transition: all var(--chafwc-transition);
}

.chafwc-voice-btn:hover {
	background: var(--chafwc-primary-hover);
	transform: scale(1.05);
}

.chafwc-voice-btn.chafwc-voice-active {
	background: #DC2626;
}

.chafwc-voice-btn.chafwc-voice-active:hover {
	background: #B91C1C;
}

/* Premium Gate */
.chafwc-voice-premium-gate {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px 24px;
	min-height: 350px;
}

.chafwc-premium-message {
	max-width: 280px;
}

.chafwc-premium-message svg {
	color: #F59E0B;
	margin-bottom: 16px;
}

.chafwc-premium-message h3 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 600;
	color: var(--chafwc-text);
}

.chafwc-premium-message p {
	margin: 0 0 20px;
	font-size: 14px;
	color: var(--chafwc-text-muted);
}

.chafwc-upgrade-btn {
	display: inline-flex;
	align-items: center;
	padding: 10px 20px;
	background: var(--chafwc-primary);
	border-radius: 8px;
	color: var(--chafwc-primary-contrast);
	font-weight: 500;
	text-decoration: none;
	transition: background var(--chafwc-transition);
}

.chafwc-upgrade-btn:hover {
	background: var(--chafwc-primary-hover);
	color: var(--chafwc-primary-contrast);
}

/* Footer */
.chafwc-panel-footer {
	padding: 10px 16px;
	border-top: 1px solid var(--chafwc-border);
	text-align: center;
	flex-shrink: 0;
}

.chafwc-powered-by {
	font-size: 11px;
	color: var(--chafwc-text-muted);
}

.chafwc-powered-by span {
	color: var(--chafwc-primary);
}

/* Mobile Responsive */
@media (max-width: 480px) {
	.chafwc-widget {
		bottom: 10px;
		right: 10px;
		left: 10px;
	}

	.chafwc-position-bottom-left {
		right: 10px;
	}

	.chafwc-panel {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		height: min(600px, 85vh);
		max-height: 85vh;
		border-radius: var(--chafwc-radius) var(--chafwc-radius) 0 0;
	}

	.chafwc-mode-content {
		min-height: 0;
	}

	.chafwc-position-bottom-right .chafwc-panel,
	.chafwc-position-bottom-left .chafwc-panel {
		right: 0;
		left: 0;
	}

	.chafwc-toggle-btn {
		position: fixed;
		bottom: 20px;
		right: 20px;
	}

	.chafwc-position-bottom-left .chafwc-toggle-btn {
		right: auto;
		left: 20px;
	}
}

/* Screen Reader Only */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Error Toast */
.chafwc-error-toast {
	position: absolute;
	top: clamp(60px, 80%, 360px);
	left: 16px;
	right: 16px;
	background: #FEF2F2;
	color: #DC2626;
	padding: 12px 16px;
	border-radius: var(--chafwc-radius-sm);
	border: 1px solid #FECACA;
	font-size: 13px;
	line-height: 1.4;
	z-index: 1000;
	animation: chafwc-toast-in 0.3s ease-out;
}

.chafwc-error-toast.chafwc-toast-warning {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #FEF3C7;
	color: #92400E;
	border-color: #F59E0B;
}

.chafwc-error-toast.chafwc-toast-warning .chafwc-toast-text {
	flex: 1;
}

.chafwc-error-toast.chafwc-toast-warning .chafwc-toast-close {
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: inherit;
	padding: 0 4px;
	line-height: 1;
}

.chafwc-error-toast.chafwc-toast-warning .chafwc-toast-close:hover {
	color: #78350F;
}

.chafwc-error-toast.chafwc-hidden {
	display: none;
}

@keyframes chafwc-toast-in {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Product Cards */
.chafwc-product-cards {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 12px 0 8px;
	margin-top: 8px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--chafwc-border) transparent;
}

.chafwc-product-cards::-webkit-scrollbar {
	height: 4px;
}

.chafwc-product-cards::-webkit-scrollbar-track {
	background: transparent;
}

.chafwc-product-cards::-webkit-scrollbar-thumb {
	background: var(--chafwc-border);
	border-radius: 4px;
}

.chafwc-product-card {
	flex: 0 0 140px;
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--chafwc-bg);
	border: 1px solid var(--chafwc-border);
	border-radius: var(--chafwc-radius-sm);
	overflow: hidden;
	text-decoration: none;
	color: var(--chafwc-text);
	transition: box-shadow var(--chafwc-transition), transform var(--chafwc-transition);
	scroll-snap-align: start;
}

.chafwc-product-card:hover {
	box-shadow: var(--chafwc-shadow-sm);
	transform: translateY(-2px);
}

.chafwc-product-image {
	width: 100%;
	height: 100px;
	object-fit: cover;
	background: var(--chafwc-bg-secondary);
}

.chafwc-product-image-placeholder {
	width: 100%;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--chafwc-bg-secondary);
	color: var(--chafwc-text-muted);
}

.chafwc-product-image-placeholder svg {
	width: 32px;
	height: 32px;
}

.chafwc-product-info {
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.chafwc-product-name {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.chafwc-product-price-row {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.chafwc-product-price {
	font-size: 13px;
	font-weight: 600;
	color: var(--chafwc-primary);
}

.chafwc-product-regular-price {
	font-size: 11px;
	color: var(--chafwc-text-muted);
	text-decoration: line-through;
}

.chafwc-product-sale-tag {
	font-size: 10px;
	font-weight: 600;
	background: #EF4444;
	color: white;
	padding: 1px 4px;
	border-radius: 3px;
	text-transform: uppercase;
}

.chafwc-product-stock {
	font-size: 11px;
}

.chafwc-stock-in {
	color: #10B981;
}

.chafwc-stock-out {
	color: #EF4444;
}

.chafwc-product-link {
	display: block;
	position: relative;
	text-decoration: none;
	color: inherit;
}

.chafwc-product-atc-btn {
	display: block;
	width: 100%;
	padding: 5px 4px;
	margin-top: 4px;
	border: none;
	border-radius: 4px;
	background: var(--chafwc-primary, #84cc16);
	color: var(--chafwc-primary-contrast, #fff);
	font-size: 11px;
	font-weight: 600;
	font-family: var(--chafwc-font, inherit);
	cursor: pointer;
	transition: background var(--chafwc-transition, 0.2s), opacity var(--chafwc-transition, 0.2s);
	line-height: 1.3;
}

.chafwc-product-atc-btn:hover {
	background: var(--chafwc-primary-hover, #65a30d);
}

.chafwc-product-atc-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.chafwc-product-atc-btn.chafwc-atc-success {
	background: #10B981;
	cursor: default;
}

.chafwc-product-atc-btn.chafwc-atc-error {
	background: #EF4444;
	font-size: 10px;
}

.chafwc-product-oos {
	opacity: 0.75;
}

.chafwc-product-oos:hover {
	opacity: 0.9;
}

.chafwc-product-badge-oos {
	position: absolute;
	top: 6px;
	left: 6px;
	background: #EF4444;
	color: #fff;
	font-size: 9px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 3px;
	text-transform: uppercase;
	z-index: 1;
	line-height: 1.3;
	letter-spacing: 0.02em;
}

/* Order Lookup Form */
.chafwc-order-lookup-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
	padding: 12px;
	background: var(--chafwc-bg-secondary, #f9fafb);
	border-radius: var(--chafwc-radius-sm, 8px);
	border: 1px solid var(--chafwc-border, #e5e7eb);
}

.chafwc-order-input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid var(--chafwc-border, #e5e7eb);
	border-radius: var(--chafwc-radius-sm, 8px);
	font-size: 13px;
	font-family: var(--chafwc-font, inherit);
	background: #fff;
	color: var(--chafwc-text, #1f2937);
	outline: none;
	transition: border-color var(--chafwc-transition, 0.2s);
	box-sizing: border-box;
}

.chafwc-order-input:focus {
	border-color: var(--chafwc-primary, #84cc16);
}

.chafwc-order-lookup-btn {
	padding: 8px 16px;
	background: var(--chafwc-primary, #84cc16);
	color: var(--chafwc-primary-contrast, #fff);
	border: none;
	border-radius: var(--chafwc-radius-sm, 8px);
	font-size: 13px;
	font-weight: 600;
	font-family: var(--chafwc-font, inherit);
	cursor: pointer;
	transition: background var(--chafwc-transition, 0.2s);
}

.chafwc-order-lookup-btn:hover {
	background: var(--chafwc-primary-hover, #65a30d);
}

.chafwc-order-lookup-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.chafwc-order-lookup-error {
	font-size: 12px;
	color: #EF4444;
	padding: 4px 0 0;
}

/* Order Status Card */
.chafwc-order-card {
	background: var(--chafwc-bg-secondary, #f9fafb);
	border: 1px solid var(--chafwc-border, #e5e7eb);
	border-radius: var(--chafwc-radius-sm, 8px);
	padding: 14px;
	font-size: 13px;
	line-height: 1.5;
}

.chafwc-order-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.chafwc-order-card-title {
	font-weight: 700;
	font-size: 14px;
	color: var(--chafwc-text, #1f2937);
}

.chafwc-order-status-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: capitalize;
	background: #e0e7ff;
	color: #3730a3;
}

.chafwc-order-status-processing {
	background: #dbeafe;
	color: #1e40af;
}

.chafwc-order-status-completed {
	background: #dcfce7;
	color: #166534;
}

.chafwc-order-status-on-hold {
	background: #fef3c7;
	color: #92400e;
}

.chafwc-order-status-cancelled,
.chafwc-order-status-refunded,
.chafwc-order-status-failed {
	background: #fee2e2;
	color: #991b1b;
}

.chafwc-order-status-pending {
	background: #f3f4f6;
	color: #6b7280;
}

.chafwc-order-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	color: var(--chafwc-text-muted, #6b7280);
	font-size: 12px;
	margin-bottom: 10px;
}

.chafwc-order-items {
	border-top: 1px solid var(--chafwc-border, #e5e7eb);
	padding-top: 8px;
}

.chafwc-order-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 4px 0;
	font-size: 12px;
	color: var(--chafwc-text, #1f2937);
}

.chafwc-order-item-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.chafwc-order-item-total {
	flex-shrink: 0;
	margin-left: 8px;
	font-weight: 600;
}

.chafwc-order-tracking-link {
	display: inline-block;
	margin-top: 10px;
	padding: 6px 12px;
	background: var(--chafwc-primary, #84cc16);
	color: var(--chafwc-primary-contrast, #fff);
	border-radius: var(--chafwc-radius-sm, 8px);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background var(--chafwc-transition, 0.2s);
}

.chafwc-order-tracking-link:hover {
	background: var(--chafwc-primary-hover, #65a30d);
	color: var(--chafwc-primary-contrast, #fff);
}

/* Handoff Link (inside footer) */
.chafwc-handoff-link {
	display: block;
	margin-bottom: 4px;
}

.chafwc-handoff-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	color: var(--chafwc-text-muted);
	font-size: 12px;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: var(--chafwc-radius-sm);
	transition: color var(--chafwc-transition), background var(--chafwc-transition);
	font-family: var(--chafwc-font);
}

.chafwc-handoff-trigger:hover {
	color: var(--chafwc-primary);
	background: var(--chafwc-primary-light);
}

.chafwc-handoff-trigger svg {
	flex-shrink: 0;
}

/* Handoff Overlay */
.chafwc-handoff-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
	border-radius: var(--chafwc-radius);
	animation: chafwc-fade-in 0.2s ease-out;
}

.chafwc-handoff-overlay.chafwc-hidden {
	display: none;
}

.chafwc-handoff-form {
	background: var(--chafwc-bg);
	border-radius: var(--chafwc-radius-sm);
	padding: 24px;
	margin: 20px;
	width: calc(100% - 40px);
	max-width: 320px;
	box-shadow: var(--chafwc-shadow);
}

.chafwc-handoff-form h3 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
	color: var(--chafwc-text);
}

.chafwc-handoff-form p {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--chafwc-text-muted);
	line-height: 1.5;
}

.chafwc-handoff-email {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--chafwc-border);
	border-radius: var(--chafwc-radius-sm);
	font-size: 14px;
	font-family: var(--chafwc-font);
	outline: none;
	transition: border-color var(--chafwc-transition);
	box-sizing: border-box;
}

.chafwc-handoff-email:focus {
	border-color: var(--chafwc-primary);
}

.chafwc-handoff-actions {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}

.chafwc-handoff-cancel {
	flex: 1;
	padding: 10px;
	border: 1px solid var(--chafwc-border);
	border-radius: var(--chafwc-radius-sm);
	background: var(--chafwc-bg);
	color: var(--chafwc-text-muted);
	cursor: pointer;
	font-size: 13px;
	font-family: var(--chafwc-font);
	transition: background var(--chafwc-transition);
}

.chafwc-handoff-cancel:hover {
	background: var(--chafwc-bg-secondary);
}

.chafwc-handoff-submit {
	flex: 1;
	padding: 10px;
	border: none;
	border-radius: var(--chafwc-radius-sm);
	background: var(--chafwc-primary);
	color: var(--chafwc-primary-contrast);
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	font-family: var(--chafwc-font);
	transition: background var(--chafwc-transition);
}

.chafwc-handoff-submit:hover {
	background: var(--chafwc-primary-hover);
}

.chafwc-handoff-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

@keyframes chafwc-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
