/*! AgentView SaaS Chat: chat window (v1.0.2) */

/* Everything is scoped under #avsc-root, so theme and Elementor styles stay out and
   nothing here leaks into the page. The core phone field keeps its own styles. */

#avsc-root {
	--c-blue: var(--avd-blue, #0057FF);
	--c-blue-hover: var(--avd-blue-hover, #0047D1);
	--c-cyan: #00CAF4;
	--c-black: #0A0A0A;
	--c-gray: #F4F6F8;
	--c-text: #0A0A0A;
	--c-body: #3D4654;
	--c-muted: #5B6573;
	--c-border: #E3E8EF;
	--c-inborder: #D5DCE4;
	--c-ondark: #B8C2D0;
	--c-tint: #EBF2FF;
	--c-tint-line: #B8D0FF;
	--f-head: var(--avd-font-heading, 'Givonic', system-ui, sans-serif);
	--f-body: var(--avd-font-body, 'Olive Display', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
	position: fixed;
	/* Just under the cookie banner (99980), so the banner's buttons are never covered. */
	z-index: 99970;
	right: 0;
	bottom: 0;
	width: 0;
	height: 0;
	font-family: var(--f-body);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	word-spacing: var(--avd-word-spacing, -0.06em);
	color: var(--c-text);
	text-align: left;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}

#avsc-root *:not(.avd-phone, .avd-phone *),
#avsc-root *:not(.avd-phone, .avd-phone *)::before,
#avsc-root *:not(.avd-phone, .avd-phone *)::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	text-shadow: none;
	outline: 0;
	font: inherit;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-indent: 0;
	word-spacing: inherit;
	min-width: 0;
	max-width: none;
	min-height: 0;
	float: none;
	opacity: 1;
	transform: none;
	transition: none;
	animation: none;
	list-style: none;
	vertical-align: baseline;
	-webkit-appearance: none;
	appearance: none;
}

#avsc-root [hidden] {
	display: none !important;
}

#avsc-root .avsc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

#avsc-root svg.avsc-ic {
	display: block;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

#avsc-root button,
#avsc-root a {
	cursor: pointer;
}

#avsc-root button:disabled {
	cursor: default;
}

#avsc-root :focus-visible {
	outline: 2px solid var(--c-blue);
	outline-offset: 2px;
}

#avsc-root .avsc-hero :focus-visible,
#avsc-root .avsc-head :focus-visible {
	outline-color: #FFFFFF;
}

/* ------------------------------------------------------------------ launcher */

#avsc-root .avsc-dock {
	position: fixed;
	right: 24px;
	bottom: 24px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

#avsc-root .avsc-launcher {
	position: relative;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--c-blue);
	color: #FFFFFF;
	box-shadow: 0 10px 24px rgba(0, 87, 255, 0.35);
	transition: background-color 0.15s ease, transform 0.15s ease;
}

#avsc-root .avsc-launcher:hover {
	background: var(--c-blue-hover);
	transform: translateY(-1px);
}

#avsc-root .avsc-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #FFFFFF;
	border-radius: 11px;
	background: var(--c-black);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
}

#avsc-root .avsc-teaser {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	max-width: 240px;
	padding: 12px 8px 12px 14px;
	border: 1px solid var(--c-border);
	border-radius: 16px 16px 4px 16px;
	background: #FFFFFF;
	box-shadow: 0 10px 24px rgba(10, 10, 10, 0.10);
	animation: avsc-rise 0.25s ease both;
}

#avsc-root .avsc-teaser__text {
	flex: 1;
	font-size: 14px;
	line-height: 1.45;
	color: var(--c-text);
	text-align: left;
}

#avsc-root .avsc-teaser--reply {
	align-items: center;
	padding: 10px 14px 10px 10px;
}

#avsc-root .avsc-teaser--reply .avsc-teaser__text {
	display: flex;
	flex-direction: column;
}

#avsc-root .avsc-teaser__who {
	font-size: 12px;
	color: var(--c-muted);
}

#avsc-root .avsc-teaser__line {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.4;
}

#avsc-root .avsc-teaser__x {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--c-muted);
}

#avsc-root .avsc-teaser__x:hover {
	background: var(--c-gray);
	color: var(--c-text);
}

/* --------------------------------------------------------------------- panel */

#avsc-root .avsc-panel {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 400px;
	height: min(700px, calc(100vh - 48px));
	height: min(700px, calc(100dvh - 48px));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--c-border);
	border-radius: 24px;
	background: var(--c-gray);
	box-shadow: 0 24px 60px rgba(10, 10, 10, 0.18);
	animation: avsc-rise 0.2s ease both;
}

@keyframes avsc-rise {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

#avsc-root .avsc-hbtn {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #FFFFFF;
}

#avsc-root .avsc-hbtn:hover {
	background: rgba(255, 255, 255, 0.12);
}

/* Start screen header */
#avsc-root .avsc-hero {
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 12px 10px 22px 20px;
	background: var(--c-black);
	color: #FFFFFF;
}

#avsc-root .avsc-hero__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

#avsc-root .avsc-hero__logo {
	width: 58px;
	height: 28px;
	object-fit: contain;
	object-position: left center;
	display: block;
}

#avsc-root .avsc-hero__title {
	padding-right: 10px;
	font-family: var(--f-head);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	word-spacing: normal;
	color: #FFFFFF;
}

#avsc-root .avsc-hero__sub {
	margin-top: 6px;
	padding-right: 10px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--c-ondark);
}

/* Conversation header */
#avsc-root .avsc-head {
	flex: none;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 10px 14px 6px;
	background: var(--c-black);
	color: #FFFFFF;
}

#avsc-root .avsc-head__who {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

#avsc-root .avsc-head__name {
	font-family: var(--f-head);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	word-spacing: normal;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#avsc-root .avsc-head__status {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	line-height: 1.3;
	color: var(--c-ondark);
}

#avsc-root .avsc-dot {
	width: 8px;
	height: 8px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #22C55E;
}

#avsc-root .avsc-dot--ai {
	background: var(--c-cyan);
}

#avsc-root .avsc-dot--off {
	background: #AEB8C4;
}

#avsc-root .avsc-av {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 50%;
	background: #16181D;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 600;
}

#avsc-root .avsc-av img {
	display: block;
	width: 64%;
	height: auto;
}

#avsc-root .avsc-av--photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#avsc-root .avsc-av--28 { width: 28px; height: 28px; }
#avsc-root .avsc-av--32 { width: 32px; height: 32px; }
#avsc-root .avsc-av--40 { width: 40px; height: 40px; }

/* Live chat bar */
#avsc-root .avsc-bar {
	flex: none;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 8px 0 16px;
	border-bottom: 1px solid #CDEBD8;
	background: #EAF7EF;
	color: #166534;
	font-size: 13px;
	font-weight: 600;
}

#avsc-root .avsc-bar--wait {
	border-bottom-color: #F3E2BF;
	background: #FFF4DE;
	color: #8A5A00;
}

#avsc-root .avsc-bar .avsc-dot {
	width: 10px;
	height: 10px;
}

#avsc-root .avsc-bar--wait .avsc-dot {
	background: #E0A100;
	animation: avsc-pulse 1.4s ease-in-out infinite;
}

@keyframes avsc-pulse {
	50% { opacity: 0.35; }
}

#avsc-root .avsc-bar__text {
	flex: 1;
}

#avsc-root .avsc-bar__clock {
	margin-left: 6px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

#avsc-root .avsc-bar__btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
}

/* Body and log */
#avsc-root .avsc-body {
	flex: 1;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	scrollbar-width: thin;
}

#avsc-root .avsc-body--start {
	gap: 12px;
}

#avsc-root .avsc-body > * {
	flex-shrink: 0;
}

/* Start actions */
#avsc-root .avsc-list {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--c-border);
	border-radius: 16px;
	background: #FFFFFF;
}

#avsc-root .avsc-act {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 64px;
	padding: 10px 14px;
	color: var(--c-text);
	text-align: left;
}

#avsc-root .avsc-act + .avsc-act {
	border-top: 1px solid var(--c-border);
}

#avsc-root .avsc-act:hover {
	background: #FAFBFC;
}

#avsc-root .avsc-act:focus-visible {
	outline-offset: -2px;
}

#avsc-root .avsc-act__ic {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: var(--c-tint);
	color: var(--c-blue);
}

#avsc-root .avsc-act__text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

#avsc-root .avsc-act__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

#avsc-root .avsc-act__sub {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--c-muted);
}

#avsc-root .avsc-act__sub--on {
	color: #166534;
}

#avsc-root .avsc-act__go {
	display: flex;
	color: #6B7585;
}

#avsc-root .avsc-call {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	font-size: 14px;
	font-weight: 600;
	color: var(--c-blue);
}

#avsc-root .avsc-call:hover {
	color: var(--c-blue-hover);
}

/* Messages */
#avsc-root .avsc-msg {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

#avsc-root .avsc-msg__col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

#avsc-root .avsc-msg__who {
	font-size: 12px;
	line-height: 1.3;
	color: var(--c-muted);
}

#avsc-root .avsc-bubble {
	padding: 10px 14px;
	border: 1px solid var(--c-border);
	border-radius: 6px 16px 16px 16px;
	background: #FFFFFF;
	font-size: 15px;
	line-height: 1.5;
	color: var(--c-text);
	overflow-wrap: anywhere;
}

#avsc-root .avsc-bubble strong {
	font-weight: 700;
}

#avsc-root .avsc-bubble a {
	color: var(--c-blue);
	text-decoration: underline;
}

#avsc-root .avsc-bubble ul {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 4px 0;
	padding-left: 18px;
}

#avsc-root .avsc-bubble li {
	list-style: disc;
}

#avsc-root .avsc-msg--user {
	justify-content: flex-end;
}

#avsc-root .avsc-msg--user .avsc-bubble {
	max-width: 82%;
	border: 0;
	border-radius: 16px 16px 6px 16px;
	background: var(--c-blue);
	color: #FFFFFF;
	white-space: pre-wrap;
}

#avsc-root .avsc-msg--error .avsc-bubble {
	border-color: #F5C2BD;
	background: #FDECEC;
	color: #8A1C12;
}

#avsc-root .avsc-typing {
	display: flex;
	align-items: center;
	gap: 5px;
	height: 22px;
}

#avsc-root .avsc-typing i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #AEB8C4;
	animation: avsc-blink 1.2s ease-in-out infinite;
}

#avsc-root .avsc-typing i:nth-child(2) { animation-delay: 0.15s; }
#avsc-root .avsc-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes avsc-blink {
	0%, 80%, 100% { opacity: 0.35; }
	40% { opacity: 1; }
}

#avsc-root .avsc-note {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--c-muted);
	text-align: center;
}

#avsc-root .avsc-note::before,
#avsc-root .avsc-note::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--c-inborder);
}

/* Things lined up under the bot bubbles */
#avsc-root .avsc-under {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-left: 38px;
}

#avsc-root .avsc-src {
	font-size: 12px;
	line-height: 1.5;
	color: var(--c-muted);
}

#avsc-root .avsc-src a {
	color: var(--c-muted);
	text-decoration: underline;
}

#avsc-root .avsc-src a:hover {
	color: var(--c-text);
}

#avsc-root .avsc-hint {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--c-muted);
}

#avsc-root .avsc-hint svg {
	margin-top: 2px;
}

#avsc-root .avsc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-left: 38px;
}

#avsc-root .avsc-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 6px 16px;
	border: 1px solid var(--c-tint-line);
	border-radius: 22px;
	background: var(--c-tint);
	color: var(--c-blue);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	text-align: left;
}

#avsc-root .avsc-chip:hover {
	border-color: var(--c-blue);
}

#avsc-root .avsc-chip--pick {
	border-color: var(--c-inborder);
	background: #FFFFFF;
	color: var(--c-text);
}

#avsc-root .avsc-chip--pick[aria-pressed="true"] {
	border-color: var(--c-blue);
	background: var(--c-blue);
	color: #FFFFFF;
}

/* Buttons */
#avsc-root .avsc-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	padding: 8px 16px;
	border-radius: 12px;
	background: var(--c-blue);
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	transition: background-color 0.15s ease;
}

#avsc-root .avsc-btn:hover {
	background: var(--c-blue-hover);
	color: #FFFFFF;
}

#avsc-root .avsc-btn:disabled {
	background: #8FB2FF;
}

#avsc-root .avsc-btn--ghost {
	border: 1px solid var(--c-inborder);
	background: #FFFFFF;
	color: var(--c-text);
}

#avsc-root .avsc-btn--ghost:hover {
	border-color: #AEB8C4;
	background: #FFFFFF;
	color: var(--c-text);
}

/* Cards and forms */
#avsc-root .avsc-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
	border: 1px solid var(--c-border);
	border-radius: 16px;
	background: #FFFFFF;
}

#avsc-root .avsc-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

#avsc-root .avsc-pill {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: #EEF1F5;
	color: #3D4654;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
}

#avsc-root .avsc-pill--ok { background: #E6F6EC; color: #166534; }
#avsc-root .avsc-pill--amber { background: #FFF4DE; color: #8A5A00; }
#avsc-root .avsc-pill--blue { background: var(--c-tint); color: var(--c-blue); }
#avsc-root .avsc-pill--red { background: #FDECEC; color: #B42318; }

#avsc-root .avsc-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

#avsc-root .avsc-field label {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--c-text);
}

#avsc-root .avsc-field label span {
	font-weight: 500;
	color: var(--c-muted);
}

#avsc-root .avsc-input {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid var(--c-inborder);
	border-radius: 12px;
	background: #FFFFFF;
	font-size: 16px;
	line-height: 1.4;
	color: var(--c-text);
}

#avsc-root textarea.avsc-input {
	height: 72px;
	padding: 10px 14px;
	resize: none;
}

#avsc-root .avsc-input::placeholder {
	color: #6B7585;
	opacity: 1;
}

#avsc-root .avsc-input:focus {
	border-color: var(--c-blue);
	box-shadow: 0 0 0 4px rgba(0, 87, 255, 0.14);
	outline: 0;
}

#avsc-root .avsc-field.is-bad .avsc-input,
#avsc-root .avsc-field.is-bad .avd-phone__box {
	border-color: #B42318;
}

#avsc-root .avsc-err {
	font-size: 13px;
	line-height: 1.4;
	color: #B42318;
}

#avsc-root .avsc-small {
	font-size: 12px;
	line-height: 1.5;
	color: var(--c-muted);
}

#avsc-root .avsc-small a {
	color: var(--c-muted);
	text-decoration: underline;
}

#avsc-root .avsc-small--center {
	text-align: center;
}

#avsc-root .avsc-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

#avsc-root .avd-phone {
	--ph-h: 46px;
}

/* Sent card */
#avsc-root .avsc-done {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	border: 1px solid #CDEBD8;
	border-radius: 16px;
	background: #EAF7EF;
	color: #14532D;
}

#avsc-root .avsc-done__ic {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #166534;
	color: #FFFFFF;
}

#avsc-root .avsc-done__title {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

#avsc-root .avsc-done__text {
	display: block;
	font-size: 14px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

/* Order and invoice cards */
#avsc-root .avsc-order__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

#avsc-root .avsc-order__no {
	font-family: var(--f-head);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	word-spacing: normal;
}

#avsc-root .avsc-order__title {
	display: block;
	font-size: 15px;
	line-height: 1.4;
	color: var(--c-text);
}

#avsc-root .avsc-order__sub {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--c-muted);
}

#avsc-root .avsc-rows {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 12px;
	border-top: 1px solid var(--c-border);
}

#avsc-root .avsc-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	line-height: 1.5;
}

#avsc-root .avsc-row dt {
	color: var(--c-muted);
}

#avsc-root .avsc-row dd {
	font-weight: 600;
	color: var(--c-text);
	text-align: right;
}

#avsc-root .avsc-stages {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding-top: 12px;
	border-top: 1px solid var(--c-border);
}

#avsc-root .avsc-stage {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 24px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--c-muted);
}

#avsc-root .avsc-stage__mark {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #AEB8C4;
	border-radius: 50%;
	background: #FFFFFF;
	color: #FFFFFF;
}

#avsc-root .avsc-stage__name {
	flex: 1;
}

#avsc-root .avsc-stage__extra {
	font-size: 12px;
	color: var(--c-muted);
}

#avsc-root .avsc-stage--done {
	color: var(--c-text);
}

#avsc-root .avsc-stage--done .avsc-stage__mark {
	border-color: var(--c-blue);
	background: var(--c-blue);
}

#avsc-root .avsc-stage--now {
	font-weight: 600;
	color: var(--c-text);
}

#avsc-root .avsc-stage--now .avsc-stage__mark {
	border: 6px solid var(--c-blue);
}

#avsc-root .avsc-progress {
	display: flex;
	gap: 4px;
}

#avsc-root .avsc-progress i {
	flex: 1;
	height: 6px;
	border-radius: 3px;
	background: var(--c-inborder);
}

#avsc-root .avsc-progress i.is-on {
	background: var(--c-blue);
}

/* Composer and footer */
#avsc-root .avsc-composer {
	position: relative;
	flex: none;
	display: flex;
	align-items: center;
	gap: 4px;
	min-height: 54px;
	margin: 0 16px 8px;
	padding: 5px 5px 5px 18px;
	border: 1px solid var(--c-inborder);
	border-radius: 27px;
	background: #FFFFFF;
}

#avsc-root .avsc-composer:focus-within {
	border-color: var(--c-blue);
	box-shadow: 0 0 0 4px rgba(0, 87, 255, 0.14);
}

#avsc-root .avsc-composer__input {
	flex: 1;
	height: 44px;
	max-height: 96px;
	padding: 11px 0;
	font-size: 16px;
	line-height: 1.375;
	color: var(--c-text);
	resize: none;
	overflow-y: auto;
	scrollbar-width: none;
}

#avsc-root .avsc-composer__input::placeholder {
	color: #6B7585;
	opacity: 1;
}

#avsc-root .avsc-composer__input:focus,
#avsc-root .avsc-composer__input:focus-visible {
	outline: 0;
}

#avsc-root .avsc-composer__emoji {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	align-self: flex-end;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--c-muted);
}

#avsc-root .avsc-composer__emoji[aria-expanded="true"] {
	background: var(--c-gray);
	color: var(--c-text);
}

@media (hover: hover) {
	#avsc-root .avsc-composer__emoji:hover {
		background: var(--c-gray);
		color: var(--c-text);
	}
}

/* Emoji list: opens above the message box */
#avsc-root .avsc-emoji {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(100% + 8px);
	z-index: 3;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
	gap: 2px;
	max-height: 196px;
	padding: 8px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--c-border);
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: 0 12px 32px rgba(10, 10, 10, 0.16);
}

#avsc-root .avsc-emoji[hidden] {
	display: none;
}

#avsc-root .avsc-emoji__b {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
	font-size: 22px;
	line-height: 1;
	outline-offset: -2px;
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	user-select: none;
	touch-action: manipulation;
}

#avsc-root .avsc-emoji__b:focus-visible,
#avsc-root .avsc-emoji__b:active {
	background: var(--c-gray);
}

@media (hover: hover) {
	#avsc-root .avsc-emoji__b:hover {
		background: var(--c-gray);
	}
}

#avsc-root .avsc-composer__send {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	align-self: flex-end;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--c-blue);
	color: #FFFFFF;
}

#avsc-root .avsc-composer__send:hover {
	background: var(--c-blue-hover);
}

#avsc-root .avsc-composer__send:disabled {
	background: #8FB2FF;
}

#avsc-root .avsc-foot {
	flex: none;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 0 22px 12px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--c-muted);
}

#avsc-root .avsc-foot a {
	color: var(--c-muted);
	text-decoration: underline;
}

#avsc-root .avsc-captcha:empty {
	display: none;
}

/* ------------------------------------------------------------------- phones */

@media (max-width: 480px) {
	#avsc-root .avsc-dock {
		right: 16px;
		bottom: 16px;
	}

	#avsc-root .avsc-panel {
		inset: 0;
		width: 100%;
		height: 100%;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	#avsc-root .avsc-hero {
		padding-top: max(12px, env(safe-area-inset-top));
	}

	#avsc-root .avsc-head {
		padding-top: max(14px, env(safe-area-inset-top));
	}

	#avsc-root .avsc-foot {
		padding-bottom: max(12px, env(safe-area-inset-bottom));
	}
}

@media (max-height: 560px) and (min-width: 481px) {
	#avsc-root .avsc-hero {
		padding-bottom: 14px;
	}

	#avsc-root .avsc-hero__title {
		font-size: 22px;
	}
}

html.avsc-lock,
html.avsc-lock body {
	overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
	#avsc-root .avsc-panel,
	#avsc-root .avsc-teaser,
	#avsc-root .avsc-typing i,
	#avsc-root .avsc-bar--wait .avsc-dot {
		animation: none !important;
	}

	#avsc-root .avsc-launcher {
		transition: none;
	}
}

@media print {
	#avsc-root {
		display: none !important;
	}
}
