/* WhatsApp floating chat widget */

.wa-chat {
	position: fixed;
	z-index: 1100;
	right: 80px;
	bottom: 20px;
	font-family: inherit;
}

.wa-chat-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background-color: #25d366;
	color: #fff;
	/* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); */
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-chat-toggle:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.wa-chat-toggle i:before {
	content: "\e967";
	font-size: 28px;
	line-height: 1;
}

.wa-chat[data-open="1"] .wa-chat-toggle {
	display: none;
}

.wa-chat-panel {
	display: none;
	width: 320px;
	max-width: calc(100vw - 40px);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
	margin-right: -60px;
}

.wa-chat[data-open="1"] .wa-chat-panel {
	display: block;
}

.wa-chat-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: #075e54;
	color: #fff;
}

.wa-chat-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	flex-shrink: 0;
}

.wa-chat-avatar i:before {
	content: "\e967";
	font-size: 22px;
}

.wa-chat-info {
	flex: 1;
	min-width: 0;
}

.wa-chat-info strong {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	font-family: helvetice, arial, sans-serif;
}

.wa-chat-status {
	display: block;
	margin-top: 2px;
	font-size: 0.75rem;
	opacity: 0.85;
	font-family: helvetice, arial, sans-serif;
}

.wa-chat-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: #fff;
	opacity: 0.85;
	flex-shrink: 0;
}

.wa-chat-close:hover {
	opacity: 1;
}

.wa-chat-close i:before {
	content: "\e928";
	font-size: 14px;
}

.wa-chat-body {
	padding: 16px;
	background: #e5ddd5 url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h30v30H0zm30 30h30v30H30z' fill='%23d4cdc4' fill-opacity='0.15'/%3E%3C/svg%3E");
	min-height: 80px;
}

.wa-chat-message {
	display: inline-block;
	max-width: 90%;
	padding: 10px 12px;
	border-radius: 0 8px 8px 8px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.wa-chat[dir="rtl"] .wa-chat-message {
	border-radius: 8px 0 8px 8px;
}

.wa-chat-message p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #303030;
}

.wa-chat-footer {
	padding: 12px 16px 16px;
	background: #f0f0f0;
}

.wa-chat-start {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 16px;
	border-radius: 24px;
	background: #25d366;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.wa-chat-start:hover {
	background: #1fb855;
	color: #fff;
}

.wa-chat-start i:before {
	content: "\e967";
	font-size: 18px;
}

.wa-chat-start em {
	font-style: normal;
}

html[data-popup="google-map"] .wa-chat {
	display: none;
}

@media screen and (max-width: 480px) {
	.wa-chat {
		right: 12px;
		bottom: calc(12px + var(--navigation_icon_size, 40px) + 8px);
	}

	.wa-chat-panel {
		width: calc(100vw - 24px);
	}
}

@media screen and (min-width:1440px)                        { }
@media screen and (min-width:1240px) and (max-width:1439px) { }
@media screen and (min-width:1040px) and (max-width:1239px) { }
@media screen and (min-width: 960px) and (max-width:1039px) { }
@media screen and (min-width: 860px) and (max-width: 959px) { }
@media screen and (min-width: 700px) and (max-width: 859px) { }
@media screen and (min-width: 580px) and (max-width: 699px) { }
@media screen and (min-width: 310px) and (max-width: 579px) {
	.wa-chat-panel {
		width: calc(100vw - 20px);
		max-width: none;
		margin-right:auto;
		margin-left: 10px;
		bottom: 10px;
		left:10px;
	}
    .wa-chat {
		right: 18px;
		bottom: 70px;
		}
    .wa-chat[data-open="1"] {
		right:10px;
		bottom:10px;
	}
}
