.cms-chatbot-ac {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 1000;
	width: 56px;
	height: 56px;
	border: 0;
	border-radius: 50%;
	background: var(--tp-theme-primary, #ea3325);
	color: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
	cursor: pointer;
}

.cms-chatbot-panel {
	position: fixed;
	right: 20px;
	bottom: 88px;
	z-index: 1000;
	width: 360px;
	height: min(520px, calc(100vh - 120px));
	display: flex;
	flex-direction: column;
	background: #fff;
	color: #111;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
	overflow: hidden;
	font-size: 15px;
	line-height: 1.5;
}

.cms-chatbot-panel[hidden] {
	display: none;
}

.cms-chatbot-ust {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: var(--tp-theme-primary, #ea3325);
	color: #000;
	font-weight: 600;
}

.cms-chatbot-kapat {
	border: 0;
	background: none;
	padding: 0 4px;
	font-size: 26px;
	line-height: 1;
	color: #000;
	cursor: pointer;
}

.cms-chatbot-mesajlar {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	overflow-y: auto;
	background: #f6f6f6;
}

.cms-chatbot-mesaj {
	max-width: 85%;
	padding: 9px 12px;
	border-radius: 12px;
	overflow-wrap: anywhere;
}

.cms-chatbot-bot {
	align-self: flex-start;
	background: #fff;
	border: 1px solid #e5e5e5;
}

.cms-chatbot-ziyaretci {
	align-self: flex-end;
	background: #111;
	color: #fff;
}

.cms-chatbot-mesaj a {
	color: inherit;
	text-decoration: underline;
}

.cms-chatbot-form {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 10px;
	border-top: 1px solid #e5e5e5;
	background: #fff;
}

.cms-chatbot-form input {
	flex: 1;
	min-width: 0;
	padding: 9px 12px;
	border: 1px solid #ccc;
	border-radius: 10px;
	background: #fff;
	color: #111;
	font-size: 16px;
}

.cms-chatbot-form button {
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background: var(--tp-theme-primary, #ea3325);
	color: #000;
	font-weight: 600;
	cursor: pointer;
}

.cms-chatbot-not {
	margin: 0;
	padding: 0 10px 8px;
	background: #fff;
	color: #666;
	font-size: 12px;
}

@media (max-width: 991px) {
	.cms-chatbot-ac {
		right: 16px;
		bottom: 16px;
		width: 48px;
		height: 48px;
	}

	.cms-chatbot-panel {
		right: 16px;
		bottom: 76px;
	}
}

@media (max-width: 575px) {
	.cms-chatbot-panel {
		left: 8px;
		right: 8px;
		width: auto;
		height: calc(100vh - 100px);
		height: calc(100dvh - 100px);
	}
}
