/* Tawk hub bubble suppression + maximized panel positioning (externalized from inline head). */

html.rat-tawk-suppress-bubble:not(.rat-tawk-chat-open) #tawkchat-minified-wrapper,
html.rat-tawk-suppress-bubble:not(.rat-tawk-chat-open) #tawkchat-minified-container,
html.rat-tawk-suppress-bubble:not(.rat-tawk-chat-open) #tawkchat-minified-box,
html.rat-tawk-suppress-bubble:not(.rat-tawk-chat-open) .tawk-min-container,
html.rat-tawk-suppress-bubble:not(.rat-tawk-chat-open) .tawk-button,
html.rat-tawk-suppress-bubble:not(.rat-tawk-chat-open) .tawk-minimized {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	width: 0 !important;
	height: 0 !important;
	max-width: 0 !important;
	max-height: 0 !important;
	overflow: hidden !important;
	position: fixed !important;
	left: -9999px !important;
	bottom: -9999px !important;
	z-index: -1 !important;
}

body.rat-global-tawk-hub:not(.rat-tawk-chat-open) #tawkchat-minified-wrapper,
body.rat-global-tawk-hub:not(.rat-tawk-chat-open) #tawkchat-minified-container,
body.rat-global-tawk-hub:not(.rat-tawk-chat-open) #tawkchat-minified-box,
body.rat-global-tawk-hub:not(.rat-tawk-chat-open) .tawk-min-container,
body.rat-global-tawk-hub:not(.rat-tawk-chat-open) .tawk-button,
body.rat-global-tawk-hub:not(.rat-tawk-chat-open) .tawk-minimized,
body.rat-global-tawk-hub:not(.rat-tawk-chat-open) #tawkchat-minified-wrapper iframe,
body.rat-global-tawk-hub:not(.rat-tawk-chat-open) #tawkchat-minified-container iframe,
body.rat-listing-tawk-hub:not(.rat-tawk-chat-open) #tawkchat-minified-wrapper,
body.rat-listing-tawk-hub:not(.rat-tawk-chat-open) #tawkchat-minified-container,
body.rat-listing-tawk-hub:not(.rat-tawk-chat-open) #tawkchat-minified-box,
body.rat-listing-tawk-hub:not(.rat-tawk-chat-open) .tawk-min-container,
body.rat-listing-tawk-hub:not(.rat-tawk-chat-open) .tawk-button,
body.rat-listing-tawk-hub:not(.rat-tawk-chat-open) .tawk-minimized {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	max-width: 0 !important;
	max-height: 0 !important;
	overflow: hidden !important;
	z-index: -1 !important;
}

body.rat-maximos-bar-visible #rat-global-contact-bar,
body.rat-has-global-contact-bar:not(.rat-tawk-chat-open) #rat-global-contact-bar {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	transform: none !important;
	display: block !important;
	z-index: 2147483000 !important;
}

body.rat-has-global-contact-bar.rat-tawk-chat-open #rat-global-contact-bar {
	z-index: 9990 !important;
}

body.rat-tawk-chat-open #tawkchat-maximized-wrapper,
body.rat-tawk-chat-open #tawkchat-maximized-container {
	display: block !important;
	visibility: visible !important;
	pointer-events: auto !important;
	opacity: 1 !important;
	z-index: 99995 !important;
}

body:not(.rat-tawk-chat-open) #tawkchat-maximized-wrapper,
body:not(.rat-tawk-chat-open) #tawkchat-maximized-container {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
	opacity: 0 !important;
}

@media (min-width: 993px) {
	body.rat-tawk-chat-open #tawkchat-maximized-wrapper,
	body.rat-tawk-chat-open #tawkchat-maximized-container {
		right: 18px !important;
		left: auto !important;
		bottom: 18px !important;
		max-height: min(520px, calc(100vh - 36px)) !important;
	}

	body.rat-has-global-contact-bar.rat-tawk-chat-open #tawkchat-container,
	body.rat-has-global-contact-bar.rat-tawk-chat-open #tawkchat-maximized-wrapper,
	body.rat-has-global-contact-bar.rat-tawk-chat-open #tawkchat-maximized-container {
		bottom: var(--rat-global-contact-bar-tawk-bottom, 88px) !important;
		max-height: min(520px, max(240px, calc(100vh - var(--rat-global-contact-bar-tawk-bottom, 88px) - 20px))) !important;
		z-index: 100000 !important;
	}

	body.rat-has-global-contact-bar.rat-tawk-chat-open #tawkchat-minified-wrapper,
	body.rat-has-global-contact-bar.rat-tawk-chat-open #tawkchat-minified-container,
	body.rat-has-global-contact-bar.rat-tawk-chat-open #tawkchat-minified-box,
	body.rat-has-global-contact-bar.rat-tawk-chat-open .tawk-min-container,
	body.rat-has-global-contact-bar.rat-tawk-chat-open .tawk-button,
	body.rat-has-global-contact-bar.rat-tawk-chat-open .tawk-minimized {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}
}

@media (max-width: 992px) {
	body.rat-tawk-chat-open:not(.rat-has-global-contact-bar) #tawkchat-maximized-wrapper,
	body.rat-tawk-chat-open:not(.rat-has-global-contact-bar) #tawkchat-maximized-container {
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		max-height: min(72vh, calc(100vh - env(safe-area-inset-bottom, 0px))) !important;
	}

	body.rat-has-global-contact-bar.rat-tawk-chat-open #tawkchat-container,
	body.rat-has-global-contact-bar.rat-tawk-chat-open #tawkchat-maximized-wrapper,
	body.rat-has-global-contact-bar.rat-tawk-chat-open #tawkchat-maximized-container {
		left: 12px !important;
		right: 12px !important;
		margin-left: auto !important;
		margin-right: auto !important;
		width: min(360px, calc(100vw - 24px)) !important;
		max-width: min(360px, calc(100vw - 24px)) !important;
		bottom: var(--rat-global-contact-bar-tawk-bottom, 88px) !important;
		max-height: min(58vh, max(220px, calc(100vh - var(--rat-global-contact-bar-tawk-bottom, 88px) - 20px))) !important;
		z-index: 100000 !important;
	}

	body.rat-has-global-contact-bar.rat-tawk-chat-open #tawkchat-minified-wrapper,
	body.rat-has-global-contact-bar.rat-tawk-chat-open #tawkchat-minified-container,
	body.rat-has-global-contact-bar.rat-tawk-chat-open #tawkchat-minified-box,
	body.rat-has-global-contact-bar.rat-tawk-chat-open .tawk-min-container,
	body.rat-has-global-contact-bar.rat-tawk-chat-open .tawk-button,
	body.rat-has-global-contact-bar.rat-tawk-chat-open .tawk-minimized {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}
}
