/* Ovancare Facebook Live Chat Widget (scoped under #ovancare-fbchat) */

#ovancare-fbchat {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 2147483000;
	font-family: "SF Pro Display", "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	line-height: 1.45;
	color: #1c2b33;
}

#ovancare-fbchat *,
#ovancare-fbchat *::before,
#ovancare-fbchat *::after {
	box-sizing: border-box;
}

/* Keep Flatsome back-to-top button clear above the chat launcher on desktop */
body a.back-to-top#top-link {
	right: 29px;
	bottom: 92px;
}

.ovancare-fbchat__launcher-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.ovancare-fbchat__pill {
	display: inline-flex;
	align-items: center;
	background: #ffffff;
	border: 1px solid rgba(2, 127, 145, 0.16);
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(15, 36, 46, 0.14);
	padding: 2px 6px 2px 14px;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ovancare-fbchat__pill.is-hidden {
	display: none;
}

#ovancare-fbchat .ovancare-fbchat__pill-text,
#ovancare-fbchat .ovancare-fbchat__pill-dismiss {
	appearance: none;
	border: 0;
	background: transparent;
	margin: 0;
	padding: 0;
	min-height: 0;
	min-width: 0;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
	font-family: inherit;
}

#ovancare-fbchat .ovancare-fbchat__pill-text {
	color: #0f2c33;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 6px 6px 0;
	white-space: nowrap;
}

#ovancare-fbchat .ovancare-fbchat__pill-dismiss {
	color: #6b7c85;
	font-size: 16px;
	line-height: 1;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#ovancare-fbchat .ovancare-fbchat__pill-dismiss:hover {
	background: #f1f5f7;
	color: #1c2b33;
}

#ovancare-fbchat .ovancare-fbchat__launcher {
	position: relative;
	width: 56px;
	height: 56px;
	min-width: 56px;
	min-height: 56px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(135deg, #0099ff 0%, #0066ff 100%);
	color: #ffffff;
	box-shadow: 0 10px 28px rgba(0, 118, 255, 0.36);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#ovancare-fbchat .ovancare-fbchat__launcher:hover {
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 14px 32px rgba(0, 118, 255, 0.44);
}

#ovancare-fbchat .ovancare-fbchat__launcher:focus-visible {
	outline: 3px solid rgba(2, 127, 145, 0.45);
	outline-offset: 2px;
}

.ovancare-fbchat__badge {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: #ef4444;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	line-height: 19px;
	text-align: center;
	border: 2px solid #ffffff;
	pointer-events: none;
}

.ovancare-fbchat__icon-close {
	display: none;
}

#ovancare-fbchat.is-open .ovancare-fbchat__icon-msg,
#ovancare-fbchat.is-open .ovancare-fbchat__badge,
#ovancare-fbchat.is-open .ovancare-fbchat__pill {
	display: none;
}

#ovancare-fbchat.is-open .ovancare-fbchat__icon-close {
	display: block;
}

/* Dialog Panel */
.ovancare-fbchat__dialog {
	position: fixed;
	right: 24px;
	bottom: 92px;
	z-index: 2147483001;
	width: 356px;
	max-width: calc(100vw - 32px);
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 18px 48px rgba(10, 34, 46, 0.22);
	border: 1px solid rgba(2, 127, 145, 0.14);
	overflow: hidden;
	opacity: 0;
	transform: translate3d(0, 12px, 0);
	will-change: transform, opacity;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ovancare-fbchat__dialog:not([hidden]) {
	display: flex;
	flex-direction: column;
}

#ovancare-fbchat.is-open .ovancare-fbchat__dialog {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	isolation: isolate;
}

.ovancare-fbchat__header {
	background: linear-gradient(135deg, #027f91 0%, #0078ff 100%);
	color: #ffffff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ovancare-fbchat__brand {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
}

.ovancare-fbchat__avatar {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ovancare-fbchat__online-dot {
	position: absolute;
	right: 1px;
	bottom: 1px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #22c55e;
	border: 2px solid #027f91;
}

.ovancare-fbchat__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

#ovancare-fbchat .ovancare-fbchat__title {
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#ovancare-fbchat .ovancare-fbchat__title:hover {
	text-decoration: underline;
}

.ovancare-fbchat__status {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.9);
}

#ovancare-fbchat .ovancare-fbchat__close {
	appearance: none;
	margin: 0;
	padding: 0;
	min-height: 0;
	min-width: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
	font-size: 20px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	box-shadow: none;
}

#ovancare-fbchat .ovancare-fbchat__close:hover {
	background: rgba(255, 255, 255, 0.28);
}

.ovancare-fbchat__body {
	background: #f5f9fa;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ovancare-fbchat__bubble {
	background: #ffffff;
	border-radius: 14px 14px 14px 4px;
	padding: 11px 13px;
	box-shadow: 0 2px 8px rgba(15, 36, 46, 0.06);
	border: 1px solid rgba(2, 127, 145, 0.08);
}

.ovancare-fbchat__bubble p {
	margin: 0 0 6px;
	font-size: 13.5px;
	color: #1c2b33;
}

.ovancare-fbchat__time {
	display: block;
	font-size: 11px;
	color: #6b7c85;
}

.ovancare-fbchat__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

#ovancare-fbchat .ovancare-fbchat__chip {
	appearance: none;
	margin: 0;
	min-height: 0;
	min-width: 0;
	padding: 6px 11px;
	border-radius: 999px;
	border: 1px solid rgba(2, 127, 145, 0.3);
	background: #ffffff;
	color: #027f91;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.3;
	cursor: pointer;
	box-shadow: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#ovancare-fbchat .ovancare-fbchat__chip:hover {
	background: #027f91;
	border-color: #027f91;
	color: #ffffff;
}

.ovancare-fbchat__footer {
	background: #ffffff;
	padding: 12px 14px 13px;
	border-top: 1px solid #e7eff2;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ovancare-fbchat__form {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

#ovancare-fbchat .ovancare-fbchat__input {
	flex: 1 1 auto;
	margin: 0;
	padding: 9px 13px;
	height: 38px;
	min-height: 38px;
	border-radius: 999px;
	border: 1px solid #d5e2e6;
	background: #f8fbfc;
	color: #1c2b33;
	font-family: inherit;
	font-size: 13.5px;
	box-shadow: none;
	outline: none;
}

#ovancare-fbchat .ovancare-fbchat__input:focus {
	border-color: #0078ff;
	background: #ffffff;
}

#ovancare-fbchat .ovancare-fbchat__send {
	appearance: none;
	margin: 0;
	padding: 0;
	width: 38px;
	height: 38px;
	min-width: 38px;
	min-height: 38px;
	border-radius: 50%;
	border: 0;
	background: #0078ff;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: none;
	flex-shrink: 0;
}

#ovancare-fbchat .ovancare-fbchat__send:hover {
	background: #0062d6;
}

.ovancare-fbchat__links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

#ovancare-fbchat .ovancare-fbchat__cta {
	width: 100%;
	padding: 9px 14px;
	border-radius: 10px;
	background: linear-gradient(135deg, #0099ff 0%, #0066ff 100%);
	color: #ffffff;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	transition: filter 0.15s ease;
}

#ovancare-fbchat .ovancare-fbchat__cta:hover {
	filter: brightness(1.06);
	color: #ffffff;
}

#ovancare-fbchat .ovancare-fbchat__pagelink {
	font-size: 11.5px;
	color: #027f91;
	text-decoration: none;
}

#ovancare-fbchat .ovancare-fbchat__pagelink:hover {
	text-decoration: underline;
}

@media (max-width: 600px) {
	/* Stay cleanly above the 60px fixed .giuseart-nav mobile bottom bar */
	#ovancare-fbchat {
		right: 14px;
		bottom: 76px;
	}

	.ovancare-fbchat__pill {
		display: none;
	}

	#ovancare-fbchat .ovancare-fbchat__launcher {
		width: 50px;
		height: 50px;
		min-width: 50px;
		min-height: 50px;
	}

	.ovancare-fbchat__dialog {
		right: 14px;
		bottom: 136px;
		width: calc(100vw - 28px);
		max-height: calc(100vh - 160px);
	}

	.ovancare-fbchat__body {
		overflow-y: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	#ovancare-fbchat .ovancare-fbchat__launcher,
	.ovancare-fbchat__dialog,
	.ovancare-fbchat__pill {
		transition: none;
	}
}
