/* Bale Chat Me - Frontend Styles */

.bale-chat-wrapper {
	position: fixed;
	bottom: 24px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	direction: rtl;
}

.bale-chat-wrapper.bale-chat-right {
	right: 24px;
}

.bale-chat-wrapper.bale-chat-left {
	left: 24px;
}

/* Floating button */
.bale-chat-btn {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #2ecc71;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(46, 204, 113, 0.4);
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	position: relative;
}

.bale-chat-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 24px rgba(46, 204, 113, 0.5);
}

.bale-chat-btn:active {
	transform: scale(0.95);
}

/* Chat box */
.bale-chat-box {
	position: absolute;
	bottom: 72px;
	right: 0;
	width: 320px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	overflow: hidden;
	display: none;
	animation: baleFadeIn 0.3s ease;
}

.bale-chat-wrapper.bale-chat-left .bale-chat-box {
	right: auto;
	left: 0;
}

.bale-chat-box.active {
	display: block;
}

@keyframes baleFadeIn {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Header */
.bale-chat-header {
	background: #2ecc71;
	color: #fff;
	padding: 14px 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
	font-size: 14px;
}

.bale-chat-close {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.85);
	font-size: 22px;
	cursor: pointer;
	padding: 0 4px;
	line-height: 1;
	transition: color 0.15s;
}

.bale-chat-close:hover {
	color: #fff;
}

/* Body */
.bale-chat-body {
	padding: 18px;
	background: #f7f8fa;
	min-height: 50px;
}

.bale-chat-msg {
	background: #fff;
	padding: 12px 16px;
	border-radius: 14px 14px 14px 4px;
	font-size: 13px;
	line-height: 1.7;
	color: #333;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	max-width: 88%;
}

/* Footer */
.bale-chat-footer {
	padding: 14px 18px;
	border-top: 1px solid #eee;
}

.bale-chat-start {
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 10px;
	background: #2ecc71;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}

.bale-chat-start:hover {
	background: #27ae60;
}

.bale-chat-start:active {
	transform: scale(0.97);
}

/* Mobile responsive */
@media (max-width: 480px) {
	.bale-chat-wrapper.bale-chat-right {
		right: 16px;
		bottom: 16px;
	}

	.bale-chat-wrapper.bale-chat-left {
		left: 16px;
		bottom: 16px;
	}

	.bale-chat-btn {
		width: 52px;
		height: 52px;
	}

	.bale-chat-box {
		width: 290px;
		bottom: 66px;
	}
}
