.asa-chatbot {
	--asa-chatbot-accent: #315fa8;
	--asa-chatbot-accent-dark: #274d89;
	--asa-chatbot-accent-soft: #eaf1fc;
	--asa-chatbot-focus-ring: rgba(49, 95, 168, .14);
	--asa-chatbot-ink: #172033;
	--asa-chatbot-muted: #64748b;
	--asa-chatbot-icon-detail: #2563eb;
	--asa-chatbot-surface: #fff;
	--asa-chatbot-surface-soft: #f7f9fc;
	--asa-chatbot-border: #d9e2ec;
	position: fixed;
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 9999;
	font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--asa-chatbot-ink);
}
.asa-chatbot--bottom-right { right: max(1rem, env(safe-area-inset-right)); }
.asa-chatbot--bottom-left { left: max(1rem, env(safe-area-inset-left)); }
.asa-chatbot__launcher, .asa-chatbot__close, .asa-chatbot__submit { box-sizing: border-box; min-width: 44px; min-height: 44px; margin: 0; cursor: pointer; font: inherit; line-height: 1; text-transform: none; appearance: none; }
.asa-chatbot__launcher, .asa-chatbot__submit { background: var(--asa-chatbot-accent); color: #fff; }
.asa-chatbot__launcher { display: inline-grid; width: 3.5rem; height: 3.5rem; padding: 0; place-items: center; border: 1px solid rgba(255, 255, 255, .48); border-radius: 50%; background: linear-gradient(145deg, #4478c7, var(--asa-chatbot-accent-dark)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 .5rem 1.4rem rgba(27, 55, 95, .22); animation: asa-chatbot-launcher-enter .38s ease-out both; transition: box-shadow .18s ease, background-color .18s ease; }
.asa-chatbot__launcher:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 .7rem 1.65rem rgba(27, 55, 95, .26); }
.asa-chatbot__launcher:hover .asa-chatbot__launcher-icon { transform: translateY(-1px) scale(1.03); }
.asa-chatbot__launcher-icon, .asa-chatbot__avatar svg, .asa-chatbot__submit svg { display: block; flex: 0 0 auto; }
.asa-chatbot__launcher-icon { width: 2rem; height: 2rem; transition: transform .18s ease; }
.asa-chatbot__avatar svg { width: 1.35rem; height: 1.35rem; }
.asa-chatbot__submit svg { width: 1rem; height: 1rem; }
@keyframes asa-chatbot-launcher-enter { from { opacity: 0; transform: translateY(.35rem) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.asa-chatbot__panel {
	position: absolute;
	bottom: calc(100% + .75rem);
	width: min(24rem, calc(100vw - 2rem));
	max-height: min(38rem, calc(100dvh - 7rem));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(49, 95, 168, .24);
	border-radius: 1.25rem;
	background: var(--asa-chatbot-surface);
	box-shadow: 0 1.25rem 3.5rem rgba(15, 23, 42, .16), 0 .25rem .8rem rgba(49, 95, 168, .08);
	animation: asa-chatbot-panel-enter .2s ease-out both;
}
@keyframes asa-chatbot-panel-enter { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.asa-chatbot--bottom-right .asa-chatbot__panel { right: 0; }
.asa-chatbot--bottom-left .asa-chatbot__panel { left: 0; }
.asa-chatbot__panel[hidden] { display: none; }
.asa-chatbot__header { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; border-bottom: 1px solid var(--asa-chatbot-border); background: linear-gradient(135deg, #f8fbff, var(--asa-chatbot-accent-soft)); }
.asa-chatbot__heading { display: flex; align-items: center; gap: .75rem; }
.asa-chatbot__avatar { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border: 1px solid rgba(49, 95, 168, .18); border-radius: .8rem; background: #fff; box-shadow: 0 2px 8px rgba(49, 95, 168, .1); color: var(--asa-chatbot-accent-dark); font-size: .8rem; font-weight: 800; }
.asa-chatbot__title { margin: 0; padding: 0; color: inherit; font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.35; letter-spacing: normal; text-transform: none; }
.asa-chatbot__subtitle { margin: .1rem 0 0; color: var(--asa-chatbot-muted); font-size: .75rem; }
.asa-chatbot__close { padding: 0; border: 0; border-radius: 999px; background: transparent; color: #475569; font-size: 1.35rem; }
.asa-chatbot__close:hover { background: #f1f5f9; }
.asa-chatbot__messages { flex: 1 1 auto; min-height: 0; padding: 1rem; overflow-y: auto; background: var(--asa-chatbot-surface-soft); overscroll-behavior: contain; }
.asa-chatbot__message { position: relative; max-width: 85%; margin: 0 0 .8rem; padding: .72rem .9rem; border: 1px solid #e2e8f0; border-radius: 1rem 1rem 1rem .3rem; background: var(--asa-chatbot-surface); box-shadow: 0 2px 6px rgba(15, 23, 42, .06); white-space: pre-wrap; overflow-wrap: anywhere; }
.asa-chatbot__message::after { position: absolute; bottom: -.25rem; left: -.05rem; width: .55rem; height: .55rem; border-bottom: 1px solid #e2e8f0; border-left: 1px solid #e2e8f0; background: inherit; content: ""; pointer-events: none; transform: skewY(-28deg); }
.asa-chatbot__message--user { margin-left: auto; border-color: #cddcf3; border-radius: 1rem 1rem .3rem 1rem; background: var(--asa-chatbot-accent-soft); box-shadow: none; }
.asa-chatbot__message--user::after { right: -.05rem; left: auto; border-right: 1px solid #cddcf3; border-bottom-color: #cddcf3; border-left: 0; transform: skewY(28deg); }
.asa-chatbot__notice, .asa-chatbot__status, .asa-chatbot__error { margin: 0; padding: .45rem 1rem .35rem; font-size: .8rem; overflow-wrap: anywhere; }
.asa-chatbot__notice { margin: .4rem 1rem 0; padding: .15rem .1rem; border: 0; border-radius: 0; background: transparent; color: var(--asa-chatbot-muted); font-size: .75rem; line-height: 1.4; }
.asa-chatbot__status { color: var(--asa-chatbot-muted); }
.asa-chatbot__error { color: #b42318; }
.asa-chatbot__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem .55rem; margin: .65rem 1rem 1rem; padding: .55rem; border: 1px solid #b8c5d4; border-radius: 1rem; background: var(--asa-chatbot-surface); box-shadow: 0 2px 8px rgba(15, 23, 42, .05); transition: border-color .18s ease, box-shadow .18s ease; }
.asa-chatbot__form:focus-within { border-color: var(--asa-chatbot-accent); box-shadow: 0 0 0 3px var(--asa-chatbot-focus-ring), 0 3px 10px rgba(15, 23, 42, .06); }
.asa-chatbot__label { grid-column: 1 / -1; margin: 0 0 -.1rem; font-size: .8rem; font-weight: 700; }
.asa-chatbot__input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 2.875rem; max-height: 7rem; margin: 0; padding: .55rem .45rem; resize: vertical; border: 0; border-radius: .5rem; background: transparent; box-shadow: none; color: inherit; font: inherit; line-height: 1.45; appearance: none; }
.asa-chatbot__input::placeholder { color: #64748b; opacity: 1; }
.asa-chatbot__input:focus, .asa-chatbot__input:focus-visible { outline: 0; }
.asa-chatbot__submit { display: inline-flex; align-items: center; align-self: end; justify-content: center; gap: .35rem; padding: .65rem .9rem; border: 1px solid transparent; border-radius: 999px; box-shadow: 0 2px 5px rgba(15, 23, 42, .12); font-weight: 700; transition: transform .16s ease, background-color .18s ease, box-shadow .18s ease; }
.asa-chatbot__submit:hover:not(:disabled) { background: var(--asa-chatbot-accent-dark); box-shadow: 0 4px 9px rgba(15, 23, 42, .16); transform: translateY(-1px); }
.asa-chatbot__submit:active:not(:disabled) { box-shadow: 0 1px 3px rgba(15, 23, 42, .14); transform: translateY(0); }
.asa-chatbot__submit:disabled { cursor: wait; border-color: #526172; background: #526172; box-shadow: none; color: #fff; }
.asa-chatbot__launcher:focus-visible, .asa-chatbot__close:focus-visible, .asa-chatbot__submit:focus-visible { outline: 2px solid var(--asa-chatbot-accent); outline-offset: 3px; }
@media (max-width: 30rem) {
	.asa-chatbot { right: max(.5rem, env(safe-area-inset-right)); left: max(.5rem, env(safe-area-inset-left)); }
	.asa-chatbot__panel { right: 0; left: 0; width: auto; max-height: calc(100dvh - 6rem - env(safe-area-inset-bottom)); }
	.asa-chatbot--bottom-left .asa-chatbot__launcher { float: left; }
	.asa-chatbot--bottom-right .asa-chatbot__launcher { float: right; }
	.asa-chatbot__launcher { width: 3.25rem; height: 3.25rem; }
}
@media (max-width: 22rem) {
	.asa-chatbot__form { grid-template-columns: minmax(0, 1fr); }
	.asa-chatbot__submit { width: 100%; }
}
@media (max-height: 26rem) {
	.asa-chatbot__panel { max-height: calc(100dvh - 5rem - env(safe-area-inset-bottom)); }
	.asa-chatbot__header { padding-top: .5rem; padding-bottom: .5rem; }
	.asa-chatbot__messages { padding-top: .5rem; padding-bottom: .5rem; }
	.asa-chatbot__notice { max-height: 2.8rem; overflow-y: auto; }
	.asa-chatbot__form { margin-top: .5rem; margin-bottom: .5rem; }
	.asa-chatbot__input { min-height: 2.75rem; max-height: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
	.asa-chatbot, .asa-chatbot *, .asa-chatbot *::before, .asa-chatbot *::after { animation: none !important; scroll-behavior: auto !important; transform: none !important; transition: none !important; }
}
@media (forced-colors: active) {
	.asa-chatbot__panel, .asa-chatbot__launcher, .asa-chatbot__submit, .asa-chatbot__form { border: 2px solid ButtonText; }
	.asa-chatbot__avatar, .asa-chatbot__launcher, .asa-chatbot__message, .asa-chatbot__message--user { forced-color-adjust: auto; }
	.asa-chatbot__header, .asa-chatbot__launcher { background: Canvas; }
	.asa-chatbot__message::after { display: none; }
	.asa-chatbot__launcher-icon path:last-child { stroke: ButtonText; }
	.asa-chatbot__launcher:focus-visible, .asa-chatbot__close:focus-visible, .asa-chatbot__submit:focus-visible, .asa-chatbot__form:focus-within, .asa-chatbot__input:focus, .asa-chatbot__input:focus-visible { outline: 3px solid Highlight; outline-offset: 3px; box-shadow: none; }
}
