chatbot.css
#sm-chat-root * {
  box-sizing: border-box;
}
#sm-chat-root {
	--red: #0674c1;
	--bg: #ffffff;
	--panel: #f7f7f7;
	--text: #202020;
	--muted: #7a8291;
	--user: #eceff2;
	--border: #dfe3e8;
	--chip: #ffffff;
	--chip-border: #d7dce2;
	--mw-text-secondary: #cbd5e1;
	--mw-success-soft: #10b981;
	--mw-primary-soft: #638ac5;
	--mw-primary-soft-light: #133f70;
    --light-color:#1a82bb;
    --light2-color:#4db8e8;
}


#sm-chat-root .open-chat-btn {
  border: none;
  background: linear-gradient(130deg, #00669a 0%, #1a82bb 55%, #4db8e8 150%);
  background-size: 200% 200%;
  color: #fff;
  padding: 13px 22px 13px 16px;
  border-radius: 56px;
  font-family: inherit;
  font-size: clamp(12px, 2vw, 15px);
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 8px 32px rgba(0,102,154,0.40),
    0 2px 8px rgba(0,102,154,0.20),
    inset 0 1px 0 rgba(255,255,255,0.22);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .3s, background-position .4s;
  animation: sm-zoomIn 0.4s ease-out, sm-heartbeat 2s 0.5s infinite;
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 12px;
  z-index: 9998;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#sm-chat-root .open-chat-btn:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 18px 48px rgba(0,102,154,0.46), 0 4px 14px rgba(0,102,154,0.25);
  background-position: right center;
}

#sm-chat-root .open-chat-btn:active {
  transform: scale(.96);
}

#sm-chat-root .fab-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .3s;
}

#sm-chat-root .open-chat-btn:hover .fab-icon-wrap {
  background: rgba(255,255,255,0.30);
}

#sm-chat-root .fab-icon-wrap svg {
  width: 19px;
  height: 19px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#sm-chat-root .fab-label-wrap {
  line-height: 1.25;
}

#sm-chat-root .fab-sub-label {
  display: block;
  font-size: 10px;
  font-weight: 400;
  opacity: .78;
  letter-spacing: .03em;
  margin-top: 2px;
}

#sm-chat-root .chat-icon_Web_Concierge {
  display: none; /* sostituito da fab-icon-wrap */
}
@keyframes fabIn {
  from{opacity:0;transform:translateY(24px) scale(.88)}
  to  {opacity:1;transform:translateY(0)    scale(1)}
}
@keyframes blink {
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.35;transform:scale(.72)}
}
#sm-chat-root .chat-modal {
	position: fixed;
	inset: 0;
	background: rgba(20, 24, 31, 0.35);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
	z-index: 999;
}

#sm-chat-root .chat-modal.active {
	display: flex;
}

#sm-chat-root .chat-modal.align-end {
    justify-content: flex-end;
    align-items: flex-end;
    padding-bottom: 20px;
    padding-right: 18px;
}

#sm-chat-root .chat-window {
	width: 85%;
	height: min(790px, calc(100vh - 36px));
	background: var(--bg);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
	position: relative;
	display: flex;
	flex-direction: column;
	transition: width 0.28s ease, height 0.28s ease, border-radius 0.28s ease;
}

#sm-chat-root .chat-window.compact {
	width: min(500px, 100%);
	height: min(750px, calc(100vh - 36px));
	border-radius: 18px;
}

#sm-chat-root .topbar {
	height: 72px;
	min-height: 72px;
	background: var(--red);
	position: relative;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	padding: 0 16px;
}

#sm-chat-root .header-status {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: 90px;
}

#sm-chat-root .web-assist-header {
	position: relative;
	left: auto;
	top: auto;
	transform: none;
	display: flex;
	align-items: baseline;
	gap: 5px;
	color: #fff;
	white-space: nowrap;
}

#sm-chat-root .web-assist-header span {
	font-size: 19px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.3px;
}

#sm-chat-root .web-assist-header i {
	font-size: 14px;
	color: var(--mw-text-secondary);
	font-style: italic;
	font-weight: 400;
}

#sm-chat-root .status-indicator {
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
}

#sm-chat-root .status-dot {
	width: 8px;
	height: 8px;
	background: var(--mw-success-soft);
	border-radius: 50%;
	animation: sm-mw-pulse 2s ease-in-out infinite;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}


@keyframes sm-mw-pulse {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

#sm-chat-root .window-actions {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-size: 18px;
}


#sm-chat-root .window-actions button {
	border: none;
	background: transparent;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#sm-chat-root .toggle-btn-mobile {
	display: none;
}

#sm-chat-root .toggle-btn-desktop {
	display: inline;
}


#sm-chat-root .bot-avatar {
	position: absolute;
	left: 18px;
	top: 28px;
	width: 78px;
	height: 78px;
	border-radius: 50%;
	background: #fff;
	border: 4px solid #006eb9;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
}

#sm-chat-root .circular-text {
	position: absolute;
	width: 92px;
	height: 92px;
	left: 50%;
	top: 54%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	overflow: visible;
}

#sm-chat-root .circle-text-style {
	fill: #006eb9;
	font-size: 8px;
	font-weight: 600;
	letter-spacing: 1.6px;
	opacity: 0.85;
}

#sm-chat-root .bot-avatar .face {
	width: 65px;
	height: 65px;
	border-radius: 50%;
	position: relative;
	overflow: hidden;
}

#sm-chat-root .bot-avatar .face img {
	width: 60px;
	height: 60px;
	object-fit: contain;
	display: block;
}

#sm-chat-root .privacy-note {
	padding: 0px 18px 8px;
	text-align: center;
	font-size: 13px;
	line-height: 1.45;
	color: #5e6470;
	flex-shrink: 0;
}

#sm-chat-root .privacy-note a {
	color: #5e6470;
	text-decoration: underline;
}

#sm-chat-root .chat-window.compact .privacy-note {
	font-size: 12px;
}

#sm-chat-root .chat-body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 40px 20px 22px;
	scroll-behavior: smooth;
}

#sm-chat-root .chat-body::-webkit-scrollbar {
	width: 8px;
}

#sm-chat-root .chat-body::-webkit-scrollbar-thumb {
	background: #b2b2b2;
	border-radius: 999px;
}

#sm-chat-root .assistant-row {
	display: flex;
	align-items: flex-start;
}

#sm-chat-root .welcome-card {
	max-width: 100%;
	width: 100%;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	padding: 16px 16px 12px;
	color: var(--text);
}

#sm-chat-root .welcome-title {
	font-size: 15px;
	font-weight: 700;
	color: #13233b;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}

#sm-chat-root .welcome-text,
#sm-chat-root .welcome-footer {
	font-size: 15px;
	line-height: 1.55;
	color: #1b2d47;
}

#sm-chat-root .welcome-text {
	margin-bottom: 14px;
}

#sm-chat-root .service-list {
	list-style: disc;
	margin-bottom: 14px;
	color: #1d2633;
	padding: 0;
}

#sm-chat-root .service-list li {
	padding: 10px 0;
	border-bottom: 1px solid #dcdfe4;
	font-size: 15px;
}

#sm-chat-root .message {
	max-width: 100%;
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.55;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.10);
	word-break: break-word;
}

#sm-chat-root .message-group {
	display: flex;
	flex-direction: column;
	padding: 5px;
}

#sm-chat-root .message.bot {
	color: var(--text);
    border-bottom-left-radius: 4px;
    background: rgba(212, 221, 227, 0.28);
    border-width: 1px;
    border-style: solid;
    border-color: rgba(0, 102, 154, 0.14);
    border-image: initial;

}

#sm-chat-root .message.user {
	background: #d4dde347;
    color: var(--text);
    border: 1px solid rgba(0, 102, 154, 0.14);
	margin-left: auto;
	max-width: min(360px, 75%);
}

#sm-chat-root .message-meta {
	display: flex;
	align-items: center;
	gap: 3px;
	margin-top: 10px;
	flex-wrap: wrap;
	margin-left: 10px;
}

#sm-chat-root .message-meta.right {
	justify-content: flex-end;
	margin-right: 10px;
	margin-left: 0;
}

#sm-chat-root .time {
	font-size: 12px;
	color: var(--muted);
}

#sm-chat-root .copy-btn {
	border: none;
	background: none;
	color: #495467;
	font-size: 12px;
	line-height: 1;
	padding: 5px 8px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	min-height: 26px;
}

#sm-chat-root .copy-btn.copied {
	color: #495467;
	background: none;
}

#sm-chat-root .suggested-questions {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: min(680px, 82%);
}

#sm-chat-root .suggestion-chip {
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px 14px;
	margin-bottom: 8px;
	border-radius: 10px;
	border: none;
	background: #e9edf5;
	color: #1f2d3d;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s ease;
}

#sm-chat-root .suggestion-chip:hover {
	background: #f3f5f8;
	border-color: #c8d0da;
}

#sm-chat-root .input-bar {
	flex-shrink: 0;
	min-height: 64px;
	border-top: 1px solid #e5e5e5;
	display: flex;
	align-items: flex-end;
	gap: 12px;
	padding: 10px 16px;
}

#sm-chat-root .chat-input {
	flex: 1;
	height: 42px;
	max-height: 150px;
	border: 1px solid #d8dce3;
	border-radius: 21px;
	padding: 10px 16px;
	font-size: 15px;
	outline: none;
	background: #fff;
	resize: none;
	overflow-y: auto;
	line-height: 1.4;
	box-sizing: border-box;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

#sm-chat-root .chat-input::-webkit-scrollbar {
	display: none;
}

#sm-chat-root .chat-input::placeholder {
	color: #9aa3b7;
}

#sm-chat-root .send-btn {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: none;
    background: linear-gradient(130deg, var(--red) 0%, var(--light-color) 55%, var(--light2-color) 150%);
	position: relative;
	flex-shrink: 0;
	cursor: pointer;
}

#sm-chat-root .send-btn::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 12px;
	height: 12px;
	border-left: 3px solid #fff;
	border-top: 3px solid #fff;
	transform: translate(-50%, -25%) rotate(45deg);
}

#sm-chat-root .typing-indicator {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 0;
	background: transparent;
	border-radius: 18px;
	max-width: fit-content;
	position: relative;
}

#sm-chat-root .typing-indicator span {
	width: 6px;
	height: 6px;
	background: #555;
	border-radius: 50%;
	display: inline-block;
	animation: sm-typingBounce 1.4s infinite ease-in-out;
}

#sm-chat-root .typing-indicator span:nth-child(1) {
	animation-delay: 0s;
}

#sm-chat-root .typing-indicator span:nth-child(2) {
	animation-delay: 0.2s;
}

#sm-chat-root .typing-indicator span:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes sm-typingBounce {

	0%,
	80%,
	100% {
		transform: scale(0.5);
		opacity: 0.4;
	}

	40% {
		transform: scale(1);
		opacity: 1;
	}
}

#sm-chat-root .answer-box {
	display: inline;
}

#sm-chat-root .highlight {
	font-weight: 700;
}

#sm-chat-root .ref-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	background-color: #e4e4e7;
	color: #52525b;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 600;
	margin: 0 2px;
	cursor: pointer;
	transition: background-color 0.2s;
	vertical-align: middle;
}

#sm-chat-root .ref-badge:hover {
	background-color: #d1d5db;
	color: #18181b;
}

#sm-chat-root #ref-popup {
	position: absolute;
	z-index: 99999;
	display: none;
	background: #fff;
	border: 1px solid #e4e4e7;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
	padding: 12px 16px;
	min-width: 240px;
	max-width: 320px;
}

#sm-chat-root #ref-popup.active {
	display: block;
}

#sm-chat-root .ref-popup-num {
	font-size: 11px;
	font-weight: 700;
	color: #a1a1aa;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

#sm-chat-root .ref-popup-label {
	font-size: 12px;
	color: #64748b;
	margin-bottom: 4px;
}

#sm-chat-root .ref-popup-title {
	font-size: 13px;
	font-weight: 600;
	color: #18181b;
	margin-bottom: 8px;
	line-height: 1.4;
	word-break: break-word;
}

#sm-chat-root .ref-popup-url {
	font-size: 12px;
	color: #6366f1;
	text-decoration: none;
	word-break: break-all;
}

#sm-chat-root .ref-popup-url:hover {
	text-decoration: underline;
}

#sm-chat-root .chat-modal.align-end {
	justify-content: flex-end;
}

#sm-chat-root .typing-row {
	display: flex;
	justify-content: flex-start;
	margin: 10px 0;
}

#sm-chat-root .typing-indicator {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	background: #f9fafb;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	width: fit-content;
}

#sm-chat-root .typing-indicator span {
	width: 7px;
	height: 7px;
	background: #6b7280;
	border-radius: 50%;
	display: inline-block;

	animation: sm-typingBounce 1.2s infinite ease-in-out;
}

#sm-chat-root .typing-indicator span:nth-child(2) {
	animation-delay: 0.2s;
}

#sm-chat-root .typing-indicator span:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes sm-typingBounce {

	0%,
	80%,
	100% {
		transform: translateY(0);
		opacity: 0.4;
	}

	40% {
		transform: translateY(-4px);
		opacity: 1;
	}
}

#sm-chat-root .copy-btn svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

#sm-chat-root .suggested-questions {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: min(680px, 82%);
}

#sm-chat-root .suggestion-chip {
	border: 1px solid var(--chip-border);
	background: var(--chip);
	color: #334155;
	border-radius: 999px;
	padding: 9px 12px;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

#sm-chat-root .suggestion-chip:hover {
	background: #f3f5f8;
	border-color: #c8d0da;
}

#sm-chat-root .answer-box {
	display: inline;
}

#sm-chat-root .highlight {
	font-weight: 700;
}

#sm-chat-root .ref-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	background-color: #c6d9ec;
	color: #52525b;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 600;
	margin: 0 2px;
	cursor: pointer;
	transition: background-color 0.2s;
	vertical-align: middle;
}

#sm-chat-root .suggestion-chip {
	border: 1px solid #ddd;
	padding: 8px 12px;
	border-radius: 20px;
	background: #fff;
	cursor: pointer;
	transition: all 0.2s ease;
}

#sm-chat-root .suggestion-chip.active {
	border: 1px solid #94a7c9;
	background: #eff6ff;
}

#sm-chat-root .ref-badge:hover {
	background-color: #d1d5db;
	color: #18181b;
}

#sm-chat-root #ref-popup {
	position: absolute;
	z-index: 99999;
	display: none;
	background: #fff;
	border: 1px solid #e4e4e7;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
	padding: 12px 16px;
	min-width: 240px;
	max-width: 320px;
}

#sm-chat-root #ref-popup.active {
	display: block;
}

#sm-chat-root .ref-popup-num {
	font-size: 11px;
	font-weight: 700;
	color: #a1a1aa;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

#sm-chat-root .ref-popup-label {
	font-size: 12px;
	color: #64748b;
	margin-bottom: 4px;
}

#sm-chat-root .ref-popup-title {
	font-size: 13px;
	font-weight: 600;
	color: #18181b;
	margin-bottom: 8px;
	line-height: 1.4;
	word-break: break-word;
}

#sm-chat-root .ref-popup-url {
	font-size: 12px;
	color: #6366f1;
	text-decoration: none;
	word-break: break-all;
}

#sm-chat-root .ref-popup-url:hover {
	text-decoration: underline;
}

#sm-chat-root .chat-window.expanded .chat-and-booking {
	display: flex;
	flex-direction: row;
}

#sm-chat-root .chat-window.expanded #bookingPanel {
	display: flex;
}

#sm-chat-root .chat-and-booking {
	display: flex;
	flex-direction: column;
	flex: 1;
	overflow: hidden;
}

#sm-chat-root .chat-main {
	display: flex;
	flex-direction: column;
	flex: 1;
	overflow: hidden;
	min-width: 0;
}

#sm-chat-root .booking-panel {
	display: none;
	flex-direction: column;
	width: 300px;
	flex-shrink: 0;
	border-left: 1px solid rgba(0, 0, 0, 0.1);
	background: #fff;
}

#sm-chat-root .booking-panel-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px 0 16px;
	height: 46px;
	min-height: 46px;
	background: #fff;
	color: #000;
	font-size: 13px;
	font-weight: 600;
	flex-shrink: 0;
	border-bottom: 1px solid #dcdfe4;
	position: relative;
}

#sm-chat-root .booking-panel-header>span {
	flex: 1;
	text-align: center;
}

#sm-chat-root .booking-panel-header .iframe-expand-btn {
	border-left: none;
	width: 30px;
	height: 30px;
	border-radius: 6px;
}

#sm-chat-root .booking-panel-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#sm-chat-root .calendly-inline-widget {
	flex: 1;
	min-height: 0;
}

#sm-chat-root .booking-panel {
	display: none;
	flex-direction: column;
	width: 25%;
	flex-shrink: 0;
	border-left: 1px solid rgba(0, 0, 0, 0.1);
	background: #fff;
}

#sm-chat-root .chat-window.expanded .booking-panel {
	display: flex;
}

#sm-chat-root .booking-panel-close-btn {
	display: none;
	font-size: 15px;
}

#sm-chat-root .mwc-row {
	display: flex;
	align-items: center;
	cursor: pointer;
	padding: 6px 8px;
	transition: background 0.2s ease;
}

#sm-chat-root .mwc-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #1a1a1a;
	flex-shrink: 0;
}

#sm-chat-root .mwc-label {
	font-size: 13.5px;
	font-weight: 400;
	color: #1a1a1a;
	letter-spacing: -0.01em;
	margin-left: 14px;
	transition: transform 0.18s ease;
	flex: 1;
}

#sm-chat-root .suggested-questions {
	padding: 10px 0;
}

#sm-chat-root .suggested-header {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #0a5c84;
}

#sm-chat-root .suggested-header svg {
	color: #0a5c84;
}

#sm-chat-root .suggestion-chip:hover {
	background: #dde3ee;
}

#sm-chat-root .booking-panel-body {
	position: relative;
}

#sm-chat-root .booking-loader {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(2px);
	z-index: 10;
}

#sm-chat-root .spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #dce3ef;
	border-top: 3px solid #4a6cf7;
	border-radius: 50%;
	animation: sm-spin 0.8s linear infinite;
	margin-bottom: 10px;
}

@keyframes sm-spin {
	to {
		transform: rotate(360deg);
	}
}

#sm-chat-root.booking-loader span {
	font-size: 13px;
	color: #5b6b8c;
}

#sm-chat-root #privacyText {
	font-style: italic;
	color: #94a3b8;
}

#sm-chat-root .privacy-note .powered-link {
	font-weight: 600;
	text-decoration: none;
	color: #0a5c84;
	position: relative;
	font-style: italic;
}

#sm-chat-root .privacy-note .powered-link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 2px;
	background-color: var(--mw-primary-soft);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;

}

#sm-chat-root .privacy-note .powered-link:hover {
	color: var(--mw-primary-soft-light);
}

#sm-chat-root .privacy-note .powered-link:hover::after {
	transform: scaleX(1);
}

#sm-chat-root .booking-panel-close-btn {
	display: none;
	font-size: 15px;
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
}

#sm-chat-root .services-view {
	padding: 12px;
	overflow-y: auto;
	height: 100%;
}

#sm-chat-root .service-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	margin-bottom: 8px;
	background: #fff;
	border: 1px solid #dfe3e8;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
	user-select: none;
}

#sm-chat-root .service-card:hover {
	background: #f4f8fc;
	border-color: #a8c4dc;
	box-shadow: 0 2px 8px rgba(10, 92, 132, 0.09);
}

#sm-chat-root .service-card:hover .service-card-arrow {
	transform: translateX(3px);
	color: #0a5c84;
}

#sm-chat-root .service-card-icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: #e8f2f9;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #0a5c84;
}

#sm-chat-root .service-card-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

#sm-chat-root .service-card-title {
	font-size: 13.5px;
	font-weight: 600;
	color: #1f2f46;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#sm-chat-root .service-card-url {
	font-size: 11.5px;
	color: #7a8fa6;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#sm-chat-root .service-card-arrow {
	color: #b0bec5;
	flex-shrink: 0;
	transition: transform 0.18s ease, color 0.18s ease;
}

#sm-chat-root .service-iframe-view {
	display: flex;
	flex-direction: column;
	height: 100%;
}

#sm-chat-root .service-iframe-toolbar {
	display: flex;
	align-items: center;
	border-bottom: 1px solid #dfe3e8;
	flex-shrink: 0;
}

#sm-chat-root .services-back-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	background: none;
	border: none;
	font-size: 13px;
	color: #0a5c84;
	cursor: pointer;
	flex: 1;
	font-weight: 500;
	transition: background 0.15s ease;
}

#sm-chat-root .services-back-btn:hover {
	background: #f0f4f8;
}

#sm-chat-root .iframe-expand-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: none;
	border: none;
	border-left: 1px solid #dfe3e8;
	color: #7a8fa6;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s ease, color 0.15s ease;
}

#sm-chat-root .iframe-expand-btn:hover {
	background: #f0f4f8;
	color: #0a5c84;
}

#sm-chat-root .service-iframe-container {
	flex: 1;
	overflow: hidden;
	position: relative;
}

#sm-chat-root .service-iframe-container iframe {
	width: 100%;
	height: 100%;
	border: none;
}

#sm-chat-root .chat-window.panel-expanded #chatMain {
	flex: 0 0 40%;
	min-width: 0;
}

#sm-chat-root .chat-window.panel-expanded .booking-panel {
	flex: 1 1 0 !important;
	width: auto !important;
	border-left: 1px solid rgba(0, 0, 0, 0.1);
}

#sm-chat-root .booking-panel {
	position: relative;
}

#sm-chat-root .booking-resize-handle {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 6px;
	cursor: ew-resize;
	z-index: 10;
	transition: background 0.15s ease;
}

#sm-chat-root .booking-resize-handle::after {
	content: "";
	position: absolute;
	left: 2px;
	top: 50%;
	transform: translateY(-50%);
	width: 2px;
	height: 32px;
	border-radius: 2px;
	background: #c8d4de;
	opacity: 0;
	transition: opacity 0.15s ease;
}

#sm-chat-root .booking-resize-handle:hover::after {
	opacity: 1;
}

#sm-chat-root .booking-resize-handle:hover {
	background: rgba(10, 92, 132, 0.07);
}

@media (max-width: 768px) {

	#sm-chat-root .chat-modal {
		padding: 0;
	}

	#sm-chat-root .chat-window,
	#sm-chat-root .chat-window.compact {
		width: 100%;
		height: 100%;
		max-height: 100%;
		border-radius: 0;
	}

	#sm-chat-root .topbar {
		height: 80px;
		min-height: 80px;
	}

	#sm-chat-root .bot-avatar {
		position: absolute;
		left: 18px;
		top: 28px;
		width: 78px;
		height: 78px;
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 3;
		border-radius: 50%;
		background: rgb(255, 255, 255);
		border-width: 4px;
		border-style: solid;
		border-color: rgb(2, 83, 125);
		border-image: initial;
	}

	#sm-chat-root .bot-avatar .face,
	#sm-chat-root .bot-avatar .face img {
		width: 48px;
		height: 48px;
	}

	#sm-chat-root .circular-text {
		width: 80px;
		height: 80px;
		top: 50%;
	}

	#sm-chat-root .circle-text-style {
		font-size: 6px;
		letter-spacing: 1.2px;
	}

	#sm-chat-root .header-status {
		margin-left: 82px;
	}

	#sm-chat-root .privacy-note,
	#sm-chat-root .chat-window.compact .privacy-note {
		padding: 0px 12px 8px;
		font-size: 12px;
	}


	#sm-chat-root .welcome-card {
		max-width: 100%;
		padding: 14px 14px 10px;
	}

	#sm-chat-root .welcome-title,
	#sm-chat-root .welcome-text,
	#sm-chat-root .welcome-footer,
	#sm-chat-root .service-list li,
	#sm-chat-root .message {
		font-size: 14px;
	}

	#sm-chat-root .message.user {
		max-width: 82%;
	}

	#sm-chat-root .suggested-questions {
		margin-left: 10px;
	}

	#sm-chat-root .window-actions {
		display: flex;
		align-items: center;
		gap: 10px;
	}

	#sm-chat-root .toggle-btn-desktop {
		display: none !important;
	}

	#sm-chat-root .toggle-btn-mobile {
		display: inline-flex !important;
	}

	#sm-chat-root .booking-panel {
		display: none;
		position: fixed;
		top: 80px;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 10000;
		flex-direction: column;
		background: #fff;
		border-left: none;
		width: 100%;
		height: calc(100% - 80px);
	}

	#sm-chat-root .booking-panel.mobile-open {
		display: flex !important;
	}

	/* #sm-chat-root .booking-panel-header {
		display: none !important;
	} */

	

    #sm-chat-root .source-services-btn-toggle {
        margin-left: auto;
        order: 9;
    }

	#sm-chat-root .booking-panel-close-btn {
		display: none !important;
	}

	#sm-chat-root .booking-panel-body {
		flex: 1;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		padding: 0;
		background: #fff;
	}

	#sm-chat-root .services-view {
		flex: 1;
		overflow-y: auto;
		height: auto;
		padding: 12px;
	}

	#sm-chat-root .service-iframe-view {
		flex: 1;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		margin-top: 20px;
	}

	#sm-chat-root .service-iframe-container {
		flex: 1;
		overflow: hidden;
	}

	#sm-chat-root .service-iframe-container iframe {
		width: 100%;
		height: 100%;
		border: none;
	}

	#sm-chat-root #servicesExpandBtn {
		display: none !important;
	}

	#sm-chat-root .booking-resize-handle {
		display: none;
	}

	#sm-chat-root .chat-window.expanded .booking-panel {
		display: none !important;
	}

	#sm-chat-root .chat-window.expanded .booking-panel.mobile-open {
		display: flex !important;
	}

	#sm-chat-root .topbar {
		position: relative;
		z-index: 10001;
	}

	#sm-chat-root .chat-window.expanded .booking-panel.mobile-open {
		display: flex !important;
	}

	#sm-chat-root .chat-main {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }

    #sm-chat-root .chat-body {
        flex: 1;
        overflow-y: auto;
        padding-bottom: 20px;
    }

    #sm-chat-root .input-bar {
        flex-shrink: 0;
        position: relative;
        bottom: auto;
        background: var(--bg);
        z-index: 10;
    }

    #sm-chat-root .privacy-note {
        flex-shrink: 0;
        position: relative;
        bottom: auto;
        background: var(--bg);
        z-index: 9;
    }
	
}

@media (max-width: 480px) {
	#sm-chat-root .window-actions {
		gap: 6px;
	}

	#sm-chat-root .window-actions button {
		width: 26px;
		height: 26px;
		font-size: 15px;
	}

	#sm-chat-root .bot-avatar {
		width: 58px;
		height: 58px;
		top: 50%;
	}

	#sm-chat-root .bot-avatar .face,
	#sm-chat-root .bot-avatar .face img {
		width: 42px;
		height: 42px;
	}

	#sm-chat-root .header-status {
		margin-left: 74px;
	}

	#sm-chat-root .chat-body {
		padding: 30px 10px 16px;
	}

	#sm-chat-root .message.bot,
	#sm-chat-root .message.user,
	#sm-chat-root .suggested-questions {
		max-width: 100%;
	}

	#sm-chat-root .suggested-questions {
		margin-left: 0;
		max-width: 100%;
	}

	#sm-chat-root .circular-text {
		width: 72px;
		height: 72px;
		top: 50%;
	}

	#sm-chat-root .circle-text-style {
		font-size: 5.5px;
		letter-spacing: 1px;
	}

	#sm-chat-root .chat-modal.align-end {
    justify-content: flex-end;
    align-items: flex-end;
    padding-bottom: 0px !important;
    padding-right: 0px !important;
}
}

#sm-chat-root .services-search-wrap {
	position: relative;
	padding: 0 0 10px 0;
}

#sm-chat-root .services-search-wrap svg {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--color-text-secondary, #888);
	pointer-events: none;
	margin-top: -5px;
}

#sm-chat-root .services-search {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px 8px 34px;
	border: 0.5px solid var(--color-border-secondary, #ccc);
	border-radius: 12px;
	font-size: 13px;
	background: var(--color-background-primary, #fff);
	color: var(--color-text-primary, #111);
	outline: none;
}

#sm-chat-root .services-search:focus {
	border-color: var(--color-border-primary, #999);
}

#sm-chat-root .services-no-results {
	font-size: 13px;
	color: var(--color-text-secondary, #888);
	text-align: center;
	padding: 20px 0;
}

#sm-chat-root .chat-window.compact .chat-and-booking {
	flex-direction: column !important;
}
#sm-chat-root .chat-window.compact #bookingPanel {
	display: none !important;
}

@media (max-width: 768px) {
	#sm-chat-root .chat-window.compact #bookingPanel.mobile-open {
		display: flex !important;
	}
}

@keyframes sm-stepIn {
  from { 
	opacity: 0; 
	transform: translateY(6px); 
	} to   { 
		opacity: 1; 
		transform: translateY(0); 
	}
}
@keyframes sm-stepOut {
  from { 
	opacity: 1; 
	transform: translateY(0) scale(1); 
	}
  to   { 
	opacity: 0; 
	transform: translateY(-6px) scale(0.95); 
	}
}

#sm-chat-root .pipeline-step {
  animation: sm-stepIn 0.3s cubic-bezier(.2,.8,.3,1) both;
}

#sm-chat-root .pipeline-step.exiting {
  animation: sm-stepOut 0.25s ease-in forwards;
}

#sm-chat-root .pipeline-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

#sm-chat-root .pipeline-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    opacity: 0;
    animation: sm-stepFadeIn 0.3s ease forwards;
    transition: color 0.3s ease;
}

#sm-chat-root .pipeline-step:last-child:not(.done) {
    color: var(--red);
}

#sm-chat-root .pipeline-step.done {
    color: #9ca3af;
}

#sm-chat-root .step-icon {
    font-size: 11px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

#sm-chat-root .source-services-btn-toggle {
	border: none;
	background: none;
	cursor: pointer;
}
.pipeline-step:last-child:not(.done) .step-icon {
    display: inline-block;
    animation: sm-stepSpin 1.2s linear infinite;
    color: var(--red);
}

#sm-chat-root .pipeline-step.done .step-icon {
    animation: sm-stepPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    color: #10b981;
}

#sm-chat-root .step-label {
    font-size: 12px;
    letter-spacing: 0.01em;
}

@keyframes sm-stepFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(4px); 
    }
    to   { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes sm-stepSpin {
    from { 
        transform: rotate(0deg); 
    }
    to   { 
        transform: rotate(360deg); 
    }
}

@keyframes sm-stepPop {
    0%   { 
        transform: scale(0.6); opacity: 0.5; 
    }
    100% { 
        transform: scale(1);   opacity: 1; 
    }
}