/* Đặt CẠNH cụm nút nổi (phone/Zalo/Messenger) của theme thay vì chồng phía
   trên — 2 cụm luôn thẳng hàng ở đáy màn hình bất kể cụm kia có bao nhiêu nút. */
.aca-chat-widget {
	position: fixed;
	right: 84px;
	bottom: 18px;
	z-index: 9999;
	font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.aca-chat-toggle {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	border: none;
	background: linear-gradient(135deg, #ecd9a8, #cda653 55%, #96731f);
	color: #3a2c07;
	font-size: 22px;
	cursor: pointer;
	box-shadow: 0 12px 28px -8px rgba(205,166,83,.5);
	transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.aca-chat-toggle:hover {
	transform: translateY(-2px) scale(1.05);
}
.aca-chat-panel {
	position: absolute;
	bottom: 66px;
	right: 0;
	width: 340px;
	max-width: calc(100vw - 40px);
	height: 460px;
	max-height: 70vh;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 30px 70px -16px rgba(8,16,32,.28);
	border: 1px solid #e8e4da;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
/* [hidden] và .aca-chat-panel có cùng độ ưu tiên CSS — nếu không khai báo
   riêng, display:flex ở trên luôn thắng và panel không bao giờ thực sự ẩn
   dù thuộc tính "hidden" đã được JS set (đóng box không có tác dụng). */
.aca-chat-panel[hidden] {
	display: none;
}
.aca-chat-header {
	background: linear-gradient(135deg, #0b1b34, #1a3868);
	color: #fff;
	padding: 14px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	font-family: 'Playfair Display', serif;
}
.aca-chat-close {
	background: none;
	border: none;
	color: rgba(255,255,255,.8);
	cursor: pointer;
	font-size: 14px;
}
.aca-chat-close:hover {
	color: #cda653;
}
.aca-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	font-size: 13px;
	background: #fdfcfa;
}
.aca-chat-msg {
	margin-bottom: 10px;
	max-width: 85%;
	padding: 9px 12px;
	border-radius: 12px;
	line-height: 1.5;
}
.aca-chat-msg.user {
	background: linear-gradient(135deg, #cda653, #96731f);
	color: #fff;
	margin-left: auto;
}
.aca-chat-msg.assistant {
	background: #f1efe9;
	color: #3d3a33;
}
.aca-chat-property-card {
	border: 1px solid #e8e4da;
	border-radius: 10px;
	padding: 9px;
	margin-bottom: 8px;
	background: #fff;
}
.aca-chat-property-card a {
	font-weight: 600;
	color: #96731f;
	text-decoration: none;
}
.aca-chat-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
	margin-bottom: 8px;
}
.aca-chat-table th, .aca-chat-table td {
	border: 1px solid #e8e4da;
	padding: 4px 6px;
	text-align: left;
}
.aca-chat-form {
	display: flex;
	border-top: 1px solid #e8e4da;
}
.aca-chat-form input {
	flex: 1;
	border: none;
	padding: 12px;
	font-size: 13px;
	font-family: inherit;
}
.aca-chat-form input:focus {
	outline: none;
}
.aca-chat-form button {
	border: none;
	background: linear-gradient(135deg, #cda653, #96731f);
	color: #fff;
	padding: 0 18px;
	cursor: pointer;
	font-weight: 600;
}
