/* Widget chrome SSOT. Landing theme/bootstrap stay off wp-admin so they do not restyle #adminmenu. */

.webly-agentpress-scope {
	font-family: "Outfit", system-ui, sans-serif;
	font-size: 16px;
	--webly-agentpress-z: 2147483000;
	/* Light chat shell on dark marketing pages (body.weblysuite-theme-dark). */
	--white: 255, 255, 255;
	--dark: 50, 49, 58;
	--secondary: 102, 112, 120;
	--primary: 70, 135, 240;
	--success: 125, 190, 108;
	--danger: 220, 60, 60;
	--info: 80, 185, 245;
	--warning: 245, 165, 75;
	--font-color: #555555;
	--body-color: #ffffff;
	--bs-border-radius: 0.375rem;
	--app-border-radius: 0.375rem;
	--primary-box-shadow: rgba(var(--primary), 0.1) 0 0 16px;
	--h6-font-size: 1.05rem;
	color: var(--font-color) !important;
}

.webly-agentpress-scope:not(.webly-agentpress-inline) {
	position: static;
	width: 0;
	height: 0;
	overflow: visible;
	margin: 0;
	padding: 0;
	border: 0;
}

.webly-agentpress-scope *,
.webly-agentpress-scope *::before,
.webly-agentpress-scope *::after {
	box-sizing: border-box;
}

/* Bootstrap/theme are not loaded on wp-admin (they restyle #adminmenu).
   Visitor-chat is the widget chrome SSOT: utilities + chips + bubbles. */
.webly-agentpress-scope .d-none { display: none !important; }
.webly-agentpress-scope .d-flex { display: flex !important; }
.webly-agentpress-scope .flex-grow-1 { flex-grow: 1; min-width: 0; }
.webly-agentpress-scope .align-items-center { align-items: center; }
.webly-agentpress-scope .justify-content-between { justify-content: space-between; }
.webly-agentpress-scope .text-center { text-align: center; }
.webly-agentpress-scope .text-white { color: #fff; }
.webly-agentpress-scope .text-dark { color: #1d2327; }
.webly-agentpress-scope .text-secondary { color: rgb(var(--secondary)); }
.webly-agentpress-scope .mb-0 { margin-bottom: 0; }
.webly-agentpress-scope .mb-1 { margin-bottom: 0.25rem; }
.webly-agentpress-scope .mb-3 { margin-bottom: 1rem; }
.webly-agentpress-scope .mb-4 { margin-bottom: 1.5rem; }
.webly-agentpress-scope .ps-2 { padding-left: 0.5rem; }
.webly-agentpress-scope .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.webly-agentpress-scope .me-1 { margin-right: 0.25rem; }
.webly-agentpress-scope .ms-2 { margin-left: 0.5rem; }
.webly-agentpress-scope .position-relative { position: relative; }
.webly-agentpress-scope .position-absolute { position: absolute; }
.webly-agentpress-scope .top-0 { top: 0; }
.webly-agentpress-scope .end-0 { right: 0; }
.webly-agentpress-scope .p-1 { padding: 0.25rem; }
.webly-agentpress-scope .bg-success { background-color: #198754; }
.webly-agentpress-scope .border { border: 1px solid; }
.webly-agentpress-scope .border-light { border-color: #f8f9fa; }
.webly-agentpress-scope .rounded-circle { border-radius: 50%; }
.webly-agentpress-scope .img-fluid { max-width: 100%; height: auto; }
.webly-agentpress-scope .h-50 { height: 50px; }
.webly-agentpress-scope .w-50 { width: 50px; }
.webly-agentpress-scope .h-45 { height: 45px !important; }
.webly-agentpress-scope .w-45 { width: 45px !important; }
.webly-agentpress-scope .h-35 { height: 35px; }
.webly-agentpress-scope .w-35 { width: 35px; }
.webly-agentpress-scope .w-60 { width: 60px; }
.webly-agentpress-scope .d-flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}
.webly-agentpress-scope .b-r-50 { border-radius: 50%; }
.webly-agentpress-scope .b-r-16 { border-radius: 16px !important; }
.webly-agentpress-scope .b-r-16:before { border-radius: 16px !important; }
.webly-agentpress-scope .b-r-6 { border-radius: 6px; }
.webly-agentpress-scope .bg-primary { background-color: rgb(var(--primary)); }
.webly-agentpress-scope .cursor-pointer { cursor: pointer; }
.webly-agentpress-scope .f-s-12 { font-size: 12px; }
.webly-agentpress-scope .f-s-15 { font-size: 15px; }
.webly-agentpress-scope .f-s-16 { font-size: 16px; }
.webly-agentpress-scope .f-s-20 { font-size: 20px; }
.webly-agentpress-scope .f-w-500 { font-weight: 500; }
.webly-agentpress-scope .f-w-600 { font-weight: 600; }
.webly-agentpress-scope .mt-2 { margin-top: 0.5rem; }
.webly-agentpress-scope .mg-s-60 { margin-left: 60px; }
.webly-agentpress-scope .txt-ellipsis-1 {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}
.webly-agentpress-scope .bg-warning {
	background-color: rgba(var(--warning), 1);
	color: #fff;
}

/* Widget flottante: ancorato al viewport (portato su body via JS). */
/* Posizione bollino e pannello */
.webly-agentpress-scope.webly-agentpress--bottom-left:not(.webly-agentpress-inline) .landing-chatbot-box {
	right: auto !important;
	left: 1.5rem !important;
}

.webly-agentpress-scope.webly-agentpress--bottom-left:not(.webly-agentpress-inline) .landing-chatbot-panel-group {
	right: auto !important;
	left: 0 !important;
}

.webly-agentpress-scope.webly-agentpress--top-right:not(.webly-agentpress-inline) .landing-chatbot-box {
	bottom: auto !important;
	top: 1.5rem !important;
}

.webly-agentpress-scope.webly-agentpress--top-right:not(.webly-agentpress-inline) .landing-chatbot-panel-group {
	bottom: auto !important;
	top: calc(100% + 0.75rem) !important;
}

.webly-agentpress-scope.webly-agentpress--top-left:not(.webly-agentpress-inline) .landing-chatbot-box {
	right: auto !important;
	left: 1.5rem !important;
	bottom: auto !important;
	top: 1.5rem !important;
}

.webly-agentpress-scope.webly-agentpress--top-left:not(.webly-agentpress-inline) .landing-chatbot-panel-group {
	right: auto !important;
	left: 0 !important;
	bottom: auto !important;
	top: calc(100% + 0.75rem) !important;
}

.webly-agentpress-scope:not(.webly-agentpress-inline) .landing-chatbot-box {
	position: fixed !important;
	right: 1.5rem !important;
	bottom: 1.5rem !important;
	left: auto !important;
	top: auto !important;
	z-index: var(--webly-agentpress-z) !important;
	width: auto;
	height: auto;
	margin: 0;
	pointer-events: none;
}

body.wp-admin .webly-agentpress-scope.webly-agentpress-admin:not(.webly-agentpress-inline) .landing-chatbot-box {
	bottom: 2.75rem !important;
}

.webly-agentpress-scope:not(.webly-agentpress-inline) .landing-chatbot-box > * {
	pointer-events: auto;
}

.webly-agentpress-scope:not(.webly-agentpress-inline) .landing-chatbot-btn {
	position: relative;
	z-index: calc(var(--webly-agentpress-z) + 2);
	display: flex !important;
}

.webly-agentpress-scope:not(.webly-agentpress-inline) .landing-chatbot-panel-group {
	position: absolute !important;
	right: 0 !important;
	bottom: calc(100% + 0.75rem) !important;
	left: auto !important;
	top: auto !important;
	z-index: calc(var(--webly-agentpress-z) + 1) !important;
	opacity: 0;
	transform: translateY(1rem);
	transition: opacity 0.35s ease, transform 0.35s ease;
	box-shadow: var(--primary-box-shadow, 0 0.5rem 1rem rgba(0, 0, 0, 0.12));
	border-radius: var(--bs-border-radius, 0.375rem);
	overflow: hidden;
	pointer-events: none;
}

.webly-agentpress-scope:not(.webly-agentpress-inline) .landing-chatbot-panel-group.show-box {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* Pannello aperto su mobile/tablet: centrato, bollino resta in angolo */
@media screen and (max-width: 991px) {
	.webly-agentpress-scope:not(.webly-agentpress-inline) .landing-chatbot-panel-group.show-box {
		position: fixed !important;
		left: 50% !important;
		right: auto !important;
		bottom: calc(1.5rem + 3.125rem + 0.75rem) !important;
		transform: translateX(-50%) !important;
	}
}

.webly-agentpress--bottom-left:not(.webly-agentpress-inline) .landing-chatbot-box {
	right: auto !important;
	left: 1.5rem !important;
}

.webly-agentpress--bottom-left:not(.webly-agentpress-inline) .landing-chatbot-panel-group {
	right: auto !important;
	left: 0 !important;
}

.webly-agentpress-scope .landing-chatbot-panel-group .landing-chatbot-content-box {
	position: relative !important;
	right: auto !important;
	bottom: auto !important;
	width: 352px !important;
	height: 512px !important;
	min-width: 352px !important;
	min-height: 512px !important;
	max-height: min(512px, calc(100vh - 10rem)) !important;
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
	overflow: hidden;
	border-radius: var(--bs-border-radius, 0.375rem) var(--bs-border-radius, 0.375rem) 0 0;
	box-shadow: none;
	background-color: #ffffff !important;
}

.webly-agentpress-scope .landing-chatbot-panel-group {
	background-color: #ffffff;
}

.webly-agentpress-scope .landing-chatbot-panel-group.webly-agentpress-view-home .landing-chatbot-content-box {
	height: 560px !important;
	min-height: 560px !important;
	max-height: min(560px, calc(100vh - 10rem)) !important;
}

.webly-agentpress-scope .landing-chatbot-panel-group.webly-agentpress-view-inbox .landing-chatbot-content-box {
	height: 560px !important;
	min-height: 560px !important;
	max-height: min(560px, calc(100vh - 10rem)) !important;
}

.webly-agentpress-scope .landing-chatbot-panel-group.webly-agentpress-view-thread .landing-chatbot-content-box {
	height: 512px !important;
	min-height: 512px !important;
	max-height: min(512px, calc(100vh - 10rem)) !important;
}

.webly-agentpress-scope .landing-chatbot-panel-group.webly-agentpress-view-onboarding .landing-chatbot-content-box {
	height: 560px !important;
	min-height: 560px !important;
	max-height: min(560px, calc(100vh - 10rem)) !important;
}

.webly-agentpress-scope .webly-agentpress-onboarding {
	font-size: 16px;
	line-height: 1.45;
}

.webly-agentpress-scope .webly-agentpress-onboarding-heading {
	font-size: 1.25rem;
	line-height: 1.3;
	margin-bottom: 0.4rem;
}

.webly-agentpress-scope .webly-agentpress-onboarding-subtitle {
	font-size: 1rem;
	line-height: 1.45;
	margin-bottom: 1rem;
}

.webly-agentpress-scope .webly-agentpress-onboarding .form-label {
	font-size: 1rem;
	font-weight: 600;
	color: #1f2937;
}

.webly-agentpress-scope .webly-agentpress-onboarding .form-control {
	font-size: 1rem;
	min-height: 2.75rem;
	padding: 0.65rem 0.85rem;
}

.webly-agentpress-scope .webly-agentpress-onboarding-submit {
	font-size: 1rem;
	min-height: 2.75rem;
	padding: 0.55rem 1.1rem;
}

.webly-agentpress-scope .webly-agentpress-onboarding-error {
	font-size: 1rem;
}

@media screen and (max-width: 991px) {
	.webly-agentpress-scope .landing-chatbot-panel-group .landing-chatbot-content-box {
		width: min(352px, calc(100vw - 2rem)) !important;
		min-width: 0 !important;
	}
}

.webly-agentpress--bottom-left .landing-chatbot-box {
	right: auto;
	left: 1.5rem;
}

.webly-agentpress--bottom-left .landing-chatbot-panel-group {
	right: auto;
	left: 0;
}

/* Header fixed al viewport nel CSS tema: dentro il pannello */
.webly-agentpress-scope .landing-chatbot-content-box .landing-chatbot-header {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	z-index: 3;
	display: flex !important;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem !important;
	padding-right: 0.75rem !important;
	height: 56px;
	background-color: rgba(var(--primary), 1) !important;
	border-radius: var(--bs-border-radius, 0.375rem) var(--bs-border-radius, 0.375rem) 0 0;
}

.webly-agentpress-scope .landing-chatbot-header .webly-agentpress-header-title,
.webly-agentpress-scope .landing-chatbot-header .text-white {
	color: #ffffff !important;
}

.webly-agentpress-scope .landing-chatbot-close-btn {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	flex-shrink: 0;
	margin-left: auto;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px;
	min-height: 28px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22) !important;
	color: #fff !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	z-index: 5;
}

.webly-agentpress-scope .landing-chatbot-close-btn:hover {
	background: rgba(255, 255, 255, 0.35) !important;
}

.webly-agentpress-scope .landing-chatbot-close-btn .ti {
	font-size: 14px;
	color: #fff;
}

.webly-agentpress-scope .landing-chatbot-panel-group {
	overflow: visible !important;
}

.webly-agentpress-scope .landing-chatbot-panel-group .landing-chatbot-content-box {
	overflow: hidden;
}

.webly-agentpress-scope .webly-agentpress-header-brand {
	background-color: #fff !important;
}

.webly-agentpress-scope .webly-agentpress-header-avatar.webly-agentpress-header-logo {
	object-fit: contain;
	padding: 4px;
}

/* landing.html: content-list height calc(100% - 98px), margin-top 56px */
.webly-agentpress-scope .landing-chatbot-content-box .content-list,
.webly-agentpress-scope .landing-chatbot-content-box .webly-agentpress-pane-home,
.webly-agentpress-scope .landing-chatbot-content-box .webly-agentpress-pane-inbox,
.webly-agentpress-scope .landing-chatbot-content-box .webly-agentpress-pane-thread,
.webly-agentpress-scope .landing-chatbot-content-box .webly-agentpress-pane-onboarding {
	position: relative;
	height: calc(100% - 98px) !important;
	margin-top: 56px;
	padding: 1.3rem 1.7rem;
	overflow: auto;
	padding-bottom: 19px;
	background-color: #ffffff;
	color: var(--font-color);
}

.webly-agentpress-scope .landing-chatbot-content-box .webly-agentpress-pane-thread {
	padding-bottom: 4.75rem;
}

.webly-agentpress-scope .landing-chatbot-content-box .webly-agentpress-pane-home {
	overflow-x: hidden;
	overflow-y: auto;
	padding-bottom: 0.5rem;
}

.webly-agentpress-scope .landing-chatbot-content-box .webly-agentpress-pane-onboarding {
	overflow-x: hidden;
	overflow-y: auto;
	padding-bottom: 0.75rem;
	text-align: left;
}

.webly-agentpress-scope .landing-chatbot-content-box .webly-agentpress-pane-home .chatbot-new-chat {
	padding-top: 2.5rem;
	width: 100%;
}

.webly-agentpress-scope .chatbot-new-chat h2,
.webly-agentpress-scope .webly-agentpress-welcome-heading {
	margin: 0 0 1rem;
	padding: 0;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.35;
	color: #1d2327;
}

.webly-agentpress-scope .landing-chatbot-content-box .webly-agentpress-pane-home .suggestion-container {
	position: relative;
	overflow: hidden;
	margin-top: 0.5rem;
}

.webly-agentpress-scope .suggestion-container::before,
.webly-agentpress-scope .suggestion-container::after {
	content: "";
	position: absolute;
	top: 0;
	width: 72px;
	height: 100%;
	z-index: 1;
	pointer-events: none;
}

.webly-agentpress-scope .suggestion-container::before {
	left: 0;
	background-image: linear-gradient(to right, rgba(var(--white), 1), rgba(var(--white), 0.6), transparent);
}

.webly-agentpress-scope .suggestion-container::after {
	right: 0;
	background-image: linear-gradient(to left, rgba(var(--white), 1), rgba(var(--white), 0.6), transparent);
}

.webly-agentpress-scope .chatbot-suggestion-list {
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 200%;
	margin: 0 0 0 -100px;
	padding: 0;
	list-style: none;
}

.webly-agentpress-scope .chatbot-suggestion-list li {
	flex: 0 0 auto;
	white-space: nowrap;
	padding: 0.75rem 1rem;
	border: 1px solid rgba(var(--primary), 0.2);
	background-color: rgba(var(--white), 0.8);
	border-radius: var(--app-border-radius, 0.375rem);
	margin: 0.5rem;
	cursor: pointer;
	color: #1d2327;
	font-size: 14px;
	line-height: 1.3;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.webly-agentpress-scope .chatbot-suggestion-list li:hover {
	border-color: rgba(var(--primary), 0.55);
	background-color: rgba(var(--primary), 0.08);
}

.webly-agentpress-scope .chatbot-suggestion-list.scroll-left {
	animation: webly-agentpress-scroll-left 50s linear infinite;
}

.webly-agentpress-scope .chatbot-suggestion-list.scroll-right {
	margin-left: -100px;
	animation: webly-agentpress-scroll-right 50s linear infinite;
}

@keyframes webly-agentpress-scroll-left {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

@keyframes webly-agentpress-scroll-right {
	0% { transform: translateX(-20%); }
	100% { transform: translateX(0); }
}

.webly-agentpress-scope .landing-chatbot-content-box .webly-agentpress-pane-inbox {
	overflow-x: hidden;
	overflow-y: auto;
	padding-bottom: 0.5rem;
}

.webly-agentpress-scope .home-tab-chat-content .webly-agentpress-history-toolbar {
	padding: 0.25rem 0.5rem 0.5rem;
}

.webly-agentpress-scope .home-tab-chat-content .chat-data-list {
	list-style: none;
	width: 100%;
	height: auto;
	max-height: none;
	overflow: visible;
	padding: 5px 0.15rem;
	margin: 0;
}

.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data {
	position: relative;
	display: flex;
	align-items: flex-end;
	padding: 0.75rem 0.65rem;
	border-right: 3px solid transparent;
	border-top: 1px solid rgba(var(--secondary), 0.2);
	cursor: pointer;
}

.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data .flex-grow-1 {
	align-self: flex-start;
	min-width: 0;
}

.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data:before {
	content: "";
	width: 0;
	height: 100%;
	max-height: 87px;
	position: absolute;
	top: 0;
	right: 0;
	background-color: rgba(var(--primary), 0.1);
	pointer-events: none;
}

.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data:focus,
.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data.open,
.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data:hover {
	border-right: 3px solid rgba(var(--primary), 1);
	border-top: 1px solid rgba(var(--primary), 0.2);
}

.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data:focus + .chat-data,
.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data.open + .chat-data,
.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data:hover + .chat-data {
	border-top: 1px solid rgba(var(--primary), 0.2);
}

.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data:focus:before,
.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data.open:before,
.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data:hover:before {
	width: 100%;
}

.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data h6 {
	font-size: 14px;
	line-height: 1.3;
	font-weight: 500;
}

.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data:focus h6,
.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data.open h6,
.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data:hover h6 {
	color: rgba(var(--primary), 1) !important;
}

.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data .chat-message {
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: rgba(var(--secondary), 1);
	font-size: 13px;
}

.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data .chat-time {
	font-size: 12px;
	color: rgba(var(--dark), 1);
	font-weight: 600;
	margin-bottom: 0;
}

.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data .chat-timing-data {
	text-align: end;
	flex-shrink: 0;
	padding-left: 0.35rem;
}

.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data .webly-agentpress-delete-conv {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.35rem;
	padding: 0.15rem;
	border: 0;
	background: transparent;
	color: rgba(var(--dark), 1);
	cursor: pointer;
	line-height: 1;
}

.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data .webly-agentpress-delete-conv:hover,
.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data .webly-agentpress-delete-conv:focus {
	color: #b32d2e;
}

.webly-agentpress-scope .home-tab-chat-content .chat-data-list .chat-data .webly-agentpress-delete-conv i {
	font-size: 1.1rem;
}

.webly-agentpress-scope .webly-agentpress-history-empty {
	padding: 1.5rem 0.75rem;
	font-size: 13px;
}

/* landing.html: footer bottom 1rem, width calc(100% - 36px) */
.webly-agentpress-scope .landing-chatbot-content-box .landing-chatbot-footer {
	position: absolute !important;
	left: 1rem !important;
	bottom: 1rem !important;
	width: calc(100% - 36px) !important;
	z-index: 4;
}

/* Input + freccia invio (landing.html) */
.webly-agentpress-scope .landing-chatbot-footer .input-group {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	overflow: visible !important;
	flex-wrap: nowrap !important;
}

.webly-agentpress-scope .landing-chatbot-footer .form-control {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	padding: 0.5rem 2.75rem 0.5rem 0.75rem !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
	border: 2px solid rgba(var(--secondary), 0.4) !important;
	border-radius: var(--app-border-radius, 0.375rem) !important;
	background-color: rgba(var(--white), 1) !important;
	box-shadow: none !important;
	min-height: 39px !important;
	height: auto !important;
	max-height: 120px !important;
	resize: none !important;
	overflow-y: auto !important;
}

.webly-agentpress-scope .landing-chatbot-footer .form-control:focus {
	border-color: rgba(var(--primary), 0.8) !important;
	box-shadow: 0 0 0 0.25rem rgba(var(--primary), 0.3) !important;
	padding-left: 0.75rem !important;
}

.webly-agentpress-scope .landing-chatbot-footer .webly-agentpress-send-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: absolute !important;
	right: 4px !important;
	top: 2px !important;
	width: 35px !important;
	height: 35px !important;
	margin: 0 !important;
	padding: 0 !important;
	z-index: 5;
	text-decoration: none !important;
	color: rgba(var(--secondary), 1) !important;
	background: transparent !important;
	border: 0 !important;
	cursor: pointer;
	transform: none !important;
}

.webly-agentpress-scope .landing-chatbot-footer .webly-agentpress-send-btn:hover {
	color: rgba(var(--primary), 1) !important;
}

.webly-agentpress-scope .landing-chatbot-footer .webly-agentpress-send-btn.is-stop {
	color: rgba(var(--dark), 1) !important;
}

.webly-agentpress-scope .landing-chatbot-footer .webly-agentpress-send-btn.is-stop:hover {
	color: rgba(var(--danger), 1) !important;
}

.webly-agentpress-scope .landing-chatbot-footer .ti-send,
.webly-agentpress-scope .landing-chatbot-footer .ti-player-stop {
	display: inline-block !important;
	font-family: "tabler-icons" !important;
	font-style: normal;
	font-weight: 400;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	font-size: 16px !important;
	speak: none;
	-webkit-font-smoothing: antialiased;
}

/* Nav + branding sotto la card, non dentro i 512px della chat */
.webly-agentpress-scope .webly-agentpress-chrome {
	width: 352px;
	max-width: calc(100vw - 2rem);
	background: #ffffff;
	border-radius: 0;
	box-shadow: none;
	padding: 0.35rem 0.75rem 0.5rem;
}

.webly-agentpress-scope .webly-agentpress-nav {
	display: flex;
	justify-content: center;
	gap: 2.5rem;
	padding: 0.25rem 0;
	border-top: 1px solid rgba(var(--secondary), 0.15);
	height: 57px;
}

.webly-agentpress-scope .webly-agentpress-nav-btn {
	border: 0;
	background: transparent;
	padding: 0.25rem 0.75rem;
	color: rgba(var(--secondary), 1);
	font-size: 2.35rem;
	line-height: 1;
	cursor: pointer;
}

.webly-agentpress-scope .webly-agentpress-nav-btn.active {
	color: rgba(var(--primary), 1);
}

.webly-agentpress-scope .webly-agentpress-powered {
	font-size: 11px;
	color: #6b7280;
	padding-top: 0.25rem;
	text-align: center;
}

.webly-agentpress-inline .landing-chatbot-btn {
	display: none;
}

.webly-agentpress-inline .landing-chatbot-panel-group {
	opacity: 1 !important;
	transform: none !important;
	position: relative;
	right: auto;
	bottom: auto;
	margin: 0 auto;
}

.webly-agentpress-scope .team-chat-box {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin-bottom: 1.75rem;
}

.webly-agentpress-scope .team-chat-box .message-text {
	width: 100%;
	min-width: 0;
}

.webly-agentpress-scope .team-chat-box .chat-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	margin: 0.5rem 0;
}

.webly-agentpress-scope .team-chat-box .chat-info > p {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.webly-agentpress-scope .team-chat-box .chat-info > span,
.webly-agentpress-scope .team-chat-box .chat-info .text-secondary {
	flex-shrink: 0;
	white-space: nowrap;
	font-size: 11px;
	line-height: 1.2;
}

.webly-agentpress-scope .team-chat-box .chat-info .ti-clock {
	margin-right: 0.25rem;
	font-size: 11px;
}

.webly-agentpress-scope .team-chat-box.user-chat-box .chat-info {
	flex-direction: row-reverse;
}

.webly-agentpress-scope .team-chat-box.user-chat-box .team-text-box {
	margin-left: auto;
}

.webly-agentpress-scope .gap-2 {
	gap: 0.5rem;
}

.webly-agentpress-scope .f-s-18 {
	font-size: 18px;
}

.webly-agentpress-scope .text-dark {
	color: #1d2327;
}

/* chat.html: hover tools on .message-text-box */
.webly-agentpress-scope .team-text-box {
	position: relative;
}

.webly-agentpress-scope .team-text-box:hover .messenger-box-options {
	visibility: visible;
	opacity: 1;
}

.webly-agentpress-scope .team-text-box:has(.wsp-streaming) .messenger-box-options {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
}

.webly-agentpress-scope .messenger-box-options {
	position: absolute;
	right: 0;
	bottom: -28px;
	z-index: 2;
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0.5rem 0.75rem;
	list-style: none;
	background-color: #fff;
	border: 1px solid rgba(102, 112, 120, 0.4);
	border-radius: var(--app-border-radius, 0.375rem);
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.webly-agentpress-scope .user-chat-box .messenger-box-options {
	right: auto;
	left: 0;
}

.webly-agentpress-scope .messenger-box-options li {
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: 1.4;
}

.webly-agentpress-scope .messenger-box-options span {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

.webly-agentpress-scope .messenger-box-options i {
	line-height: 1.4;
	color: #1d2327;
}

.webly-agentpress-scope .messenger-box-options .like-btn.is-liked i {
	color: rgba(var(--primary), 1);
}

.webly-agentpress-scope .webly-agentpress-variant-pager {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 1.75rem;
}

.webly-agentpress-scope .webly-agentpress-variant-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0.1rem;
	border: 0;
	background: transparent;
	color: #1d2327;
	cursor: pointer;
	line-height: 1;
}

.webly-agentpress-scope .webly-agentpress-variant-nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.webly-agentpress-scope .webly-agentpress-variant-nav i {
	font-size: 18px;
	line-height: 1;
}

.webly-agentpress-scope .webly-agentpress-variant-label {
	font-size: 12px;
	font-weight: 600;
	color: rgba(var(--secondary), 1);
	min-width: 2.4rem;
	text-align: center;
}

.webly-agentpress-scope .content-list .team-text-box,
.webly-agentpress-scope .webly-agentpress-live-messages .team-text-box {
	position: relative;
	width: 100%;
	max-width: 100%;
	background-color: rgba(var(--secondary), 0.1);
	padding: 1rem;
	border-radius: var(--app-border-radius, 0.375rem);
	margin-top: 0.75rem;
}

.webly-agentpress-scope .user-chat-box .team-text-box {
	background-color: rgba(var(--primary), 1);
	color: rgba(var(--white), 1);
	margin-left: auto;
	max-width: 249px;
}

.webly-agentpress-scope .user-chat-box .team-text-box p {
	margin: 0;
	color: inherit;
}

.webly-agentpress-scope .team-text-box,
.webly-agentpress-scope .team-text-box p,
.webly-agentpress-scope .team-text-box .wsp-answer-content,
.webly-agentpress-scope .team-text-box .wsp-answer-content .wsp-p {
	word-break: normal !important;
	overflow-wrap: break-word !important;
	hyphens: none !important;
}

.webly-agentpress-scope .team-text-box .wsp-message-assistant {
	background: rgba(var(--secondary), 0.1);
	padding: 0.75rem 1rem;
	border-radius: var(--app-border-radius, 1rem);
}

.webly-agentpress-scope .wsp-feed-context-row {
	display: flex;
	justify-content: center;
	margin: 4px 0 10px;
	padding: 0 12px;
}

.webly-agentpress-scope .wsp-feed-context-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 92%;
	padding: 8px 14px;
	border: 1px solid rgba(192, 38, 211, 0.42);
	border-radius: 999px;
	background: rgba(217, 70, 239, 0.14);
	color: #a21caf;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.3;
}

.webly-agentpress-scope .wsp-feed-context-pill .ti {
	font-size: 14px;
	color: #c026d3;
}

.webly-agentpress-scope .team-text-box .wsp-typing {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 2px 0 0;
}

.webly-agentpress-scope .team-text-box .wsp-answer-content {
	font-size: 14px;
	line-height: 1.45;
}

.webly-agentpress-scope .team-text-box .wsp-error-block {
	display: block;
}

.webly-agentpress-scope .team-text-box .wsp-answer-content .wsp-ul {
	margin: 4px 0 8px 18px;
	padding: 0;
	list-style: disc;
}

.webly-agentpress-scope .team-text-box .wsp-answer-content .wsp-hr {
	border: 0;
	border-top: 1px solid #e5e7eb;
	margin: 10px 0;
}

.webly-agentpress-scope .team-text-box .wsp-answer-content .wsp-table-wrap {
	overflow-x: auto;
	margin: 8px 0 12px;
	max-width: 100%;
}

.webly-agentpress-scope .team-text-box .wsp-answer-content .wsp-table {
	width: 100%;
	min-width: 280px;
	border-collapse: collapse;
	font-size: 12px;
	line-height: 1.4;
}

.webly-agentpress-scope .team-text-box .wsp-answer-content .wsp-table th,
.webly-agentpress-scope .team-text-box .wsp-answer-content .wsp-table td {
	border: 1px solid #e5e7eb;
	padding: 6px 8px;
	text-align: left;
	vertical-align: top;
	word-break: normal;
}

.webly-agentpress-scope .team-text-box .wsp-answer-content .wsp-table th {
	background: #f9fafb;
	font-weight: 600;
}

.webly-agent-chat-notice {
	padding: 12px;
	border-radius: 8px;
	background: #fef3c7;
	color: #92400e;
	font-size: 14px;
}

body.wp-admin .webly-agentpress-scope.webly-agentpress-admin .landing-chatbot-btn.bg-primary,
body.wp-admin .webly-agentpress-scope.webly-agentpress-admin .landing-chatbot-btn {
	background-color: rgb(var(--primary));
	color: #fff;
}

body.wp-admin .webly-agentpress-scope.webly-agentpress-admin h1,
body.wp-admin .webly-agentpress-scope.webly-agentpress-admin h2,
body.wp-admin .webly-agentpress-scope.webly-agentpress-admin h3,
body.wp-admin .webly-agentpress-scope.webly-agentpress-admin h4,
body.wp-admin .webly-agentpress-scope.webly-agentpress-admin h5,
body.wp-admin .webly-agentpress-scope.webly-agentpress-admin h6 {
	margin: 0;
	padding: 0;
	color: inherit;
}

body.wp-admin .webly-agentpress-scope.webly-agentpress-admin ul {
	margin: 0;
	padding: 0;
}

body.wp-admin .webly-agentpress-scope.webly-agentpress-admin ul.messenger-box-options {
	display: flex;
	padding: 0.5rem 0.75rem;
	list-style: none;
}

body.wp-admin .webly-agentpress-scope.webly-agentpress-admin textarea {
	font-family: inherit;
}

.webly-agentpress-scope .webly-agentpress-resource-links .webly-agentpress-resource-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 8px 0 0;
	padding: 10px 12px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 12px;
	background: #fff;
}

.webly-agentpress-scope .webly-agentpress-resource-links .webly-agentpress-resource-title {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
}

.webly-agentpress-scope .webly-agentpress-resource-links a {
	font-size: 13px;
	font-weight: 600;
	color: rgb(var(--primary));
	text-decoration: none;
}

.webly-agentpress-scope .webly-agentpress-resource-links a:hover {
	text-decoration: underline;
}

/* Call-box / light icon buttons: same tokens as Agent Connect chat (admin-safe, no Bootstrap). */
.webly-agentpress-scope .align-baseline { align-items: baseline; }
.webly-agentpress-scope .text-start { text-align: left; }
.webly-agentpress-scope .text-success { color: rgb(var(--success)) !important; }
.webly-agentpress-scope .text-danger { color: rgb(var(--danger)) !important; }
.webly-agentpress-scope .text-primary { color: rgb(var(--primary)) !important; }
.webly-agentpress-scope .text-warning { color: rgb(var(--warning)) !important; }
.webly-agentpress-scope .text-info { color: rgb(var(--info)) !important; }
.webly-agentpress-scope .f-s-18 { font-size: 18px; }
.webly-agentpress-scope .me-sm-2 { margin-right: 0.5rem; }
.webly-agentpress-scope .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 1px solid transparent;
	background: transparent;
	line-height: 1;
	text-decoration: none;
	cursor: default;
}
.webly-agentpress-scope .btn.icon-btn {
	height: 37px;
	width: 37px;
	padding: 0;
	flex: 0 0 auto;
	z-index: 1;
}
.webly-agentpress-scope .btn-light-success {
	background-color: rgba(var(--success), 0.1);
	color: rgb(var(--success));
}
.webly-agentpress-scope .btn-light-danger {
	background-color: rgba(var(--danger), 0.1);
	color: rgb(var(--danger));
}
.webly-agentpress-scope .btn-light-primary {
	background-color: rgba(var(--primary), 0.1);
	color: rgb(var(--primary));
}
.webly-agentpress-scope .btn-light-warning {
	background-color: rgba(var(--warning), 0.1);
	color: rgb(var(--warning));
}
.webly-agentpress-scope .btn-light-info {
	background-color: rgba(var(--info), 0.1);
	color: rgb(var(--info));
}
.webly-agentpress-scope .message-text-box {
	width: fit-content;
	min-width: 200px;
	position: relative;
	max-width: 600px;
	font-weight: 500;
}
.webly-agentpress-scope .message-text-box.message-call {
	padding: 0.75rem 1rem;
	background-color: rgba(var(--white), 1);
	border-radius: 16px;
	box-shadow: var(--primary-box-shadow);
}
.webly-agentpress-scope .call-box {
	width: 100%;
	align-items: center;
	gap: 0;
}
.webly-agentpress-scope .call-box h6 {
	margin: 0 !important;
	padding: 0;
	font-family: inherit;
	font-size: var(--h6-font-size) !important;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}
.webly-agentpress-scope .call-box p {
	margin: 0 !important;
	padding: 0;
	font-family: inherit;
	font-size: 0.95rem !important;
	font-weight: 500;
	line-height: 1.4;
}

.webly-agentpress-scope .webly-agentpress-stream-host:empty {
	display: none;
}
