.fb-floating-widget, .fb-support-wrapper, .fb-message-wrapper {
	--fb-primary: linear-gradient(135deg, #7850bd 0%, #ac82f1 100%);
	--fb-admin-bg: #7850bd;
	--fb-user-bg: #f0f2f5;
	--fb-text-primary: #1c1e21;
}

.fb-support-wrapper,
.fb-message-wrapper {
	font-family: inherit;
}

.fb-support-wrapper {
	max-width: 800px;
	margin: 20px auto;
	padding: 16px;
	color: var(--fb-text-primary);
	/* overflow: hidden; */
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fb-support-header {
	padding: 12px;
	color: var(--fb-text-primary);
	border-radius: 24px;
	text-align: center;
}

.fb-support-header h3 {
	margin: 0;
	font-size: 1.2rem;
	margin-bottom: 16px !important;
	color: inherit !important;
}

.fb-support-header p {
	margin: 5px 0 0;
	opacity: 0.6;
	font-size: 0.9rem;
}

.fb-message-wrapper {
	background: #fff;
	border-radius: 32px;
	padding: 20px;
	padding-top: 0;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	position: relative;
}
.fb-message-wrapper::before {
	content: "";
	border-radius: inherit;
	position: absolute;
	inset: 0;
	box-shadow:
		inset 0 2px 2px rgba(0, 0, 0, 0.15),
		inset 0 -2px 2px rgba(0, 0, 0, 0.15);
	z-index: 2;
	pointer-events: none;
}

.fb-message-history {
	height: 350px;
	overflow-y: auto;
	padding-block: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #ffffff;
	border-radius: 12px 12px 0 0;
	margin-bottom: 16px;
	scroll-behavior: smooth;
}

.fb-message-history::-webkit-scrollbar {
	width: 6px;
}

.fb-message-history::-webkit-scrollbar-thumb {
	background: #ddd;
	border-radius: 10px;
}

.fb-msg-item {
	display: flex;
	width: 100%;
	animation: fbFadeIn 0.3s ease-out;
}

@keyframes fbFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fb-msg-user {
	justify-content: flex-start;
}

.fb-msg-admin {
	justify-content: flex-end;
}

.fb-msg-bubble {
	max-width: 75%;
	padding: 12px 18px;
	border-radius: 18px;
	position: relative;
	font-size: 0.9rem;
	line-height: 1.6;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.fb-msg-user .fb-msg-bubble {
	background: var(--fb-user-bg);
	color: var(--fb-text-primary);
	border-bottom-right-radius: 4px;
}

.fb-msg-admin .fb-msg-bubble {
	background: var(--fb-admin-bg);
	color: #fff;
	border-bottom-left-radius: 4px;
}

.fb-msg-time {
	display: block;
	font-size: 0.625rem;
	opacity: 0.6;
	margin-top: 8px;
	text-align: left;
}

.fb-message-input-area {
	display: flex;
	align-items: end;
	gap: 8px;
	background: #fff;
	border-radius: 32px;
}

.fb-message-text {
	flex-grow: 1;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	border-radius: 25px;
	border: 2px solid hsl(0, 0%, 88%);
	padding: 12px 20px;
	resize: none;
	background: #f0f2f5;
	transition: all 0.3s;
	outline: none;
	field-sizing: content;
	overflow: hidden;
}

.fb-message-text::placeholder {
	font-size: inherit;
	line-height: inherit;
}

.fb-message-text:focus {
	border-color: var(--fb-primary);
}

.fb-send-btn {
	background: var(--fb-primary);
	color: #fff;
	border: none;
	padding: 0 8px;
	width: 120px;
	height: 48px;
	border-radius: 25px;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-shrink: 0;
	font-weight: bold;
	box-shadow: 0 4px 20px -12px #0056ab;
	transition: box-shadow 0.4s ease;
}

.fb-send-btn:hover {
	box-shadow: 0 4px 20px -8px #0056ab;
}

.fb-send-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
	box-shadow: 0 4px 20px -8px #848484;
	transition: none;
}

.fb-spinner {
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: fb-spin 1s ease-in-out infinite;
}

@keyframes fb-spin {
	to {
		transform: rotate(360deg);
	}
}

.fb-support-notice {
	padding: 16px 20px;
	font-size: 0.8rem;
	opacity: 0.6;
	text-align: center;
}

/* استایل‌های مربوط به ارسال آنی (Optimistic UI) */
.fb-msg-sending .fb-msg-bubble {
	opacity: 0.5;
	transition: opacity 0.3s ease;
}

.fb-msg-failed {
	animation: fbFadeOut 0.4s forwards ease-in !important;
}

@keyframes fbFadeOut {
	from {
		opacity: 1;
		transform: scale(1);
		max-height: 200px;
	}

	to {
		opacity: 0;
		transform: scale(0.8);
		max-height: 0;
		margin: 0;
		padding: 0;
		overflow: hidden;
	}
}

/* استایل نشان پیام‌های خوانده‌نشده در منوی ووکامرس */
.fb-unread-badge {
	background-color: #ff3b30;
	color: #ffffff;
	font-size: 11px;
	font-weight: bold;
	padding: 2px 8px;
	border-radius: 12px;
	margin-right: 8px;
	display: inline-block;
	vertical-align: middle;
	line-height: 1.4;
	box-shadow: 0 2px 6px rgba(255, 59, 48, 0.3);
}

.fb-badge-fade-in {
	animation: fbBadgeFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	transform-origin: center right;
}

@keyframes fbBadgeFadeIn {
	from {
		opacity: 0;
		transform: scale(0.6) translateY(2px);
	}

	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

/* خط افقی جداکننده پیام‌های جدید با گرادیان زیبا */
.fb_unread_divider {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 20px 0;
	position: relative;
	width: 100%;
	animation: fbFadeIn 0.5s ease-out;
	box-shadow: none;
	border-color: #ddd;
}

.fb_unread_divider::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, #c3c3c3 50%, transparent);
	z-index: 1;
}

/* متن نشان‌دهنده پیام جدید با استایل متناسب */
.fb_unread_divider_text {
	background: #eee;
	color: #656565;
	font-size: 0.6rem;
	font-weight: bold;
	padding: 4px 8px;
	border-radius: 20px;
	position: relative;
	z-index: 2;
	border: 1px solid #ddd;
}

@media (width < 768px) {
	.fb-message-wrapper {
		padding: 0 8px 8px 8px;
	}
	#fb-send-btn {
		width: 60px;
	}

	.fb-btn-text {
		display: none;
	}
}

/* =========================================================
 * Floating support widget - v1.2.3
 * ======================================================= */
.fb-floating-widget,
.fb-floating-widget * {
    box-sizing: border-box;
}

.fb-floating-widget {
    position: fixed;
    bottom: 24px;
    z-index: 2147482000;
    direction: rtl;
    font-family: inherit;
    --fb-panel-height: min(480px, calc(100vh - 170px));
}

.fb-floating-widget.fb-floating-right { right: 24px; }
.fb-floating-widget.fb-floating-left { left: 24px; }

html.fb-support-chat-open,
body.fb-support-chat-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

body.fb-support-chat-open {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

.fb-floating-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147481000;
    background: rgba(15, 23, 42, .46);
    -webkit-backdrop-filter: blur(1.5px);
    backdrop-filter: blur(1.5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.fb-floating-overlay.fb-floating-overlay-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fb-floating-launcher {
    min-width: 58px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: var(--fb-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    box-shadow: 0 12px 34px rgba(0, 132, 255, .28), 0 4px 12px rgba(0, 0, 0, .12);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease, bottom .24s ease;
    position: relative;
}

.fb-floating-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(0, 132, 255, .32), 0 5px 14px rgba(0, 0, 0, .14);
}

.fb-floating-launcher:focus-visible,
.fb-floating-close:focus-visible {
    outline: 3px solid rgba(0, 132, 255, .25);
    outline-offset: 3px;
}

.fb-floating-launcher-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
}

.fb-floating-launcher-icon svg {
    grid-area: 1 / 1;
    transition: opacity .18s ease, transform .18s ease;
}

.fb-floating-launcher .fb-icon-close,
.fb-floating-open .fb-floating-launcher .fb-icon-chat {
    opacity: 0;
    transform: scale(.7) rotate(-25deg);
}

.fb-floating-open .fb-floating-launcher .fb-icon-close {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* هنگام باز بودن، همان Launcher به دکمه بستن بالای پنجره تبدیل می‌شود. */
.fb-floating-open .fb-floating-launcher {
    position: fixed;
    bottom: calc(24px + 72px + var(--fb-panel-height) + 12px);
    width: 58px;
    min-width: 58px;
    padding: 0;
    z-index: 2147482100;
}

.fb-floating-open.fb-floating-right .fb-floating-launcher { right: 24px; }
.fb-floating-open.fb-floating-left .fb-floating-launcher { left: 24px; }
.fb-floating-open .fb-floating-launcher-text { display: none; }

.fb-floating-unread {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(239, 68, 68, .3);
}

.fb-floating-unread[hidden] { display: none !important; }

.fb-floating-panel {
    position: absolute;
    bottom: 72px;
    width: min(390px, calc(100vw - 32px));
    height: var(--fb-panel-height);
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .20), 0 8px 24px rgba(15, 23, 42, .10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(.97);
    transform-origin: bottom center;
    transition: opacity .2s ease, transform .22s ease, visibility .2s ease;
}

.fb-floating-right .fb-floating-panel { right: 0; }
.fb-floating-left .fb-floating-panel { left: 0; }

.fb-floating-open .fb-floating-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.fb-floating-header {
    min-height: 82px;
    padding: 16px;
    background: linear-gradient(135deg, #087cf0 0%, #00b7f4 100%);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
}

.fb-floating-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .2);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.fb-floating-heading {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fb-floating-heading strong {
    color: #fff !important;
    margin: 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.fb-floating-heading span {
    color: rgba(255,255,255,.86);
    font-family: inherit;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.6;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fb-floating-heading span i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6ee7b7;
    margin-left: 6px;
    box-shadow: 0 0 0 3px rgba(110, 231, 183, .18);
}

.fb-floating-close {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,.13);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex: 0 0 auto;
}

.fb-floating-chat-body {
    min-height: 0;
    flex: 1;
    display: flex;
}

.fb-floating-widget .fb-message-wrapper {
    width: 100%;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.fb-floating-widget .fb-message-wrapper::before { display: none; }

.fb-floating-widget .fb-message-history {
    height: auto;
    min-height: 0;
    flex: 1;
    margin: 0;
    padding: 18px 14px;
    border-radius: 0;
    background: #f8fafc;
    gap: 9px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.fb-floating-widget .fb-msg-bubble {
    max-width: 82%;
    padding: 10px 13px;
    border-radius: 15px;
    font-size: 13px;
    line-height: 1.75;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}

.fb-floating-widget .fb-msg-user .fb-msg-bubble {
    background: #fff;
    border: 1px solid #e5e7eb;
}

.fb-floating-widget .fb-msg-admin .fb-msg-bubble {
    background: #0786f5;
}

.fb-floating-widget .fb-message-input-area {
    padding: 12px;
    border-radius: 0;
    border-top: 1px solid #eef2f7;
    align-items: flex-end;
    flex: 0 0 auto;
}

.fb-floating-widget .fb-message-text {
    min-height: 44px;
    max-height: 110px;
    padding: 10px 14px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #f8fafc;
}

.fb-floating-widget .fb-send-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    box-shadow: none;
}

.fb-floating-widget .fb-btn-text { display: none; }
.fb-floating-widget .fb-send-icon { display: inline-flex; }
.fb-floating-widget .fb-spinner { display: none; }
.fb-send-btn.fb-is-loading .fb-send-icon,
.fb-send-btn.fb-is-loading .fb-btn-text { display: none !important; }
.fb-send-btn.fb-is-loading .fb-spinner { display: block; }

.fb-floating-notice {
    display: none;
    padding: 7px 14px 9px;
    background: #fff;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-family: inherit;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.6;
    flex: 0 0 auto;
}

/* حالت شورت‌کد بعد از کلاس‌محور شدن مارکاپ */
.fb-chat-instance .fb-spinner { display: none; }
.fb-chat-instance .fb-send-btn.fb-is-loading .fb-spinner { display: block; }
.fb-chat-instance .fb-send-btn.fb-is-loading .fb-send-icon,
.fb-chat-instance .fb-send-btn.fb-is-loading .fb-btn-text { display: none; }

@media (max-width: 767px) {
    .fb-floating-widget {
        bottom: 90px;
        --fb-panel-height: min(56vh, 460px);
    }
    .fb-floating-widget.fb-floating-right { right: 16px; }
    .fb-floating-widget.fb-floating-left { left: 16px; }

    .fb-floating-launcher {
        width: 58px;
        min-width: 58px;
        padding: 0;
    }
    .fb-floating-launcher-text { display: none; }

    .fb-floating-open .fb-floating-launcher {
        bottom: calc(86px + var(--fb-panel-height) + 12px);
    }
    .fb-floating-open.fb-floating-right .fb-floating-launcher { right: 16px; }
    .fb-floating-open.fb-floating-left .fb-floating-launcher { left: 16px; }

    .fb-floating-panel {
        position: fixed;
        left: 12px !important;
        right: 12px !important;
        bottom: 86px;
        width: auto;
        height: var(--fb-panel-height);
        border-radius: 22px;
        transform-origin: bottom center;
    }

    .fb-floating-widget .fb-message-wrapper {
        padding: 0;
    }

    .fb-floating-widget .fb-send-btn {
        width: 44px;
    }
}

@media (max-width: 420px) {
    .fb-floating-panel {
        left: 8px !important;
        right: 8px !important;
        bottom: 82px;
        height: var(--fb-panel-height);
    }
    .fb-floating-open .fb-floating-launcher {
        bottom: calc(82px + var(--fb-panel-height) + 12px);
    }
    .fb-floating-header { min-height: 76px; padding: 13px; }
    .fb-floating-heading span { max-width: 230px; }
}
@media (max-width: 767px) {
    .fb-chat-instance[data-chat-mode="shortcode"] .fb-send-btn { width: 60px; }
    .fb-chat-instance[data-chat-mode="shortcode"] .fb-btn-text { display: none; }
}

.fb-send-btn:focus-visible,.fb-floating-launcher:focus-visible,.fb-floating-close:focus-visible{outline:3px solid #b08be9;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.fb-floating-widget *,.fb-message-wrapper *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Solar Broken icons from the locally bundled original library. */
.fb-floating-widget .hm-icon,.fb-chat-instance .hm-icon{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;flex-shrink:0}
.fb-floating-widget .hm-icon svg,.fb-chat-instance .hm-icon svg{width:100%;height:100%;display:block}
.fb-floating-widget .hm-icon [stroke],.fb-chat-instance .hm-icon [stroke]{stroke:currentColor}
.fb-floating-widget .hm-icon [fill]:not([fill="none"]),.fb-chat-instance .hm-icon [fill]:not([fill="none"]){fill:currentColor}
.fb-floating-launcher-icon>.hm-icon{grid-area:1 / 1;transition:opacity .18s ease,transform .18s ease}
.fb-send-icon>.hm-icon{width:18px;height:18px}
/* Hooshmand appearance: validated local CSS variables, shared by preview and site. */
.fb-floating-widget .fb-floating-launcher{background:linear-gradient(135deg,var(--hm-launch-bg),var(--hm-launch-end));color:var(--hm-launch-text);border:1px solid var(--hm-launch-border);box-shadow:0 10px 28px -12px var(--hm-launch-shadow)}
.fb-floating-widget .fb-floating-launcher:hover{background:linear-gradient(135deg,var(--hm-launch-hover),var(--hm-launch-hover-end));color:var(--hm-launch-text);box-shadow:0 14px 32px -10px var(--hm-launch-shadow)}
.fb-floating-launcher .fb-floating-launcher-icon{color:var(--hm-launch-icon)}
.fb-floating-widget .fb-floating-unread{background:var(--hm-badge-bg);color:var(--hm-badge-text);border-color:var(--hm-launch-border)}
.fb-floating-widget .fb-floating-panel,.fb-chat-instance[class*="hm-chat-"],.fb-floating-widget .fb-message-wrapper,.fb-floating-widget .fb-message-history,.fb-chat-instance .fb-message-history,.fb-floating-widget .fb-message-input-area,.fb-chat-instance .fb-message-input-area{background:var(--hm-panel);color:var(--hm-text);border-color:var(--hm-border)}
.fb-floating-widget .fb-floating-header{background:linear-gradient(135deg,var(--hm-header),var(--hm-header-end));color:var(--hm-header-text);border-bottom:1px solid var(--hm-border)}
.fb-floating-widget .fb-floating-heading strong{color:var(--hm-header-text)!important}
.fb-floating-widget .fb-floating-heading span{color:var(--hm-header-text);opacity:.85}
.fb-floating-widget .fb-floating-close{background:var(--hm-close-bg);color:var(--hm-close-text)}
.fb-floating-widget .fb-msg-user .fb-msg-bubble,.fb-chat-instance .fb-msg-user .fb-msg-bubble{background:var(--hm-user-bg);color:var(--hm-user-text);border:1px solid var(--hm-border)}
.fb-floating-widget .fb-msg-admin .fb-msg-bubble,.fb-chat-instance .fb-msg-admin .fb-msg-bubble{background:var(--hm-admin-bg);color:var(--hm-admin-text)}
.fb-floating-widget .fb-message-text,.fb-chat-instance .fb-message-text{background:var(--hm-input-bg);color:var(--hm-input-text);border-color:var(--hm-border);min-width:0;width:100%;overflow-y:auto;max-height:110px}
.fb-floating-widget .fb-message-text::placeholder,.fb-chat-instance .fb-message-text::placeholder{color:var(--hm-placeholder);opacity:1}
.fb-floating-widget .fb-send-btn,.fb-chat-instance .fb-send-btn{background:var(--hm-send-bg);color:var(--hm-send-text);box-shadow:none}
.fb-floating-widget .fb-send-btn:hover,.fb-chat-instance .fb-send-btn:hover{background:var(--hm-send-hover);color:var(--hm-send-text)}
.fb-floating-widget .fb-send-btn:disabled,.fb-chat-instance .fb-send-btn:disabled{opacity:.5;cursor:wait}
.fb-floating-widget :is(button,textarea):focus-visible,.fb-chat-instance :is(button,textarea):focus-visible{outline:3px solid var(--hm-focus);outline-offset:2px}
.fb-floating-widget .fb-message-text:focus,.fb-chat-instance .fb-message-text:focus{border-color:var(--hm-focus)}
.fb-floating-overlay{background:var(--hm-overlay,#171225);opacity:0}
.fb-floating-overlay.fb-floating-overlay-open{opacity:.46}
.fb-msg-bubble{overflow-wrap:anywhere}
.fb-chat-status:empty{display:none}
.fb-chat-status{font-size:12px;padding:8px 12px;background:var(--hm-panel);color:var(--hm-text);border-top:1px solid var(--hm-border)}
/* Four chat structures: classic, glass, soft and minimal. */
.hm-chat-glass .fb-floating-panel{border-radius:28px;border:1px solid var(--hm-border);box-shadow:0 28px 80px #120e2966;backdrop-filter:blur(24px)}
.hm-chat-glass .fb-floating-header{background:linear-gradient(135deg,var(--hm-header),var(--hm-header-end));padding-block:24px}
.hm-chat-glass .fb-msg-bubble{border-radius:18px;box-shadow:0 5px 14px #00000014}
.hm-chat-glass .fb-message-input-area{border-radius:18px;margin:0 8px 8px;width:auto;border:1px solid var(--hm-border)}
.hm-chat-glass .fb-floating-header-icon{border-radius:50%}
.hm-chat-soft .fb-floating-panel{border-radius:32px}
.hm-chat-soft .fb-floating-header{margin:12px 12px 0;border-radius:24px;border:0;padding:20px 14px}
.hm-chat-soft .fb-msg-bubble,.hm-chat-soft .fb-message-text{border-radius:24px}
.hm-chat-soft .fb-send-btn{border-radius:50%}
.hm-chat-soft .fb-message-input-area{margin:0 8px 8px;border-radius:24px;border:0}
.hm-chat-minimal .fb-floating-panel,.fb-chat-instance.hm-chat-minimal{border-radius:10px;box-shadow:0 8px 24px #00000014}
.hm-chat-minimal .fb-floating-header{min-height:68px;padding:14px}
.hm-chat-minimal .fb-floating-header-icon{display:none}
.hm-chat-minimal .fb-msg-bubble{border-radius:6px;box-shadow:none}
.hm-chat-minimal .fb-message-text,.hm-chat-minimal .fb-send-btn,.hm-chat-minimal .fb-floating-close{border-radius:6px}
.fb-chat-instance.hm-chat-glass{border-radius:28px;padding-top:8px}
.fb-chat-instance.hm-chat-soft{border-radius:32px;padding-top:8px}
/* Four independent launcher models. Mobile retains compact touch targets. */
.hm-launch-circle .fb-floating-launcher{width:60px;height:60px;min-width:60px;border-radius:50%;padding:0}
.hm-launch-square .fb-floating-launcher{width:60px;height:60px;min-width:60px;border-radius:18px;padding:0}
.hm-launch-circle .fb-floating-launcher-text,.hm-launch-square .fb-floating-launcher-text{display:none}
.hm-launch-glass .fb-floating-launcher{border-radius:18px;border-width:2px;backdrop-filter:blur(18px);background:linear-gradient(135deg,var(--hm-launch-bg),var(--hm-launch-end));box-shadow:inset 0 2px 2px #ffffff55,0 10px 28px -12px var(--hm-launch-shadow)}
@supports(background:color-mix(in srgb,red,transparent)){
 .hm-launch-glass .fb-floating-launcher{background:linear-gradient(135deg,color-mix(in srgb,var(--hm-launch-bg) 80%,transparent),color-mix(in srgb,var(--hm-launch-end) 65%,transparent))}
 .hm-launch-glass .fb-floating-launcher:hover{background:linear-gradient(135deg,color-mix(in srgb,var(--hm-launch-hover) 85%,transparent),color-mix(in srgb,var(--hm-launch-hover-end) 75%,transparent))}
 .hm-chat-glass .fb-floating-panel{background:color-mix(in srgb,var(--hm-panel) 88%,transparent)}
 .hm-chat-glass .fb-floating-chat-body,.hm-chat-glass .fb-message-wrapper,.hm-chat-glass .fb-message-history{background:transparent}
}


/* Mobile side is independent from desktop, including the open-state launcher. */
@media (max-width: 767px) {
    .fb-floating-widget.fb-mobile-right { right: 16px; left: auto; }
    .fb-floating-widget.fb-mobile-left { left: 16px; right: auto; }
    .fb-floating-widget.fb-floating-open.fb-mobile-right .fb-floating-launcher { right: 16px; left: auto; }
    .fb-floating-widget.fb-floating-open.fb-mobile-left .fb-floating-launcher { left: 16px; right: auto; }
}
