/* HARATI site guide — original widget (not a third-party clone) */

body.has-harati-agent.harati-no-scrollup .harati-agent-btn {
	right: 16px;
}

.harati-agent-btn {
	position: fixed;
	right: 70px;
	bottom: 16px;
	z-index: 10040;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	border-radius: 999px;
	padding: 12px 20px 12px 16px;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.02em;
	cursor: pointer;
	background: linear-gradient(90deg, #c45a00 0%, #ff8202 100%);
	box-shadow: 0 8px 22px rgba(196, 90, 0, 0.38);
	font-family: inherit;
}
.harati-agent-btn:hover,
.harati-agent-btn:focus {
	outline: none;
	filter: brightness(1.06);
}
.harati-agent-btn svg {
	width: 18px;
	height: 18px;
	fill: #fff;
}

.harati-agent-panel {
	position: fixed;
	right: 16px;
	bottom: 78px;
	width: 380px;
	max-width: calc(100vw - 24px);
	height: 520px;
	max-height: calc(100vh - 110px);
	z-index: 10041;
	display: none;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 16px 48px rgba(45, 48, 50, 0.28);
	font-family: inherit;
	color: #333;
}
.harati-agent-panel.is-open {
	display: flex;
}

.harati-agent-head {
	background: linear-gradient(90deg, #c45a00 0%, #ff8202 100%);
	color: #fff;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.harati-agent-head h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
}
.harati-agent-live {
	display: block;
	font-size: 11px;
	opacity: 0.92;
	font-weight: 500;
}
.harati-agent-live::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #b6f5c8;
	margin-right: 5px;
}
.harati-agent-head button {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}

.harati-agent-chips {
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	padding: 8px 10px;
	overflow-x: auto;
	background: #fff7f0;
	border-bottom: 1px solid #f0e4d8;
}
.harati-agent-chips button {
	flex: 0 0 auto;
	border: 1px solid #ffd1a3;
	background: #fff;
	color: #c45a00;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 12px;
	cursor: pointer;
}
.harati-agent-chips button:hover {
	background: #ff8202;
	color: #fff;
	border-color: #ff8202;
}

.harati-agent-log {
	flex: 1;
	overflow-y: auto;
	padding: 12px 12px 8px;
	background: #fafafa;
}
.harati-agent-bubble {
	max-width: 92%;
	padding: 10px 12px;
	border-radius: 12px;
	margin-bottom: 10px;
	font-size: 14px;
	line-height: 1.5;
}
.harati-agent-bubble p {
	margin: 0 0 8px;
}
.harati-agent-bubble p:last-child {
	margin-bottom: 0;
}
.harati-agent-bubble ul {
	margin: 0 0 8px;
	padding-left: 18px;
}
.harati-agent-bubble.bot {
	background: #ececec;
	color: #333;
	border-bottom-left-radius: 4px;
}
.harati-agent-bubble.me {
	background: #ffeee0;
	margin-left: auto;
	border-bottom-right-radius: 4px;
}
.harati-agent-suggest {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.harati-agent-suggest button {
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 999px;
	padding: 6px 10px;
	font-size: 12px;
	cursor: pointer;
	text-align: left;
}

.harati-agent-form {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #eee;
	background: #fff;
}
.harati-agent-form input {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 999px;
	padding: 10px 14px;
	font-size: 14px;
}
.harati-agent-form button {
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: #ff8202;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
}
.harati-agent-note {
	font-size: 11px;
	color: #888;
	text-align: center;
	padding: 0 10px 8px;
	background: #fff;
	margin: 0;
}

@media (max-width: 480px) {
	body.has-harati-agent #scrollUp {
		right: 14px !important;
		bottom: 70px !important;
	}
	.harati-agent-panel {
		right: 8px;
		left: 8px;
		width: auto;
		bottom: 118px;
	}
	.harati-agent-btn {
		right: 12px;
		bottom: 12px;
	}
	body.has-harati-agent.harati-no-scrollup .harati-agent-btn {
		right: 12px;
	}
}
