/**
 * Rohichat — portail auth : widget flottant (identique session connectée).
 * Ne dépend pas uniquement de .rohi-ac-guest-portal (DOM Vue peut recréer #addchat-bot).
 * Position AddChat : variables --rohi-auth-ac-* posées par rohi-addchat-auth-align.js
 * (mesure getBoundingClientRect des champs login 260px).
 */
body.rohi-auth-scroll-body:not(.rohi-auth-addchat-ready) #addchat-bubble,
body.rohi-auth-addchat-page:not(.rohi-auth-addchat-ready) #addchat-bubble,
body.rohi-auth-scroll-body:not(.rohi-auth-addchat-ready) #addchat-bot,
body.rohi-auth-addchat-page:not(.rohi-auth-addchat-ready) #addchat-bot,
body.rohi-auth-scroll-body:not(.rohi-auth-addchat-ready) #rohi-addchat-fallback,
body.rohi-auth-addchat-page:not(.rohi-auth-addchat-ready) #rohi-addchat-fallback {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* Panneau fermé : masquer la coquille, bulle seule */
body.rohi-auth-scroll-body:not(.rohi-auth-addchat-panel-open) #addchat-bot,
body.rohi-auth-addchat-page:not(.rohi-auth-addchat-panel-open) #addchat-bot {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

body.rohi-auth-addchat-ready:not(.rohi-auth-addchat-panel-open) #addchat_app #addchat-bubble,
body.rohi-auth-scroll-body.rohi-auth-addchat-ready:not(.rohi-auth-addchat-panel-open) #addchat-bubble,
body.rohi-auth-addchat-page.rohi-auth-addchat-ready:not(.rohi-auth-addchat-panel-open) #addchat-bubble,
body.rohi-auth-addchat-ready:not(.rohi-auth-addchat-panel-open) #rohi-addchat-fallback {
	display: inline-block !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
	left: auto !important;
	right: 20px !important;
}
body.rohi-auth-ac-layout-sync.rohi-auth-addchat-ready:not(.rohi-auth-addchat-panel-open) #addchat-bubble,
body.rohi-auth-ac-layout-sync.rohi-auth-addchat-ready:not(.rohi-auth-addchat-panel-open) #rohi-addchat-fallback {
	left: auto !important;
	right: 20px !important;
}

body.rohi-auth-addchat-panel-open #addchat-bubble,
body.rohi-auth-addchat-panel-open #rohi-addchat-fallback {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* Panneau ouvert : position par défaut (coin écran) ; sync JS → variables mesurées */
body.rohi-auth-addchat-panel-open #addchat-bot,
body.rohi-auth-addchat-page.rohi-auth-addchat-panel-open #addchat-bot,
body.rohi-auth-scroll-body.rohi-auth-addchat-panel-open #addchat-bot,
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal,
#addchat-bot.rohi-ac-guest-portal {
	left: auto !important;
	right: 24px !important;
	display: flex !important;
	flex-direction: column !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
	position: fixed !important;
	top: auto !important;
	bottom: max(24px, env(safe-area-inset-bottom, 0px)) !important;
	width: 23rem !important;
	min-width: 0 !important;
	max-width: min(23rem, calc(100vw - 48px)) !important;
	height: 34.5rem !important;
	min-height: 0 !important;
	max-height: min(34.5rem, calc(100vh - 48px)) !important;
	margin: 0 !important;
	background: #fff !important;
	border: 1px solid var(--rohi-ac-border, #E5E7EB) !important;
	box-shadow: none !important;
	filter: none !important;
	border-radius: var(--rohi-ac-radius-lg, 16px) var(--rohi-ac-radius-lg, 16px) 0 0 !important;
}
body.rohi-auth-ac-layout-sync.rohi-auth-addchat-panel-open #addchat-bot,
body.rohi-auth-ac-layout-sync #addchat-bot.rohi-ac-guest-portal {
	left: var(--rohi-auth-ac-panel-left) !important;
	right: auto !important;
	width: var(--rohi-auth-ac-panel-width) !important;
	min-width: 0 !important;
	max-width: var(--rohi-auth-ac-panel-width) !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-sidebar,
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox,
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active,
body.rohi-auth-addchat-panel-open #addchat-bot .c-chatbox,
body.rohi-auth-addchat-panel-open #addchat-bot .c-chatbox.c-active,
#addchat-bot.rohi-ac-guest-portal .c-sidebar,
#addchat-bot.rohi-ac-guest-portal .c-guestbox,
#addchat-bot.rohi-ac-guest-portal .c-chatbox {
	box-shadow: none !important;
	filter: none !important;
}

body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active,
body.rohi-auth-addchat-panel-open #addchat-bot .c-chatbox.c-active {
	background: #fff !important;
}

body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox,
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active,
body.rohi-auth-addchat-panel-open #addchat-bot .c-chatbox,
body.rohi-auth-addchat-panel-open #addchat-bot .c-chatbox.c-active {
	background: #fff !important;
	border: none !important;
	box-shadow: none !important;
}

/* Formulaire invité : largeur des champs alignée sur login (260px, centrés) */
body.rohi-auth-addchat-panel-open #addchat-bot {
	--rohi-ac-auth-field-max: min(260px, 100%);
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-gform form {
	align-items: center !important;
	gap: 0.75rem !important;
	padding-top: 0.15rem !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-gform .c-input-group,
body.rohi-auth-addchat-panel-open #addchat-bot .c-gform .c-input-group-prepend {
	width: 100% !important;
	max-width: var(--rohi-ac-auth-field-max) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-bottom: 0 !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-gform .c-input-group .c-input,
body.rohi-auth-addchat-panel-open #addchat-bot .c-gform .c-input-group-prepend .c-input {
	width: 100% !important;
	max-width: 100% !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-gform .c-button,
body.rohi-auth-addchat-panel-open #addchat-bot .c-gform .c-button.c-btn-block,
body.rohi-auth-addchat-panel-open #addchat-bot .c-gform .c-button.c-btn-neutral {
	width: 100% !important;
	max-width: var(--rohi-ac-auth-field-max) !important;
	margin: 0.35rem auto 0 !important;
}

/* Formulaire visible : scroll + en-tête compact (bouton plus coupé) */
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active {
	overflow-x: hidden !important;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 0.75rem !important;
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active > .c-gbuddy,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active > .c-gbuddy {
	display: contents !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active .c-gbuddy .c-brand,
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active > .c-brand,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active .c-gbuddy .c-brand,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active > .c-brand {
	order: 1 !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active > .c-gform,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active > .c-gform {
	order: 2 !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active .c-gbuddy .c-team,
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active > .c-team,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active .c-gbuddy .c-team,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active > .c-team {
	order: 3 !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active > .c-toast,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active > .c-toast,
#addchat-bot:has(.c-guestbox.c-active) > .c-toast.c-active {
	order: 4 !important;
	flex-shrink: 0 !important;
}
#addchat-bot:has(.c-guestbox.c-active) > .c-toast.c-active {
	display: none !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active .c-close,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active .c-close {
	position: absolute !important;
	top: 0.55rem !important;
	right: 0.55rem !important;
	z-index: 3 !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-gform {
	margin-top: 0.1rem !important;
	padding-top: 0.25rem !important;
	padding-bottom: 0.65rem !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active .c-gbuddy .c-brand,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active .c-gbuddy .c-brand {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0.55rem 0.75rem 0.5rem !important;
	text-align: left !important;
	background: var(--rohi-ac-surface, #fff) !important;
	border: none !important;
	border-bottom: 1px solid var(--rohi-ac-border, #e5e7eb) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active .c-gbuddy .c-brand .c-brand-title,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active .c-gbuddy .c-brand .c-brand-title {
	margin: 0.35rem 0.75rem 0.45rem 0.75rem !important;
	padding: 0 !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active .c-gbuddy .c-brand .c-brand-subtitle,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active .c-gbuddy .c-brand .c-brand-subtitle {
	display: none !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active .c-gform > .c-brand-subtitle,
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active .c-gform > .rohi-guest-fields-prompt,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active .c-gform > .c-brand-subtitle,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active .c-gform > .rohi-guest-fields-prompt {
	display: block !important;
	width: 100% !important;
	max-width: var(--rohi-ac-auth-field-max, min(260px, 100%)) !important;
	margin: 0.75rem auto 0.65rem !important;
	padding: 0 0.1rem !important;
	text-align: left !important;
	font-size: 0.75rem !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	color: #6b7280 !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active .c-gform .rohi-guest-field-label,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active .c-gform .rohi-guest-field-label {
	display: block !important;
	width: 100% !important;
	max-width: var(--rohi-ac-auth-field-max, min(260px, 100%)) !important;
	margin: 0 auto 0.25rem !important;
	padding: 0 0.1rem !important;
	text-align: left !important;
	font-size: 0.6875rem !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	color: #374151 !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox .c-gform + .c-team,
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active > .c-team,
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active .c-gbuddy .c-team,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active > .c-team,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active .c-gbuddy .c-team {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	justify-content: center !important;
	align-items: flex-start !important;
	gap: 0.35rem 0.55rem !important;
	margin-top: 0.55rem !important;
	margin-bottom: 0.15rem !important;
	padding-bottom: 0.1rem !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active .c-team-member,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active .c-team-member {
	display: inline-flex !important;
	flex-direction: column !important;
	align-items: center !important;
	margin: 0 !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active .c-team-member .c-image,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active .c-team-member .c-image {
	width: 1.75rem !important;
	height: 1.75rem !important;
	border: none !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active .c-team-member .c-subtitle,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active .c-team-member .c-subtitle {
	margin-top: 0.15rem !important;
	font-size: 0.5625rem !important;
	max-width: 3.25rem !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active > .c-team + .c-toast,
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active .c-team + .c-toast,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active > .c-team + .c-toast,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active .c-team + .c-toast {
	margin-top: 0.35rem !important;
}
body.rohi-auth-addchat-panel-open #addchat-footer {
	display: none !important;
}

/* Pied de page auth (2015–2026, politique, Hostinger) — ancré en bas du panneau */
#addchat-bot > .rohi-guest-panel-footer,
#addchat-bot > #rohi-guest-panel-footer,
body.rohi-auth-addchat-panel-open #addchat-bot > .rohi-auth-footer.rohi-guest-panel-footer,
body.rohi-auth-addchat-panel-open #addchat-bot > .rohi-reset-footer.rohi-guest-panel-footer,
#addchat-bot.rohi-ac-guest-portal > .rohi-guest-panel-footer,
#addchat-bot.rohi-ac-guest-portal > #rohi-guest-panel-footer {
	display: block !important;
	visibility: visible !important;
	pointer-events: auto !important;
	flex: 0 0 auto !important;
	order: 99 !important;
	margin-top: auto !important;
	width: 100% !important;
	padding: 0.4rem 0.65rem 0.6rem !important;
	text-align: center !important;
	border-top: 1px solid var(--rohi-ac-border, #e5e7eb) !important;
	background: #fff !important;
	box-sizing: border-box !important;
}
#addchat-bot > .rohi-guest-panel-footer p,
#addchat-bot > #rohi-guest-panel-footer p,
#addchat-bot.rohi-ac-guest-portal > .rohi-guest-panel-footer p,
#addchat-bot.rohi-ac-guest-portal > #rohi-guest-panel-footer p {
	margin: 0 0 0.2rem !important;
	font-size: 0.625rem !important;
	line-height: 1.35 !important;
	color: #6b7280 !important;
}
#addchat-bot > .rohi-guest-panel-footer p:last-child,
#addchat-bot > #rohi-guest-panel-footer p:last-child,
#addchat-bot.rohi-ac-guest-portal > .rohi-guest-panel-footer p:last-child,
#addchat-bot.rohi-ac-guest-portal > #rohi-guest-panel-footer p:last-child {
	margin-bottom: 0 !important;
}
#addchat-bot > .rohi-guest-panel-footer a,
#addchat-bot > #rohi-guest-panel-footer a,
#addchat-bot.rohi-ac-guest-portal > .rohi-guest-panel-footer a,
#addchat-bot.rohi-ac-guest-portal > #rohi-guest-panel-footer a {
	color: #111827 !important;
	text-decoration: none !important;
}
#addchat-bot > .rohi-guest-panel-footer .rohi-footer-brand-text,
#addchat-bot.rohi-ac-guest-portal > .rohi-guest-panel-footer .rohi-footer-brand-text {
	color: #6d28d9 !important;
	font-weight: 700 !important;
}
#addchat-bot > .rohi-guest-panel-footer .rohi-hostinger-logo,
#addchat-bot > .rohi-guest-panel-footer .rohi-footer-brand-logo,
#addchat-bot.rohi-ac-guest-portal > .rohi-guest-panel-footer .rohi-hostinger-logo,
#addchat-bot.rohi-ac-guest-portal > .rohi-guest-panel-footer .rohi-footer-brand-logo {
	height: 0.85em !important;
	width: auto !important;
	vertical-align: -0.12em !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot > .c-guestbox.c-active,
body.rohi-auth-addchat-panel-open #addchat-bot > .c-chatbox.c-active,
#addchat-bot.rohi-ac-guest-portal > .c-guestbox.c-active,
#addchat-bot.rohi-ac-guest-portal > .c-chatbox.c-active {
	flex: 1 1 auto !important;
	min-height: 0 !important;
}

/* Toast erreur invité (ex. Invalide Courriel) : compact, contour violet */
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal .c-toast.c-active.c-toast-error,
#addchat-bot.rohi-ac-guest-portal .c-toast.c-active.c-toast-error {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	width: calc(100% - 2rem) !important;
	max-width: var(--rohi-ac-auth-field-max, min(260px, 100%)) !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0.3rem auto 0 !important;
	padding: 0.3rem 0.5rem !important;
	box-sizing: border-box !important;
	border-radius: 5px !important;
	font-size: 0.6875rem !important;
	font-weight: 500 !important;
	line-height: 1.25 !important;
	letter-spacing: 0 !important;
	text-align: center !important;
	color: #7c3aed !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active > .c-toast.c-active,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active > .c-toast.c-active {
	border: none !important;
	box-shadow: none !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal .c-toast.c-active.c-toast-error .c-toast-icon,
#addchat-bot.rohi-ac-guest-portal .c-toast.c-active.c-toast-error .c-toast-icon {
	display: none !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal .c-toast.c-active.c-toast-error .c-toast-text,
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal .c-toast.c-active.c-toast-error p.c-toast-text,
#addchat-bot.rohi-ac-guest-portal .c-toast.c-active.c-toast-error .c-toast-text,
#addchat-bot.rohi-ac-guest-portal .c-toast.c-active.c-toast-error p.c-toast-text {
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
	text-align: center !important;
	color: #7c3aed !important;
	word-break: break-word !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal .c-toast.c-active.c-toast-success,
#addchat-bot.rohi-ac-guest-portal .c-toast.c-active.c-toast-success {
	border-radius: 6px !important;
	background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
	border: none !important;
	color: #fff !important;
	box-shadow: none !important;
}

/* Portail invité : fil + en-tête + saisie = même colonne étroite (260px) */
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal .c-chatbox.c-active,
#addchat-bot.rohi-ac-guest-portal .c-chatbox.c-active {
	display: flex !important;
	flex-direction: column !important;
	flex: 1 1 auto !important;
	min-height: 0 !important;
	align-items: stretch !important;
	box-sizing: border-box !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal .c-chatbox > .c-buddy,
#addchat-bot.rohi-ac-guest-portal .c-chatbox > .c-buddy {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal .c-chatbox > .c-close,
#addchat-bot.rohi-ac-guest-portal .c-chatbox > .c-close {
	left: 0.35rem !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal .c-chatbox.c-active > .c-messages,
#addchat-bot.rohi-ac-guest-portal .c-chatbox.c-active > .c-messages {
	flex: 1 1 auto !important;
	min-height: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0.5rem 0.65rem !important;
	box-sizing: border-box !important;
	border: none !important;
	border-left: none !important;
	border-right: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch;
}

/* Barres de défilement invitées : piste et curseur transparents */
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active,
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal .c-chatbox.c-active > .c-messages,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active,
#addchat-bot.rohi-ac-guest-portal .c-chatbox.c-active > .c-messages {
	scrollbar-width: thin;
	scrollbar-color: transparent transparent;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active::-webkit-scrollbar,
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal .c-chatbox.c-active > .c-messages::-webkit-scrollbar,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active::-webkit-scrollbar,
#addchat-bot.rohi-ac-guest-portal .c-chatbox.c-active > .c-messages::-webkit-scrollbar {
	width: 6px;
	height: 6px;
	background: transparent;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active::-webkit-scrollbar-track,
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal .c-chatbox.c-active > .c-messages::-webkit-scrollbar-track,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active::-webkit-scrollbar-track,
#addchat-bot.rohi-ac-guest-portal .c-chatbox.c-active > .c-messages::-webkit-scrollbar-track {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active::-webkit-scrollbar-thumb,
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal .c-chatbox.c-active > .c-messages::-webkit-scrollbar-thumb,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active::-webkit-scrollbar-thumb,
#addchat-bot.rohi-ac-guest-portal .c-chatbox.c-active > .c-messages::-webkit-scrollbar-thumb {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-guestbox.c-active::-webkit-scrollbar-thumb:hover,
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal .c-chatbox.c-active > .c-messages::-webkit-scrollbar-thumb:hover,
#addchat-bot.rohi-ac-guest-portal .c-guestbox.c-active::-webkit-scrollbar-thumb:hover,
#addchat-bot.rohi-ac-guest-portal .c-chatbox.c-active > .c-messages::-webkit-scrollbar-thumb:hover {
	background: rgba(15, 23, 42, 0.14) !important;
}

/* Zone d’envoi invité : même largeur que .c-gform, hauteur textarea comme barre standard (auto / 4.5rem max) */
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal .c-chatbox > .c-send,
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal > .c-send,
#addchat-bot.rohi-ac-guest-portal .c-chatbox > .c-send,
#addchat-bot.rohi-ac-guest-portal > .c-send {
	display: flex !important;
	justify-content: stretch !important;
	align-items: center !important;
	width: 100% !important;
	padding: 0.5rem 0.65rem 0.85rem !important;
	box-sizing: border-box !important;
	background: #fff !important;
	border: none !important;
	border-top: none !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal .c-chatbox > .c-send > form,
body.rohi-auth-addchat-panel-open #addchat-bot.rohi-ac-guest-portal > .c-send > form,
#addchat-bot.rohi-ac-guest-portal .c-chatbox > .c-send > form,
#addchat-bot.rohi-ac-guest-portal > .c-send > form {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto !important;
	align-items: end !important;
	gap: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-chatbox > .c-send form > .c-send-textarea,
body.rohi-auth-addchat-panel-open #addchat-bot > .c-send form > .c-send-textarea,
#addchat-bot.rohi-ac-guest-portal .c-chatbox > .c-send form > .c-send-textarea,
#addchat-bot.rohi-ac-guest-portal > .c-send form > .c-send-textarea {
	grid-column: 1 !important;
	grid-row: 1 !important;
	width: 100% !important;
	min-width: 0 !important;
	min-height: 2.5rem !important;
	height: auto !important;
	max-height: 4.5rem !important;
	margin: 0 !important;
	padding: 0.45rem 4.25rem 0.45rem 0.9rem !important;
	font-size: 0.875rem !important;
	line-height: 1.35 !important;
	color: #111827 !important;
	background: #fff !important;
	border: 1px solid #d1d5db !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	resize: none !important;
	overflow-y: auto !important;
	box-sizing: border-box !important;
	align-self: stretch !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-chatbox > .c-send form > .c-send-textarea:focus,
body.rohi-auth-addchat-panel-open #addchat-bot > .c-send form > .c-send-textarea:focus,
#addchat-bot.rohi-ac-guest-portal .c-chatbox > .c-send form > .c-send-textarea:focus,
#addchat-bot.rohi-ac-guest-portal > .c-send form > .c-send-textarea:focus {
	outline: none !important;
	border-color: #7c3aed !important;
	box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15) !important;
	background: #fff !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-chatbox > .c-send form > .c-send-textarea::placeholder,
body.rohi-auth-addchat-panel-open #addchat-bot > .c-send form > .c-send-textarea::placeholder,
#addchat-bot.rohi-ac-guest-portal .c-chatbox > .c-send form > .c-send-textarea::placeholder,
#addchat-bot.rohi-ac-guest-portal > .c-send form > .c-send-textarea::placeholder {
	color: #9ca3af !important;
	opacity: 1 !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-chatbox > .c-send form > .c-emoji-button,
#addchat-bot.rohi-ac-guest-portal .c-chatbox > .c-send form > .c-emoji-button {
	grid-column: 1 !important;
	grid-row: 1 !important;
	justify-self: end !important;
	align-self: center !important;
	width: 2rem !important;
	height: 2rem !important;
	margin: 0 2.35rem 0 0 !important;
	z-index: 3 !important;
}
body.rohi-auth-addchat-panel-open #addchat-bot .c-chatbox > .c-send form > .c-button.c-button-round,
body.rohi-auth-addchat-panel-open #addchat-bot > .c-send form > .c-button.c-button-round,
#addchat-bot.rohi-ac-guest-portal .c-chatbox > .c-send form > .c-button.c-button-round,
#addchat-bot.rohi-ac-guest-portal > .c-send form > .c-button.c-button-round {
	grid-column: 1 !important;
	grid-row: 1 !important;
	justify-self: end !important;
	align-self: center !important;
	width: 2rem !important;
	height: 2rem !important;
	min-width: 2rem !important;
	margin: 0 0.35rem 0 0 !important;
	padding: 0 !important;
	z-index: 4 !important;
}

/* Boutons ticket agent ↔ responsable (rohi-addchat-ticket.js) */
#addchat-bot .c-chatbox > .c-buddy > .rohi-ac-ticket-row,
#addchat-bot-admin .c-chatbox > .c-buddy > .rohi-ac-ticket-row {
	width: 100%;
}
#addchat-bot .c-buddy .rohi-ac-ticket-actions,
#addchat-bot-admin .c-buddy .rohi-ac-ticket-actions {
	flex-wrap: wrap;
	max-width: 100%;
	justify-content: center;
}
#addchat-bot .c-buddy .rohi-ac-ticket-actions .btn,
#addchat-bot-admin .c-buddy .rohi-ac-ticket-actions .btn {
	font-size: 0.65rem;
	padding: 0.15rem 0.45rem;
	line-height: 1.2;
}
#addchat-bot .c-buddy .rohi-ac-ticket-badge,
#addchat-bot-admin .c-buddy .rohi-ac-ticket-badge {
	font-size: 0.62rem;
}

/* Panneau AddChat affiché : masquer champs login, garder titre + cartes ; réafficher à la fermeture */
body.rohi-auth-scroll-body.rohi-auth-addchat-panel-open .rohi-auth-login-form > .vh-100 > div:not(.rohi-auth-brand-block),
body.rohi-auth-addchat-page.rohi-auth-addchat-panel-open .rohi-auth-login-form > .vh-100 > div:not(.rohi-auth-brand-block),
body.rohi-auth-scroll-body.rohi-auth-addchat-panel-open .rohi-auth-login-form .rohi-auth-footer,
body.rohi-auth-addchat-page.rohi-auth-addchat-panel-open .rohi-auth-login-form .rohi-auth-footer {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}
/* Retour depuis le fil invité : login ROHI seul (AddChat fermé, bulle seulement) */
body.rohi-auth-scroll-body.rohi-auth-addchat-panel-open.rohi-auth-reveal-login:not(.rohi-auth-guest-conversation-open) .rohi-auth-login-form > .vh-100 > div:not(.rohi-auth-brand-block),
body.rohi-auth-addchat-page.rohi-auth-addchat-panel-open.rohi-auth-reveal-login:not(.rohi-auth-guest-conversation-open) .rohi-auth-login-form > .vh-100 > div:not(.rohi-auth-brand-block),
body.rohi-auth-scroll-body.rohi-auth-addchat-panel-open.rohi-auth-reveal-login:not(.rohi-auth-guest-conversation-open) .rohi-auth-login-form .rohi-auth-footer,
body.rohi-auth-addchat-page.rohi-auth-addchat-panel-open.rohi-auth-reveal-login:not(.rohi-auth-guest-conversation-open) .rohi-auth-login-form .rohi-auth-footer {
	display: block !important;
	visibility: visible !important;
	pointer-events: auto !important;
}
body.rohi-auth-scroll-body.rohi-auth-addchat-panel-open.rohi-auth-reveal-login:not(.rohi-auth-guest-conversation-open) .rohi-auth-form-column,
body.rohi-auth-addchat-page.rohi-auth-addchat-panel-open.rohi-auth-reveal-login:not(.rohi-auth-guest-conversation-open) .rohi-auth-form-column {
	pointer-events: auto !important;
}
body.rohi-auth-scroll-body.rohi-auth-addchat-panel-open .rohi-auth-brand-block,
body.rohi-auth-addchat-page.rohi-auth-addchat-panel-open .rohi-auth-brand-block,
body.rohi-auth-scroll-body.rohi-auth-addchat-panel-open .rohi-auth-wordmark,
body.rohi-auth-addchat-page.rohi-auth-addchat-panel-open .rohi-auth-wordmark {
	display: block !important;
	visibility: visible !important;
	pointer-events: auto !important;
}
body.rohi-auth-scroll-body.rohi-auth-addchat-panel-open .rohi-auth-form-column,
body.rohi-auth-addchat-page.rohi-auth-addchat-panel-open .rohi-auth-form-column {
	display: block !important;
	visibility: visible !important;
	pointer-events: none !important;
}
body.rohi-auth-scroll-body.rohi-auth-addchat-panel-open .rohi-auth-brand-block,
body.rohi-auth-addchat-page.rohi-auth-addchat-panel-open .rohi-auth-brand-block {
	pointer-events: auto !important;
}
/* Pages reset MDP invité : masquer formulaire tant que le panneau est ouvert */
body.rohi-auth-scroll-body.rohi-auth-addchat-panel-open .rohi-reset-page .rohi-reset-shell > form,
body.rohi-auth-addchat-page.rohi-auth-addchat-panel-open .rohi-reset-page .rohi-reset-shell > form,
body.rohi-auth-scroll-body.rohi-auth-addchat-panel-open .rohi-reset-page .needs-validation,
body.rohi-auth-addchat-page.rohi-auth-addchat-panel-open .rohi-reset-page .needs-validation,
body.rohi-auth-scroll-body.rohi-auth-addchat-panel-open .rohi-reset-page .rohi-reset-footer,
body.rohi-auth-addchat-page.rohi-auth-addchat-panel-open .rohi-reset-page .rohi-reset-footer {
	display: none !important;
}
body.rohi-auth-scroll-body.rohi-auth-addchat-panel-open .rohi-reset-page .rohi-auth-wordmark,
body.rohi-auth-addchat-page.rohi-auth-addchat-panel-open .rohi-reset-page .rohi-auth-wordmark {
	display: inline !important;
	visibility: visible !important;
}
