/* Ánh Quỳnh Plant Commerce — Lightweight Responsive Storefront Chat Widget */
.asc-chat-fab {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99990;
	background: #1b6b3a;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	cursor: pointer;
}

.asc-chat-fab-icon,
.asc-chat-head-icon {
	width: 22px;
	height: 22px;
	border-radius: 5px;
	background: #ffffff;
	padding: 2px;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
}

.asc-chat-head-brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.asc-chat-panel {
	position: fixed;
	right: 20px;
	bottom: 76px;
	width: 370px;
	max-width: calc(100vw - 24px);
	max-height: 75vh;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #d5e0d9;
	border-radius: 14px;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
	z-index: 99991;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.asc-chat-panel[hidden] { display: none; }

.asc-chat-head {
	background: #14532d;
	color: #ffffff;
	padding: 12px 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.asc-chat-head strong { font-size: 14px; }
.asc-chat-close { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }

.asc-chat-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 12px;
	background: #f6f9f7;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.asc-msg {
	max-width: 90%;
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
}

.asc-msg-user { align-self: flex-end; background: #1b6b3a; color: #fff; }
.asc-msg-bot { align-self: flex-start; background: #fff; border: 1px solid #dce5df; color: #1c2420; }

.asc-verified-box {
	background: #ecfdf5;
	border: 1px solid #86efac;
	border-radius: 8px;
	padding: 8px 10px;
	margin-top: 6px;
	font-size: 12px;
}

.asc-ai-note {
	margin-top: 6px;
	font-size: 11px;
	color: #5a6961;
	border-top: 1px dashed #d5e0d9;
	padding-top: 4px;
}

.asc-chat-foot {
	border-top: 1px solid #dce5df;
	padding: 10px;
	background: #fff;
}

.asc-chat-form { display: flex; gap: 6px; }
.asc-chat-form input { flex: 1; padding: 8px 10px; border: 1px solid #c5d1ca; border-radius: 8px; font-size: 13px; }
.asc-chat-form button { background: #1b6b3a; color: #fff; border: none; border-radius: 8px; padding: 8px 12px; font-weight: 600; cursor: pointer; }
.asc-chat-handoff { margin-top: 6px; width: 100%; background: #f3f4f6; color: #1f2937; border: 1px solid #d1d5db; border-radius: 7px; padding: 6px; font-size: 12px; cursor: pointer; font-weight: 500; }
.asc-chat-handoff:hover { background: #e5e7eb; }

.asc-handoff-panel {
	border-top: 1px solid #bbf7d0;
	background: #f0fdf4;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.asc-handoff-panel[hidden] { display: none; }
.asc-handoff-title { font-size: 12.5px; font-weight: 700; color: #14532d; }
.asc-handoff-panel input {
	width: 100%;
	box-sizing: border-box;
	padding: 7px 10px;
	border: 1px solid #86efac;
	border-radius: 7px;
	font-size: 12.5px;
	background: #fff;
}
.asc-handoff-panel input:focus { outline: none; border-color: #15803d; box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.14); }
.asc-handoff-err { font-size: 12px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; padding: 5px 8px; }
.asc-handoff-err[hidden] { display: none; }
.asc-handoff-actions { display: flex; gap: 6px; }
.asc-handoff-submit { flex: 1; background: #15803d; color: #fff; border: none; border-radius: 7px; padding: 7px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.asc-handoff-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.asc-handoff-cancel { background: #fff; color: #475569; border: 1px solid #cbd5e1; border-radius: 7px; padding: 7px 10px; font-size: 12.5px; cursor: pointer; }
