/* Mai Health WhatsApp Chat */
.mhwa-root {
	--mhwa-color: #0B5E45;
	position: fixed; bottom: 20px; z-index: 2147482900;
	display: flex; flex-direction: column; gap: 12px;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
	font-size: 15px; line-height: 1.45; color: #14201C;
}
.mhwa-pos-right { right: 20px; align-items: flex-end; }
.mhwa-pos-left { left: 20px; align-items: flex-start; }
.mhwa-root *, .mhwa-root *::before, .mhwa-root *::after { box-sizing: border-box; }
.mhwa-root button { font: inherit; margin: 0; letter-spacing: normal; text-transform: none; }
.mhwa-root ul { list-style: none; margin: 0; padding: 0; }

/* button */
.mhwa-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	height: 56px; min-width: 220px; padding: 0 30px 0 22px; border: 0; border-radius: 28px;
	background: var(--mhwa-color); color: #fff; font-weight: 600; font-size: 16px; cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
	transition: transform .15s ease, box-shadow .15s ease;
}
.mhwa-button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, .24); }
/* Keep icon + label on one line whatever the theme does to buttons, spans and SVGs. */
.mhwa-root .mhwa-button,
.mhwa-sc-button {
	display: inline-flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
	align-items: center !important; justify-content: center !important;
	white-space: nowrap !important; line-height: 1 !important; width: auto !important;
	text-align: left !important; vertical-align: middle;
}
.mhwa-root .mhwa-button > span,
.mhwa-sc-button > span {
	display: inline-flex !important; align-items: center !important;
	width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important;
	white-space: nowrap !important; line-height: 1.2 !important;
}
.mhwa-root .mhwa-button svg,
.mhwa-root .mhwa-button img,
.mhwa-sc-button svg {
	display: block !important; flex: none !important;
	width: 26px !important; height: 26px !important; max-width: none !important; margin: 0 !important;
}
.mhwa-sc-button svg { width: 20px !important; height: 20px !important; }
.mhwa-root .mhwa-button[hidden] { display: none !important; }
.mhwa-style-round { width: 60px; min-width: 0; height: 60px; padding: 0; border-radius: 50%; }
.mhwa-button-icon { display: inline-flex; }
.mhwa-icon { display: block; object-fit: contain; }
.mhwa-enter .mhwa-button { animation: mhwa-in .25s ease-out; }
@keyframes mhwa-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.mhwa-root button:focus-visible, .mhwa-root a:focus-visible { outline: 3px solid #6BA8F0; outline-offset: 2px; }

/* box */
.mhwa-box {
	width: 360px; max-width: calc(100vw - 32px);
	max-height: min(560px, calc(100vh - 110px));
	display: flex; flex-direction: column;
	background: #fff; border-radius: 16px; overflow: hidden;
	box-shadow: 0 16px 48px rgba(0, 0, 0, .22);
	animation: mhwa-in .2s ease-out;
}
.mhwa-box[hidden] { display: none; }
.mhwa-head { display: flex; gap: 12px; align-items: flex-start; padding: 16px 12px 16px 16px; background: var(--mhwa-color); color: #fff; }
.mhwa-head-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; }
.mhwa-head-text { flex: 1; min-width: 0; }
.mhwa-title { font-size: 17px; font-weight: 700; line-height: 1.25; }
.mhwa-sub { margin-top: 4px; font-size: 13.5px; line-height: 1.45; opacity: .95; }
.mhwa-close {
	width: 40px; height: 40px; flex: none; margin: -6px -2px 0 0;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer;
}
.mhwa-close:hover { background: rgba(255, 255, 255, .15); }

.mhwa-agents { padding: 10px; overflow-y: auto; background: #F5F6F3; display: flex; flex-direction: column; gap: 8px; }
.mhwa-agent {
	display: flex; align-items: center; gap: 12px;
	padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #E1E5E1;
	color: #14201C; text-decoration: none;
	border-left: 4px solid var(--mhwa-color);
}
a.mhwa-agent:hover { border-color: var(--mhwa-color); background: #FAFBFA; }
.mhwa-agent.is-disabled { border-left-color: #B9C2BC; opacity: .75; }
.mhwa-avatar {
	position: relative; width: 48px; height: 48px; flex: none; border-radius: 50%;
	background: #E3F1EB; color: #0B5E45; font-weight: 700; font-size: 16px;
	display: flex; align-items: center; justify-content: center;
}
.mhwa-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.mhwa-dot { position: absolute; right: 0; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; }
.mhwa-dot.is-on { background: #1E9E4A; }
.mhwa-dot.is-off { background: #9AA59F; }
.mhwa-agent-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mhwa-agent-name { font-weight: 700; font-size: 15px; }
.mhwa-agent-role { font-size: 13px; color: #45524D; }
.mhwa-agent-status { margin-top: 2px; font-size: 12.5px; font-weight: 600; }
.mhwa-agent-status.is-on { color: #146B32; }
.mhwa-agent-status.is-off { color: #55615C; }
.mhwa-agent-go { display: inline-flex; color: var(--mhwa-color); flex: none; }
.mhwa-foot { padding: 10px 14px 12px; font-size: 12px; line-height: 1.45; color: #55615C; background: #fff; border-top: 1px solid #E1E5E1; }

/* shortcode */
.mhwa-sc-button {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 46px; padding: 0 20px; border: 0; border-radius: 23px;
	background: #0B5E45; color: #fff !important; font-weight: 600; text-decoration: none !important; cursor: pointer; font-family: inherit; font-size: 16px;
}
.mhwa-sc-button:hover { filter: brightness(1.1); }
.mhwa-sc-link { padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.mhwa-sc-icon { flex: none; }

/* phones */
@media (max-width: 520px) {
	.mhwa-root { bottom: 14px; }
	.mhwa-pos-right { right: 14px; }
	.mhwa-pos-left { left: 14px; }
	.mhwa-button { height: 52px; min-width: 190px; padding: 0 24px 0 18px; }
	.mhwa-style-round { width: 56px; height: 56px; }
	.mhwa-box { width: calc(100vw - 28px); }
}
@media (prefers-reduced-motion: reduce) {
	.mhwa-box, .mhwa-enter .mhwa-button { animation: none; }
	.mhwa-button { transition: none; }
}
