/* Base tokens */
:root {
	--smsi-teal: #0d6f78; /* header / brand teal (adjust if needed) */
	--smsi-teal-600: #0b6169;
	--smsi-white: #fff;
	--smsi-text: #1a1a1a;
	--smsi-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
	--smsi-radius: 8px;
}

/* Floating bubble (bottom-right) */

@media screen and (max-width: 767px) {
	body:has(.sticky-footer-wrap) #sm-conversive-button-container {
		bottom: 90px !important;
	}
	body:has(.sticky-footer-wrap) .smsi-bubble {
		bottom: 90px !important;
	}
	body:has(.sticky-footer-wrap) .smsi-tooltip {
		bottom: 90px !important;
	}
}

.smsi-bubble {
	position: fixed;
	right: 24px;
	bottom: 35px;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: var(--smsi-teal);
	color: var(--smsi-white);
	display: grid;
	place-items: center;
	border: 0;
	cursor: pointer;
	box-shadow: var(--smsi-shadow);
	z-index: 97;
}
.smsi-bubble:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
.smsi-bubble .smsi-icon {
	width: 28px;
	height: 28px;
}

/* Dim overlay */
.smsi-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 9997;
}

/* Drawer / panel */
.smsi-modal {
	position: fixed;
	right: 24px;
	bottom: 96px; /* sits above the bubble */
	width: 380px;
	max-width: calc(100% - 32px);
	background: var(--smsi-white);
	border-radius: var(--smsi-radius);
	box-shadow: var(--smsi-shadow);
	z-index: 10000000000000000001; /* higher than bubble */
;
	overflow: hidden;
	transform: translateY(8px);
	transition: transform 0.18s ease, opacity 0.18s ease;
	opacity: 0;
}
.smsi-widget.is-open .smsi-modal {
	transform: translateY(0);
	opacity: 1;
}

/* Header */
.smsi-modal__header {
	display: grid;
	grid-template-columns: 44px 1fr 44px;
	align-items: center;
	column-gap: 4px;
	background: var(--smsi-teal);
	color: var(--smsi-white);
	padding: 10px 8px;
}
.smsi-modal__title {
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	margin: 0;
	line-height: 1.2;
}
.smsi-back,
.smsi-close {
	appearance: none;
	border: 0;
	background: transparent;
	color: #fff;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	cursor: pointer;
}

.smsi-close svg,
.smsi-back svg {
	fill: currentColor;
}

#chat-icon {
	border-radius: 100%;
	border-width: 0;
}

/* Body */
.smsi-modal__body {
	padding: 16px;
	color: var(--smsi-text);
}
.smsi-closed-msg {
	font-size: 15px;
	line-height: 1.45;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Tooltip container */
.smsi-tooltip {
	position: fixed;
	right: 90px; /* offset from bubble */
	bottom: 25px;
	background: #fff;
	color: #000;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	max-width: 220px;
	z-index: 98; 
	cursor: pointer; /* makes it visually clickable */
	font-weight: 500;
}

/* Close (x) button inside tooltip */
.smsi-tooltip-close {
	position: absolute;
	top: 4px;
	right: 6px;
	background: transparent;
	border: 0;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}
