/* KI-Assistent – bottom sheet on desktop, full screen on phones.
 * Every rule is scoped to .dwx-ai / .dwx-ai-launch, and button/textarea
 * styles are reset explicitly because page builders style them globally. */

.dwx-ai,
.dwx-ai *,
.dwx-ai-launch,
.dwx-ai-launch * {
	box-sizing: border-box;
}

.dwx-ai [hidden] {
	display: none !important;
}

/* -------------------------------------------------------------
 * Overlay + sheet
 * ---------------------------------------------------------- */
.dwx-ai {
	position: fixed;
	inset: 0;
	z-index: 2147483645; /* one below the lead popup, so a hand-over always lands on top */
	display: none;
	align-items: flex-end;
	justify-content: center;
	background: rgba(17, 17, 17, 0);
	transition: background .3s ease;
	font-family: inherit;
	color: var(--dwx-ai-text, #1c1917);
	-webkit-font-smoothing: antialiased;
}

.dwx-ai.is-open {
	background: rgba(17, 17, 17, .42);
}

html.dwx-ai-open,
html.dwx-ai-open body {
	overflow: hidden !important;
}

.dwx-ai__sheet {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1160px, calc(100% - 32px));
	height: min(88vh, 860px);
	background: var(--dwx-ai-bg, #ffffff);
	border-radius: 26px 26px 0 0;
	box-shadow: 0 -18px 60px rgba(0, 0, 0, .18);
	overflow: hidden;
	transform: translateY(104%);
	transition: transform .34s cubic-bezier(.22, .9, .3, 1);
}

.dwx-ai.is-open .dwx-ai__sheet {
	transform: translateY(0);
}

/* -------------------------------------------------------------
 * Top bar: small centred label, round chevron close
 * ---------------------------------------------------------- */
.dwx-ai__top {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 64px;
	padding: 12px 64px;
}

.dwx-ai__label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .01em;
	opacity: .55;
	text-align: center;
}

.dwx-ai .dwx-ai__iconbtn {
	position: absolute;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: -20px 0 0;
	padding: 0;
	border: 1px solid var(--dwx-ai-border, #e9e5df);
	border-radius: 50%;
	background: var(--dwx-ai-bg, #ffffff);
	color: var(--dwx-ai-text, #1c1917);
	box-shadow: none;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}

.dwx-ai .dwx-ai__iconbtn:hover {
	background: var(--dwx-ai-soft, #f7f5f2);
}

.dwx-ai__close { right: 18px; }
.dwx-ai__new   { left: 18px; }

/* -------------------------------------------------------------
 * Scroll area + centred column
 * ---------------------------------------------------------- */
.dwx-ai__scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.dwx-ai__inner {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding: 18px 24px 28px;
}

.dwx-ai__intro {
	padding-top: clamp(8px, 4vh, 48px);
}

.dwx-ai .dwx-ai__heading {
	margin: 0 0 10px;
	padding: 0;
	font-family: inherit;
	font-size: clamp(28px, 4.2vw, 46px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.025em;
	color: var(--dwx-ai-text, #1c1917);
	text-transform: none;
}

.dwx-ai .dwx-ai__sub {
	margin: 0 0 26px;
	font-size: 16px;
	line-height: 1.5;
	opacity: .6;
	max-width: 560px;
}

/* -------------------------------------------------------------
 * Composer (pill input + round send)
 * ---------------------------------------------------------- */
.dwx-ai .dwx-ai__composer {
	position: relative;
	display: flex;
	align-items: flex-end;
	gap: 8px;
	margin: 0;
	padding: 7px 7px 7px 22px;
	background: var(--dwx-ai-soft, #f7f5f2);
	border: 1px solid var(--dwx-ai-border, #e9e5df);
	border-radius: 30px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.dwx-ai .dwx-ai__composer:focus-within {
	border-color: var(--dwx-ai-accent, #111111);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--dwx-ai-accent, #111111) 10%, transparent);
}

.dwx-ai .dwx-ai__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	min-height: 44px;
	max-height: 132px;
	margin: 0;
	padding: 11px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--dwx-ai-text, #1c1917);
	font-family: inherit;
	font-size: 16px; /* 16px stops iOS zooming into the field */
	line-height: 1.4;
	resize: none;
	outline: none;
	box-shadow: none;
}

.dwx-ai .dwx-ai__input::placeholder {
	color: currentColor;
	opacity: .45;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dwx-ai .dwx-ai__send {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0 2px 0 0;
	border: 0;
	border-radius: 50%;
	background: var(--dwx-ai-accent, #111111);
	color: var(--dwx-ai-on-accent, #ffffff);
	box-shadow: none;
	cursor: pointer;
	transition: transform .15s ease, opacity .15s ease;
}

.dwx-ai .dwx-ai__send:hover { transform: scale(1.06); }
.dwx-ai .dwx-ai__send:disabled { opacity: .4; cursor: default; transform: none; }

.dwx-ai__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

.dwx-ai__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* -------------------------------------------------------------
 * Suggestion chips (2 x 2)
 * ---------------------------------------------------------- */
.dwx-ai__chips {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 16px;
}

.dwx-ai .dwx-ai__chip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--dwx-ai-border, #e9e5df);
	border-radius: 16px;
	background: var(--dwx-ai-bg, #ffffff);
	color: var(--dwx-ai-text, #1c1917);
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.3;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.dwx-ai .dwx-ai__chip svg {
	flex: 0 0 auto;
	opacity: .45;
	transition: opacity .15s ease, transform .15s ease;
}

.dwx-ai .dwx-ai__chip:hover {
	background: var(--dwx-ai-soft, #f7f5f2);
	border-color: color-mix(in srgb, var(--dwx-ai-text, #1c1917) 22%, transparent);
}

.dwx-ai .dwx-ai__chip:hover svg {
	opacity: 1;
	transform: translate(2px, -2px);
}

/* -------------------------------------------------------------
 * Dark "request a quote" card
 * ---------------------------------------------------------- */
.dwx-ai__cta {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-top: 28px;
	padding: 26px 26px 24px;
	border-radius: 22px;
	background: var(--dwx-ai-accent, #111111);
	color: var(--dwx-ai-on-accent, #ffffff);
	overflow: hidden;
}

.dwx-ai__cta-tones {
	position: absolute;
	top: 0;
	right: 26px;
	display: flex;
	gap: 3px;
}

.dwx-ai__cta-tones i {
	display: block;
	width: 13px;
	height: 26px;
	border-radius: 0 0 4px 4px;
	background: currentColor;
}

.dwx-ai__cta-tones i:nth-child(1) { opacity: .95; }
.dwx-ai__cta-tones i:nth-child(2) { opacity: .8;  height: 34px; }
.dwx-ai__cta-tones i:nth-child(3) { opacity: .62; height: 22px; }
.dwx-ai__cta-tones i:nth-child(4) { opacity: .48; height: 30px; }
.dwx-ai__cta-tones i:nth-child(5) { opacity: .36; height: 18px; }
.dwx-ai__cta-tones i:nth-child(6) { opacity: .26; height: 26px; }
.dwx-ai__cta-tones i:nth-child(7) { opacity: .17; height: 14px; }
.dwx-ai__cta-tones i:nth-child(8) { opacity: .1;  height: 20px; }

.dwx-ai__cta-copy {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding-top: 14px;
}

.dwx-ai__cta-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .65;
}

.dwx-ai__cta-title {
	font-size: clamp(19px, 2.2vw, 24px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
}

.dwx-ai__cta-text {
	font-size: 13px;
	opacity: .6;
}

.dwx-ai .dwx-ai__cta-btn,
.dwx-ai .dwx-ai__handoff-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 13px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--dwx-ai-on-accent, #ffffff);
	color: var(--dwx-ai-accent, #111111);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
	transition: transform .15s ease;
}

.dwx-ai .dwx-ai__cta-btn:hover,
.dwx-ai .dwx-ai__handoff-btn:hover {
	transform: translateX(2px);
}

/* -------------------------------------------------------------
 * Conversation
 * ---------------------------------------------------------- */
.dwx-ai__log {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.dwx-ai__log:empty {
	display: none;
}

.dwx-ai.is-chatting .dwx-ai__inner {
	padding-top: 8px;
}

.dwx-ai__msg {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	max-width: 100%;
	animation: dwx-ai-in .28s ease both;
}

.dwx-ai__msg--user {
	justify-content: flex-end;
}

.dwx-ai__avatar {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--dwx-ai-accent, #111111);
	color: var(--dwx-ai-on-accent, #ffffff);
}

.dwx-ai__bubble {
	max-width: min(560px, 82%);
	padding: 12px 16px;
	border-radius: 20px;
	font-size: 15.5px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.dwx-ai__msg--bot .dwx-ai__bubble {
	background: var(--dwx-ai-soft, #f7f5f2);
	border-bottom-left-radius: 6px;
}

.dwx-ai__msg--user .dwx-ai__bubble {
	background: var(--dwx-ai-accent, #111111);
	color: var(--dwx-ai-on-accent, #ffffff);
	border-bottom-right-radius: 6px;
}

.dwx-ai__bubble strong { font-weight: 700; }

.dwx-ai__bubble a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dwx-ai__dots {
	display: inline-flex;
	gap: 4px;
	padding: 6px 2px;
}

.dwx-ai__dots i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	opacity: .3;
	animation: dwx-ai-dot 1.2s infinite ease-in-out;
}

.dwx-ai__dots i:nth-child(2) { animation-delay: .15s; }
.dwx-ai__dots i:nth-child(3) { animation-delay: .3s; }

/* "Denkt nach …" next to the dots, with a soft shimmer */
.dwx-ai__msg.is-typing .dwx-ai__bubble {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.dwx-ai__thinking {
	font-size: 14px;
	font-weight: 500;
	background: linear-gradient(90deg, currentColor 0%, currentColor 40%, rgba(150, 150, 150, .35) 50%, currentColor 60%, currentColor 100%);
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	opacity: .6;
	animation: dwx-ai-shimmer 1.8s linear infinite;
}

@keyframes dwx-ai-shimmer {
	from { background-position: 100% 0; }
	to   { background-position: -150% 0; }
}

/* Quick replies under the assistant's last message */
.dwx-ai__replies {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-left: 40px;
	animation: dwx-ai-in .28s ease both;
}

.dwx-ai .dwx-ai__reply {
	margin: 0;
	padding: 9px 15px;
	border: 1px solid var(--dwx-ai-border, #e9e5df);
	border-radius: 999px;
	background: var(--dwx-ai-bg, #ffffff);
	color: var(--dwx-ai-text, #1c1917);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}

.dwx-ai .dwx-ai__reply:hover {
	background: var(--dwx-ai-soft, #f7f5f2);
	border-color: color-mix(in srgb, var(--dwx-ai-text, #1c1917) 25%, transparent);
}

/* Hand-over to the form */
.dwx-ai__handoff {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-left: 40px;
	padding: 16px 16px 16px 20px;
	border-radius: 18px;
	background: var(--dwx-ai-accent, #111111);
	color: var(--dwx-ai-on-accent, #ffffff);
	font-size: 14.5px;
	line-height: 1.4;
	animation: dwx-ai-in .28s ease both;
}

/* -------------------------------------------------------------
 * Bottom dock (composer moves here once chatting) + privacy note
 * ---------------------------------------------------------- */
.dwx-ai__dock {
	flex: 0 0 auto;
	padding: 0 24px calc(14px + env(safe-area-inset-bottom, 0px));
}

.dwx-ai.is-chatting .dwx-ai__dock {
	padding-top: 12px;
	border-top: 1px solid var(--dwx-ai-border, #e9e5df);
}

.dwx-ai__dock > *,
.dwx-ai .dwx-ai__dock .dwx-ai__composer {
	max-width: 712px;
	margin-left: auto;
	margin-right: auto;
}

.dwx-ai .dwx-ai__privacy {
	margin: 10px auto 0;
	font-size: 11.5px;
	line-height: 1.45;
	text-align: center;
	opacity: .5;
}

.dwx-ai .dwx-ai__privacy a {
	color: inherit;
	text-decoration: underline;
}

.dwx-ai.is-busy .dwx-ai__composer {
	opacity: .75;
}

/* -------------------------------------------------------------
 * Floating launcher
 * ---------------------------------------------------------- */
.dwx-ai-launch {
	position: fixed;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 99979; /* just below the lead popup's button */
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 7px 18px 7px 7px;
	border: 0;
	border-radius: 999px;
	background: var(--dwx-ai-accent, #111111);
	color: var(--dwx-ai-on-accent, #ffffff);
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
	animation: dwx-ai-launch-in .5s .8s cubic-bezier(.22, .9, .3, 1) both;
}

.dwx-ai-launch--left  { left: 24px; }
.dwx-ai-launch--right { right: 24px; }

.dwx-ai-launch:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .26);
}

.dwx-ai-launch__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--dwx-ai-on-accent, #ffffff) 16%, transparent);
}

html.dwx-ai-open .dwx-ai-launch,
html.dwx-pop-lock .dwx-ai-launch {
	animation: none; /* the entrance animation's fill would otherwise keep it visible */
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* -------------------------------------------------------------
 * Phones: full screen, sized to the visible area above the keyboard
 * ---------------------------------------------------------- */
@media (max-width: 640px) {
	.dwx-ai__sheet {
		width: 100%;
		height: 100vh;
		height: var(--dwx-ai-vh, 100dvh);
		border-radius: 0;
		box-shadow: none;
	}

	.dwx-ai.is-open {
		align-items: flex-start;
	}

	.dwx-ai__top {
		min-height: 58px;
		padding: 10px 60px;
	}

	.dwx-ai__close { right: 12px; }
	.dwx-ai__new   { left: 12px; }

	.dwx-ai__inner {
		padding: 10px 16px 22px;
	}

	.dwx-ai__dock {
		padding-left: 16px;
		padding-right: 16px;
	}

	.dwx-ai .dwx-ai__sub {
		font-size: 15px;
		margin-bottom: 20px;
	}

	.dwx-ai .dwx-ai__composer {
		padding-left: 18px;
	}

	.dwx-ai .dwx-ai__chip {
		min-height: 50px;
		padding: 11px 13px;
		font-size: 13.5px;
	}

	.dwx-ai__cta {
		flex-direction: column;
		align-items: stretch;
		padding: 24px 20px 20px;
	}

	.dwx-ai__cta-tones { right: 20px; }

	.dwx-ai .dwx-ai__cta-btn {
		justify-content: center;
	}

	.dwx-ai__bubble {
		max-width: 86%;
		font-size: 15px;
	}

	.dwx-ai__replies { padding-left: 0; }

	.dwx-ai__handoff {
		flex-direction: column;
		align-items: stretch;
		margin-left: 0;
	}

	.dwx-ai .dwx-ai__handoff-btn { justify-content: center; }

	.dwx-ai-launch {
		padding-right: 16px;
		font-size: 14px;
	}

	.dwx-ai-launch--left  { left: 14px; }
	.dwx-ai-launch--right { right: 14px; }
}

@media (max-width: 370px) {
	.dwx-ai__chips { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------
 * Motion
 * ---------------------------------------------------------- */
@keyframes dwx-ai-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}

@keyframes dwx-ai-dot {
	0%, 80%, 100% { opacity: .25; transform: none; }
	40%           { opacity: .8;  transform: translateY(-3px); }
}

@keyframes dwx-ai-launch-in {
	from { opacity: 0; transform: translateY(14px) scale(.96); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.dwx-ai,
	.dwx-ai__sheet,
	.dwx-ai__msg,
	.dwx-ai__replies,
	.dwx-ai__handoff,
	.dwx-ai-launch {
		transition: none !important;
		animation: none !important;
	}
	.dwx-ai__dots i { animation: none; opacity: .5; }
	.dwx-ai__thinking { animation: none; -webkit-text-fill-color: currentColor; }
}

/* -------------------------------------------------------------
 * Theme-proofing. Themes and page builders style every <button>,
 * <textarea> and <svg> globally (padding, min-width, radius, fixed
 * heights, hidden icons). These ID-scoped !important rules pin the
 * shapes that must not change, whatever the theme does.
 * ---------------------------------------------------------- */
#dwx-ai .dwx-ai__send {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 44px !important;
	width: 44px !important;
	min-width: 44px !important;
	max-width: 44px !important;
	height: 44px !important;
	min-height: 44px !important;
	max-height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--dwx-ai-accent, #111111) !important;
	color: var(--dwx-ai-on-accent, #ffffff) !important;
	box-shadow: none !important;
	line-height: 1 !important;
	font-size: 0 !important;
	text-indent: 0 !important;
	overflow: visible !important;
}

#dwx-ai .dwx-ai__send:disabled {
	opacity: .35 !important;
}

#dwx-ai svg,
.dwx-ai-launch svg {
	display: block !important;
	flex: 0 0 auto !important;
	max-width: none !important;
	fill: none !important;
	stroke: currentColor !important;
	visibility: visible !important;
	opacity: 1;
}

#dwx-ai .dwx-ai__send svg {
	width: 18px !important;
	height: 18px !important;
	margin: 0 1px 0 -1px !important; /* the paper plane's optical centre */
}

#dwx-ai .dwx-ai__iconbtn {
	width: 40px !important;
	min-width: 40px !important;
	height: 40px !important;
	min-height: 40px !important;
	padding: 0 !important;
	border-radius: 50% !important;
	line-height: 1 !important;
}

#dwx-ai .dwx-ai__composer,
#dwx-ai .dwx-ai__composer:focus-within {
	box-shadow: none !important;
}

#dwx-ai .dwx-ai__composer {
	border: 1px solid var(--dwx-ai-border, #e9e5df) !important;
	border-radius: 30px !important;
}

#dwx-ai .dwx-ai__composer:focus-within {
	border-color: color-mix(in srgb, var(--dwx-ai-text, #1c1917) 35%, transparent) !important;
}

#dwx-ai .dwx-ai__input,
#dwx-ai .dwx-ai__input:focus {
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	border-radius: 0 !important;
	min-width: 0 !important;
	width: auto !important;
}

#dwx-ai .dwx-ai__chip,
#dwx-ai .dwx-ai__reply {
	min-width: 0 !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

#dwx-ai .dwx-ai__chip  { border-radius: 16px !important; height: auto !important; min-height: 54px !important; padding: 12px 16px !important; line-height: 1.3 !important; }
#dwx-ai .dwx-ai__reply { border-radius: 999px !important; height: auto !important; min-height: 0 !important; padding: 9px 15px !important; line-height: 1.25 !important; }
#dwx-ai .dwx-ai__cta-btn,
#dwx-ai .dwx-ai__handoff-btn { padding: 13px 22px !important; line-height: 1.2 !important; }
button.dwx-ai-launch { padding: 7px 18px 7px 7px !important; line-height: 1.2 !important; }

@media (max-width: 640px) {
	#dwx-ai .dwx-ai__chip { min-height: 50px !important; padding: 11px 13px !important; }
	button.dwx-ai-launch { padding-right: 16px !important; }
}

#dwx-ai .dwx-ai__cta-btn,
#dwx-ai .dwx-ai__handoff-btn {
	min-width: 0 !important;
	height: auto !important;
	border: 0 !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	background: var(--dwx-ai-on-accent, #ffffff) !important;
	color: var(--dwx-ai-accent, #111111) !important;
}

button.dwx-ai-launch {
	min-width: 0 !important;
	height: auto !important;
	border: 0 !important;
	border-radius: 999px !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	background: var(--dwx-ai-accent, #111111) !important;
	color: var(--dwx-ai-on-accent, #ffffff) !important;
}

/* Blinking cursor while the reply streams in */
.dwx-ai__caret {
	display: inline-block;
	width: 7px;
	height: 1em;
	margin-left: 2px;
	vertical-align: -2px;
	border-radius: 2px;
	background: currentColor;
	opacity: .55;
	animation: dwx-ai-caret 1s steps(1) infinite;
}

@keyframes dwx-ai-caret {
	50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.dwx-ai__caret { animation: none; }
}

/* -------------------------------------------------------------
 * City box launcher – frosted, translucent card
 * ---------------------------------------------------------- */
.dwx-ai-box {
	position: fixed;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 99979;
	width: 340px;
	max-width: calc(100vw - 28px);
	padding: 16px 16px 14px;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 22px;
	background: color-mix(in srgb, var(--dwx-ai-bg, #ffffff) 74%, transparent);
	-webkit-backdrop-filter: blur(18px) saturate(1.5);
	backdrop-filter: blur(18px) saturate(1.5);
	box-shadow: 0 18px 50px rgba(0, 0, 0, .16), 0 2px 8px rgba(0, 0, 0, .06), inset 0 0 0 1px rgba(0, 0, 0, .04);
	color: var(--dwx-ai-text, #1c1917);
	font-family: inherit;
	-webkit-font-smoothing: antialiased;
	animation: dwx-ai-box-in .55s 1s cubic-bezier(.22, .9, .3, 1) both;
	transition: opacity .2s ease, transform .2s ease;
}

.dwx-ai-box[hidden] { display: none !important; }

/* No blur support: a solid card instead of an unreadable one */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.dwx-ai-box { background: var(--dwx-ai-bg, #ffffff); }
}

.dwx-ai-box--left  { left: 24px; }
.dwx-ai-box--right { right: 24px; }

.dwx-ai-box.is-leaving {
	animation: none;
	opacity: 0;
	transform: translateY(10px) scale(.98);
}

.dwx-ai-box.is-shake {
	animation: dwx-ai-shake .4s ease;
}

html.dwx-ai-open .dwx-ai-box,
html.dwx-pop-lock .dwx-ai-box {
	animation: none;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.dwx-ai-box__head {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding-right: 26px; /* room for the × */
	margin-bottom: 12px;
}

.dwx-ai-box__spark {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--dwx-ai-accent, #111111);
	color: var(--dwx-ai-on-accent, #ffffff);
}

.dwx-ai-box__title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.005em;
}

.dwx-ai-box__text {
	display: block;
	margin-top: 3px;
	font-size: 12.5px;
	line-height: 1.4;
	opacity: .6;
}

button.dwx-ai-box__close {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 28px !important;
	min-width: 28px !important;
	height: 28px !important;
	min-height: 28px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(0, 0, 0, .06) !important;
	color: var(--dwx-ai-text, #1c1917) !important;
	box-shadow: none !important;
	line-height: 1 !important;
	cursor: pointer;
	transition: background .15s ease;
}

button.dwx-ai-box__close:hover { background: rgba(0, 0, 0, .12) !important; }

.dwx-ai-box svg {
	display: block !important;
	max-width: none !important;
	fill: none !important;
	stroke: currentColor !important;
	visibility: visible !important;
}

.dwx-ai-box__form {
	display: flex !important;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	padding: 5px 5px 5px 16px !important;
	border: 1px solid color-mix(in srgb, var(--dwx-ai-text, #1c1917) 12%, transparent) !important;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, .85) !important;
	box-shadow: none !important;
	transition: border-color .15s ease;
}

.dwx-ai-box__form:focus-within {
	border-color: color-mix(in srgb, var(--dwx-ai-text, #1c1917) 40%, transparent) !important;
}

.dwx-ai-box input.dwx-ai-box__input {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	height: 38px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: 0 !important;
	color: var(--dwx-ai-text, #1c1917) !important;
	font-family: inherit !important;
	font-size: 16px !important; /* no iOS zoom */
	line-height: 38px !important;
}

.dwx-ai-box input.dwx-ai-box__input::placeholder {
	color: currentColor;
	opacity: .45;
}

button.dwx-ai-box__go {
	flex: 0 0 38px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 38px !important;
	min-width: 38px !important;
	height: 38px !important;
	min-height: 38px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--dwx-ai-accent, #111111) !important;
	color: var(--dwx-ai-on-accent, #ffffff) !important;
	box-shadow: none !important;
	line-height: 1 !important;
	cursor: pointer;
	transition: transform .15s ease;
}

button.dwx-ai-box__go:hover { transform: translateX(2px); }

/* Sparkle inside the pill – only used in the compact phone version */
.dwx-ai-box__mini { display: none; }

/* Phones: just the input pill + arrow, with a small × badge on its
 * corner – no card, no heading, so it never blocks the page. */
@media (max-width: 640px) {
	/* Centred without transform, so the entrance / shake animations stay intact */
	.dwx-ai-box,
	.dwx-ai-box--left,
	.dwx-ai-box--right {
		left: 0 !important;
		right: 0 !important;
		margin: 0 auto !important;
		width: 70%;
		min-width: 240px;
		max-width: calc(100vw - 28px);
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: transparent;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		box-shadow: none;
	}

	.dwx-ai-box__head { display: none; }

	.dwx-ai-box__form {
		padding: 5px 5px 5px 12px !important;
		border: 1px solid rgba(0, 0, 0, .08) !important;
		background: color-mix(in srgb, var(--dwx-ai-bg, #ffffff) 90%, transparent) !important;
		-webkit-backdrop-filter: blur(14px) saturate(1.4);
		backdrop-filter: blur(14px) saturate(1.4);
		box-shadow: 0 10px 30px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .08) !important;
	}

	.dwx-ai-box__mini {
		display: inline-flex;
		flex: 0 0 auto;
		align-items: center;
		justify-content: center;
		width: 22px;
		height: 22px;
		margin-right: 2px;
		color: var(--dwx-ai-text, #1c1917);
		opacity: .55;
	}

	.dwx-ai-box input.dwx-ai-box__input {
		height: 36px !important;
		line-height: 36px !important;
		text-overflow: ellipsis !important;
	}

	button.dwx-ai-box__go {
		flex-basis: 36px !important;
		width: 36px !important;
		min-width: 36px !important;
		height: 36px !important;
		min-height: 36px !important;
	}

	button.dwx-ai-box__close {
		top: -9px !important;
		right: -5px !important;
		z-index: 1;
		width: 24px !important;
		min-width: 24px !important;
		height: 24px !important;
		min-height: 24px !important;
		border: 2px solid var(--dwx-ai-bg, #ffffff) !important;
		background: var(--dwx-ai-accent, #111111) !important;
		color: var(--dwx-ai-on-accent, #ffffff) !important;
		box-shadow: 0 2px 6px rgba(0, 0, 0, .2) !important;
	}

	/* Tapped into: wider, taller, the question shown above, page dimmed */
	.dwx-ai-box {
		transition: width .25s ease, bottom .2s ease, box-shadow .25s ease, opacity .2s ease;
	}

	.dwx-ai-box.is-focus {
		width: calc(100% - 24px);
		border-radius: 0;
		opacity: 1 !important;
		animation: none !important;
		/* Same tint inside the box as the spread shadow outside it: one even dim */
		background: rgba(0, 0, 0, .5);
		box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5);
	}

	.dwx-ai-box.is-focus .dwx-ai-box__head {
		display: block;
		margin: 0 0 8px;
		padding: 10px 14px;
		border-radius: 16px;
		background: var(--dwx-ai-bg, #ffffff);
		box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
		animation: dwx-ai-in .2s ease both;
	}

	.dwx-ai-box.is-focus .dwx-ai-box__spark,
	.dwx-ai-box.is-focus .dwx-ai-box__text { display: none; }

	.dwx-ai-box.is-focus .dwx-ai-box__title { font-size: 14px; }

	/* Typing: fully solid and clearly outlined – nothing see-through */
	.dwx-ai-box.is-focus .dwx-ai-box__form {
		padding: 6px 6px 6px 18px !important;
		background: var(--dwx-ai-bg, #ffffff) !important;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		border: 2px solid var(--dwx-ai-accent, #111111) !important;
		box-shadow: 0 12px 34px rgba(0, 0, 0, .35) !important;
	}

	.dwx-ai-box.is-focus input.dwx-ai-box__input {
		color: var(--dwx-ai-text, #1c1917) !important;
		-webkit-text-fill-color: var(--dwx-ai-text, #1c1917);
		opacity: 1 !important;
		caret-color: var(--dwx-ai-accent, #111111);
	}

	.dwx-ai-box.is-focus .dwx-ai-box__mini { display: none; }

	.dwx-ai-box.is-focus input.dwx-ai-box__input {
		height: 46px !important;
		line-height: 46px !important;
		font-size: 17px !important;
	}

	.dwx-ai-box.is-focus button.dwx-ai-box__go {
		flex-basis: 44px !important;
		width: 44px !important;
		min-width: 44px !important;
		height: 44px !important;
		min-height: 44px !important;
	}

	/* The × badge sits on the bar, not on the question above it */
	.dwx-ai-box.is-focus button.dwx-ai-box__close { display: none !important; }

	/* A bigger invisible tap area around the small × */
	button.dwx-ai-box__close::after {
		content: "";
		position: absolute;
		inset: -10px;
	}

	button.dwx-ai-box__close svg {
		width: 11px !important;
		height: 11px !important;
	}
}

@keyframes dwx-ai-box-in {
	from { opacity: 0; transform: translateY(16px) scale(.97); }
	to   { opacity: 1; transform: none; }
}

@keyframes dwx-ai-shake {
	0%, 100% { transform: none; }
	25% { transform: translateX(-6px); }
	50% { transform: translateX(5px); }
	75% { transform: translateX(-3px); }
}

@media (prefers-reduced-motion: reduce) {
	.dwx-ai-box,
	.dwx-ai-box.is-shake { animation: none !important; transition: none !important; }
}

/* -------------------------------------------------------------
 * Start-screen demo: a looping mini conversation (12 s) beside
 * three steps. Fixed height, so nothing around it ever moves;
 * not interactive; stops when hidden (chatting / panel closed).
 * ---------------------------------------------------------- */
.dwx-ai__demo {
	display: grid;
	grid-template-columns: 170px 1fr;
	gap: 18px;
	align-items: center;
	margin-top: 22px;
	padding: 18px 20px;
	border: 1px solid var(--dwx-ai-border, #e9e5df);
	border-radius: 22px;
	background: var(--dwx-ai-soft, #f7f5f2);
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
}

.dwx-ai__demo-eyebrow {
	display: block;
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .55;
}

.dwx-ai .dwx-ai__demo-steps {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dwx-ai .dwx-ai__demo-step {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 0;
	font-size: 13.5px;
	font-weight: 600;
	opacity: .4;
	animation: 12s ease infinite both;
}

.dwx-ai__demo-step i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1.5px solid currentColor;
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	transition: background .3s ease;
}

/* Same specificity as the shorthand above, declared after it, so the names apply */
.dwx-ai .dwx-ai__demo-step--1 { animation-name: dwx-ai-step1; }
.dwx-ai .dwx-ai__demo-step--2 { animation-name: dwx-ai-step2; }
.dwx-ai .dwx-ai__demo-step--3 { animation-name: dwx-ai-step3; }

@keyframes dwx-ai-step1 { 0%, 2% { opacity: .4; } 5%, 34% { opacity: 1; } 38%, 100% { opacity: .4; } }
@keyframes dwx-ai-step2 { 0%, 34% { opacity: .4; } 38%, 52% { opacity: 1; } 56%, 100% { opacity: .4; } }
@keyframes dwx-ai-step3 { 0%, 52% { opacity: .4; } 56%, 94% { opacity: 1; } 98%, 100% { opacity: .4; } }

/* Mini chat: four fixed slots, messages fade in and out in turn */
.dwx-ai__demo-chat {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.dwx-ai__demo-msg {
	display: grid; /* dots and text share one cell: the bubble keeps its size */
	max-width: 88%;
	padding: 8px 12px;
	border-radius: 14px;
	font-size: 13px;
	line-height: 1.4;
	animation: 12s ease infinite both; /* the keyframes fade it in/out; without them it simply shows */
}

.dwx-ai__demo-msg > * { grid-area: 1 / 1; }

.dwx-ai__demo-msg--user {
	align-self: flex-end;
	border-bottom-right-radius: 4px;
	background: var(--dwx-ai-accent, #111111);
	color: var(--dwx-ai-on-accent, #ffffff);
}

.dwx-ai__demo-msg--bot {
	align-self: flex-start;
	border-bottom-left-radius: 4px;
	background: var(--dwx-ai-bg, #ffffff);
	border: 1px solid var(--dwx-ai-border, #e9e5df);
}

.dwx-ai__demo-m1 { animation-name: dwx-ai-demo-m1; }
.dwx-ai__demo-m2 { animation-name: dwx-ai-demo-m2; }
.dwx-ai__demo-m3 { animation-name: dwx-ai-demo-m3; }
.dwx-ai__demo-m4 { animation-name: dwx-ai-demo-m4; }

@keyframes dwx-ai-demo-m1 { 0%, 3% { opacity: 0; transform: translateY(6px); } 6%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes dwx-ai-demo-m2 { 0%, 11% { opacity: 0; transform: translateY(6px); } 14%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes dwx-ai-demo-m3 { 0%, 37% { opacity: 0; transform: translateY(6px); } 40%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes dwx-ai-demo-m4 { 0%, 52% { opacity: 0; transform: translateY(6px); } 55%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

/* Inside the two bot bubbles: typing dots first, then the text */
.dwx-ai__demo-dots {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	opacity: 0;
	animation: 12s linear infinite both;
}

.dwx-ai__demo-dots i {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
	opacity: .35;
	animation: dwx-ai-dot 1.2s infinite ease-in-out;
}

.dwx-ai__demo-dots i:nth-child(2) { animation-delay: .15s; }
.dwx-ai__demo-dots i:nth-child(3) { animation-delay: .3s; }

.dwx-ai__demo-msg > span {
	animation: 12s ease infinite both;
}

.dwx-ai__demo-m2 .dwx-ai__demo-dots { animation-name: dwx-ai-demo-dots2; }
.dwx-ai__demo-m2 > span             { animation-name: dwx-ai-demo-text2; }
.dwx-ai__demo-m4 .dwx-ai__demo-dots { animation-name: dwx-ai-demo-dots4; }
.dwx-ai__demo-m4 > span             { animation-name: dwx-ai-demo-text4; }

@keyframes dwx-ai-demo-dots2 { 0%, 21% { opacity: 1; } 22%, 100% { opacity: 0; } }
@keyframes dwx-ai-demo-text2 { 0%, 21% { opacity: 0; } 23%, 100% { opacity: 1; } }
@keyframes dwx-ai-demo-dots4 { 0%, 62% { opacity: 1; } 63%, 100% { opacity: 0; } }
@keyframes dwx-ai-demo-text4 { 0%, 62% { opacity: 0; } 64%, 100% { opacity: 1; } }

.dwx-ai__demo-ok {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin-right: 4px;
	border-radius: 50%;
	background: var(--dwx-ai-accent, #111111);
	color: var(--dwx-ai-on-accent, #ffffff);
	font-size: 10px;
	font-style: normal;
	font-weight: 700;
	vertical-align: 1px;
}

@media (max-width: 640px) {
	.dwx-ai__demo {
		grid-template-columns: 1fr;
		gap: 12px;
		padding: 14px;
	}
	.dwx-ai .dwx-ai__demo-steps {
		flex-direction: row;
		justify-content: space-between;
		gap: 6px;
	}
	.dwx-ai .dwx-ai__demo-step {
		gap: 5px;
		font-size: 12px;
	}
	.dwx-ai__demo-step i { width: 19px; height: 19px; font-size: 10px; }
	.dwx-ai__demo-eyebrow { margin-bottom: 8px; }
	.dwx-ai__demo-msg { font-size: 12.5px; }
}

/* Reduced motion: the demo still plays, but only as soft fades – no
 * sliding, no bouncing dots (!important beats the animated transforms). */
@media (prefers-reduced-motion: reduce) {
	.dwx-ai__demo-msg,
	.dwx-ai__demo-dots i {
		transform: none !important;
	}
	.dwx-ai__demo-dots i { animation: none !important; opacity: .45; }
}


/* -------------------------------------------------------------
 * Subtle form link (instead of a big card)
 * ---------------------------------------------------------- */
.dwx-ai__formlink {
	padding-left: 40px;
	margin-top: -4px;
	animation: dwx-ai-in .28s ease both;
}

#dwx-ai .dwx-ai__formlink button {
	display: inline-flex !important;
	align-items: center;
	gap: 5px;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 2px 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--dwx-ai-text, #1c1917) !important;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	text-decoration: underline;
	text-underline-offset: 3px;
	opacity: .6;
	cursor: pointer;
	transition: opacity .15s ease;
}

#dwx-ai .dwx-ai__formlink button:hover { opacity: 1; }

/* -------------------------------------------------------------
 * In-chat demo under the request for contact details
 * ---------------------------------------------------------- */
.dwx-ai__idemo {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	align-self: flex-end;
	max-width: min(420px, 90%);
	padding: 10px 12px;
	border: 1px dashed color-mix(in srgb, var(--dwx-ai-text, #1c1917) 22%, transparent);
	border-radius: 16px;
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
	animation: dwx-ai-in .3s ease both;
}

.dwx-ai__idemo-label {
	align-self: flex-start;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .5;
}

.dwx-ai__idemo-bubble {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 6px 12px;
	border-radius: 14px 14px 4px 14px;
	background: var(--dwx-ai-accent, #111111);
	color: var(--dwx-ai-on-accent, #ffffff);
	font-size: 13px;
	line-height: 1.35;
	opacity: .85;
}

/* The finished text sizes the bubble invisibly; the typed text sits on top – no jiggling */
.dwx-ai__idemo-bubble { display: inline-grid; }
.dwx-ai__idemo-size,
.dwx-ai__idemo-live { grid-area: 1 / 1; }
.dwx-ai__idemo-size { visibility: hidden; padding-right: 4px; }

.dwx-ai__idemo-caret {
	display: inline-block;
	width: 2px;
	height: 1em;
	margin-left: 2px;
	background: currentColor;
	animation: dwx-ai-caret 1s steps(1) infinite;
}

.dwx-ai__idemo.is-done .dwx-ai__idemo-caret { visibility: hidden; }

.dwx-ai__idemo-done {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .3s ease, transform .3s ease;
}

.dwx-ai__idemo-done b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--dwx-ai-accent, #111111);
	color: var(--dwx-ai-on-accent, #ffffff);
	font-size: 10px;
}

.dwx-ai__idemo.is-done .dwx-ai__idemo-done {
	opacity: .75;
	transform: none;
}

@media (max-width: 640px) {
	.dwx-ai__formlink { padding-left: 0; }
	.dwx-ai__idemo { max-width: 100%; }
}

/* -------------------------------------------------------------
 * Phones (iOS Safari first): the panel is sized and positioned by the
 * script to the visible area above the keyboard. Only the conversation
 * scrolls; the page behind stays still; the notch is respected.
 * ---------------------------------------------------------- */
@media (max-width: 640px) {
	.dwx-ai {
		overscroll-behavior: none;
	}
	.dwx-ai__sheet {
		height: 100% !important;      /* = the visible area, set on the panel by the script */
		max-height: none;
	}
	.dwx-ai__dock {
		touch-action: manipulation;   /* no double-tap zoom on the send button */
	}
	.dwx-ai__top {
		padding-top: calc(10px + env(safe-area-inset-top, 0px));
		min-height: calc(58px + env(safe-area-inset-top, 0px));
	}
	.dwx-ai .dwx-ai__iconbtn {
		top: calc(50% + env(safe-area-inset-top, 0px) / 2);
	}
	html.dwx-ai-open,
	html.dwx-ai-open body {
		height: 100%;
		overscroll-behavior: none;
	}
}


/* -------------------------------------------------------------
 * Phones: the city box, larger and unmistakably an AI assistant.
 * Nearly full width, 56px, solid surface, round AI icon on the
 * left, a softly moving gradient edge. The typing state (.is-focus,
 * defined above with stronger selectors) is unchanged.
 * ---------------------------------------------------------- */
@media (max-width: 640px) {
	.dwx-ai-box,
	.dwx-ai-box--left,
	.dwx-ai-box--right {
		width: calc(100% - 28px);
		max-width: 460px;
		min-width: 0;
	}

	.dwx-ai-box__form {
		gap: 8px;
		padding: 6px !important;
		border: 2px solid transparent !important;
		background:
			linear-gradient(var(--dwx-ai-bg, #ffffff), var(--dwx-ai-bg, #ffffff)) padding-box,
			linear-gradient(110deg,
				var(--dwx-ai-accent, #111111) 0%,
				color-mix(in srgb, var(--dwx-ai-accent, #111111) 22%, #ffffff) 45%,
				var(--dwx-ai-accent, #111111) 70%,
				color-mix(in srgb, var(--dwx-ai-accent, #111111) 22%, #ffffff) 100%) border-box !important;
		background-size: 100% 100%, 250% 100% !important;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		box-shadow: 0 14px 34px rgba(0, 0, 0, .22), 0 3px 8px rgba(0, 0, 0, .10) !important;
		animation: dwx-ai-edge 6s linear infinite;
	}

	/* Round AI icon on the left */
	.dwx-ai-box__mini {
		width: 40px;
		height: 40px;
		margin: 0;
		border-radius: 50%;
		background: var(--dwx-ai-accent, #111111);
		color: var(--dwx-ai-on-accent, #ffffff);
		opacity: 1;
	}

	.dwx-ai-box__mini svg {
		width: 18px !important;
		height: 18px !important;
	}

	.dwx-ai-box input.dwx-ai-box__input {
		height: 40px !important;
		line-height: 40px !important;
		font-size: 16px !important;  /* no iOS zoom */
		font-weight: 500 !important;
		padding-left: 4px !important;
	}

	.dwx-ai-box input.dwx-ai-box__input::placeholder {
		opacity: .55;
	}

	button.dwx-ai-box__go {
		flex-basis: 40px !important;
		width: 40px !important;
		min-width: 40px !important;
		height: 40px !important;
		min-height: 40px !important;
	}

	button.dwx-ai-box__go svg {
		width: 18px !important;
		height: 18px !important;
	}

	button.dwx-ai-box__close {
		top: -10px !important;
		right: -4px !important;
		width: 26px !important;
		min-width: 26px !important;
		height: 26px !important;
		min-height: 26px !important;
	}

	/* The moving edge stops while typing (solid outline there). */
	.dwx-ai-box.is-focus .dwx-ai-box__form { animation: none; }
}

@keyframes dwx-ai-edge {
	from { background-position: 0 0, 0% 0; }
	to   { background-position: 0 0, 250% 0; }
}

@media (prefers-reduced-motion: reduce) {
	.dwx-ai-box__form { animation: none !important; }
}

/* -------------------------------------------------------------
 * Desktop: the city box as a prominent, solid card – larger,
 * the same moving gradient edge as on phones, an "online" AI
 * icon, bigger headline and input, one gentle nudge after it
 * appears, a slight lift on hover.
 * ---------------------------------------------------------- */
@media (min-width: 641px) {
	.dwx-ai-box {
		width: 380px;
		padding: 18px 18px 16px;
		border: 2px solid transparent;
		border-radius: 24px;
		background:
			linear-gradient(var(--dwx-ai-bg, #ffffff), var(--dwx-ai-bg, #ffffff)) padding-box,
			linear-gradient(110deg,
				var(--dwx-ai-accent, #111111) 0%,
				color-mix(in srgb, var(--dwx-ai-accent, #111111) 20%, #ffffff) 45%,
				var(--dwx-ai-accent, #111111) 70%,
				color-mix(in srgb, var(--dwx-ai-accent, #111111) 20%, #ffffff) 100%) border-box;
		background-size: 100% 100%, 250% 100%;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		box-shadow: 0 26px 60px rgba(0, 0, 0, .22), 0 6px 16px rgba(0, 0, 0, .08);
		animation:
			dwx-ai-box-in .55s 1s cubic-bezier(.22, .9, .3, 1) both,
			dwx-ai-edge 6s linear infinite,
			dwx-ai-nudge .9s 7s ease-in-out 1;
	}

	.dwx-ai-box:hover {
		transform: translateY(-3px);
		box-shadow: 0 32px 70px rgba(0, 0, 0, .26), 0 8px 20px rgba(0, 0, 0, .10);
	}

	.dwx-ai-box__head {
		gap: 12px;
		margin-bottom: 14px;
	}

	/* AI icon with a small "online" dot */
	.dwx-ai-box__spark {
		position: relative;
		width: 42px;
		height: 42px;
	}

	.dwx-ai-box__spark svg {
		width: 19px !important;
		height: 19px !important;
	}

	.dwx-ai-box__spark::after {
		content: "";
		position: absolute;
		right: -1px;
		bottom: -1px;
		width: 11px;
		height: 11px;
		border-radius: 50%;
		background: #22c55e;
		border: 2px solid var(--dwx-ai-bg, #ffffff);
	}

	.dwx-ai-box__title {
		font-size: 17px;
		line-height: 1.3;
	}

	.dwx-ai-box__text {
		font-size: 13px;
		opacity: .65;
	}

	.dwx-ai-box__form {
		padding: 6px 6px 6px 18px !important;
		background: var(--dwx-ai-soft, #f7f5f2) !important;
	}

	.dwx-ai-box input.dwx-ai-box__input {
		height: 44px !important;
		line-height: 44px !important;
		font-size: 15.5px !important;
	}

	button.dwx-ai-box__go {
		flex-basis: 44px !important;
		width: 44px !important;
		min-width: 44px !important;
		height: 44px !important;
		min-height: 44px !important;
	}

	.dwx-ai-box.is-leaving,
	html.dwx-ai-open .dwx-ai-box,
	html.dwx-pop-lock .dwx-ai-box {
		animation: none;
	}
}

@keyframes dwx-ai-nudge {
	0%, 100% { transform: none; }
	20%      { transform: translateY(-8px); }
	40%      { transform: translateY(0); }
	60%      { transform: translateY(-4px); }
	80%      { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.dwx-ai-box { animation: none !important; }
	.dwx-ai-box:hover { transform: none; }
}

/* =============================================================
 * City box, round 3: bigger on desktop, a real card with heading
 * on phones, and × minimises to a floating AI button instead of
 * removing the assistant.
 * ========================================================== */

/* ---------- Desktop: bigger and more prominent ---------- */
@media (min-width: 641px) {
	.dwx-ai-box {
		width: 420px;
		padding: 22px 22px 20px;
		border-radius: 26px;
	}
	.dwx-ai-box__head { gap: 14px; margin-bottom: 16px; padding-right: 30px; }
	.dwx-ai-box__spark { width: 48px; height: 48px; }
	.dwx-ai-box__spark svg { width: 22px !important; height: 22px !important; }
	.dwx-ai-box__spark::after { width: 12px; height: 12px; }
	.dwx-ai-box__title { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
	.dwx-ai-box__text { font-size: 14px; margin-top: 5px; }
	.dwx-ai-box input.dwx-ai-box__input { height: 48px !important; line-height: 48px !important; font-size: 16px !important; }
	button.dwx-ai-box__go { flex-basis: 48px !important; width: 48px !important; min-width: 48px !important; height: 48px !important; min-height: 48px !important; }
	button.dwx-ai-box__go svg { width: 19px !important; height: 19px !important; }
	button.dwx-ai-box__close { top: 14px !important; right: 14px !important; width: 30px !important; min-width: 30px !important; height: 30px !important; min-height: 30px !important; }

	/* Coming back from the floating button: no 1s delay, no second nudge */
	.dwx-ai-box.is-back {
		animation: dwx-ai-box-in .35s cubic-bezier(.22, .9, .3, 1) both, dwx-ai-edge 6s linear infinite;
	}
}

/* ---------- Phones: a compact card with its heading back ---------- */
@media (max-width: 640px) {
	.dwx-ai-box,
	.dwx-ai-box--left,
	.dwx-ai-box--right {
		width: calc(100% - 24px);
		max-width: 480px;
		padding: 14px 14px 12px;
		border: 2px solid transparent;
		border-radius: 22px;
		background:
			linear-gradient(var(--dwx-ai-bg, #ffffff), var(--dwx-ai-bg, #ffffff)) padding-box,
			linear-gradient(110deg,
				var(--dwx-ai-accent, #111111) 0%,
				color-mix(in srgb, var(--dwx-ai-accent, #111111) 22%, #ffffff) 45%,
				var(--dwx-ai-accent, #111111) 70%,
				color-mix(in srgb, var(--dwx-ai-accent, #111111) 22%, #ffffff) 100%) border-box;
		background-size: 100% 100%, 250% 100%;
		box-shadow: 0 16px 40px rgba(0, 0, 0, .24), 0 3px 10px rgba(0, 0, 0, .10);
		animation: dwx-ai-box-in .55s 1s cubic-bezier(.22, .9, .3, 1) both, dwx-ai-edge 6s linear infinite;
	}
	.dwx-ai-box.is-back {
		animation: dwx-ai-box-in .35s cubic-bezier(.22, .9, .3, 1) both, dwx-ai-edge 6s linear infinite;
	}

	/* Heading: AI icon + the question, one compact row */
	.dwx-ai-box__head {
		display: flex;
		align-items: center;
		gap: 10px;
		margin: 0 0 10px;
		padding-right: 34px;
	}
	.dwx-ai-box__spark {
		display: inline-flex;
		position: relative;
		width: 34px;
		height: 34px;
	}
	.dwx-ai-box__spark svg { width: 16px !important; height: 16px !important; }
	.dwx-ai-box__spark::after {
		content: "";
		position: absolute;
		right: -1px;
		bottom: -1px;
		width: 10px;
		height: 10px;
		border-radius: 50%;
		background: #22c55e;
		border: 2px solid var(--dwx-ai-bg, #ffffff);
	}
	.dwx-ai-box__title { font-size: 15.5px; font-weight: 700; line-height: 1.25; }
	.dwx-ai-box__text { display: none; }

	/* The field inside the card: calm, no second gradient */
	.dwx-ai-box__form {
		padding: 5px 5px 5px 16px !important;
		border: 1px solid var(--dwx-ai-border, #e9e5df) !important;
		background: var(--dwx-ai-soft, #f7f5f2) !important;
		box-shadow: none !important;
		animation: none;
	}
	.dwx-ai-box__mini { display: none; }
	.dwx-ai-box input.dwx-ai-box__input { height: 42px !important; line-height: 42px !important; }
	button.dwx-ai-box__go { flex-basis: 42px !important; width: 42px !important; min-width: 42px !important; height: 42px !important; min-height: 42px !important; }

	/* × inside the card's corner (no badge hanging off the edge) */
	button.dwx-ai-box__close {
		top: 12px !important;
		right: 12px !important;
		width: 30px !important;
		min-width: 30px !important;
		height: 30px !important;
		min-height: 30px !important;
		border: 0 !important;
		background: rgba(0, 0, 0, .06) !important;
		color: var(--dwx-ai-text, #1c1917) !important;
		box-shadow: none !important;
	}
	button.dwx-ai-box__close svg { width: 13px !important; height: 13px !important; }

	/* Typing: same card, solid, page dimmed around it */
	.dwx-ai-box.is-focus {
		width: calc(100% - 24px);
		border-radius: 22px;
		animation: none !important;
		background:
			linear-gradient(var(--dwx-ai-bg, #ffffff), var(--dwx-ai-bg, #ffffff)) padding-box,
			linear-gradient(var(--dwx-ai-accent, #111111), var(--dwx-ai-accent, #111111)) border-box;
		box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5), 0 16px 40px rgba(0, 0, 0, .3);
	}
	.dwx-ai-box.is-focus .dwx-ai-box__head {
		margin: 0 0 10px;
		padding: 0 34px 0 0;
		background: none;
		box-shadow: none;
		display: flex;
	}
	.dwx-ai-box.is-focus .dwx-ai-box__spark { display: inline-flex; }
	.dwx-ai-box.is-focus .dwx-ai-box__form {
		padding: 5px 5px 5px 16px !important;
		border: 1.5px solid var(--dwx-ai-accent, #111111) !important;
		background: var(--dwx-ai-bg, #ffffff) !important;
		box-shadow: none !important;
	}
}

/* ---------- The minimised floating AI button ---------- */
.dwx-ai-mini[hidden] { display: none !important; }

button.dwx-ai-mini {
	position: fixed;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 99979;
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	height: auto !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 7px 18px 7px 7px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--dwx-ai-accent, #111111) !important;
	color: var(--dwx-ai-on-accent, #ffffff) !important;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .28) !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}
button.dwx-ai-mini:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 0, 0, .32) !important; }
.dwx-ai-mini--left  { left: 24px; }
.dwx-ai-mini--right { right: 24px; }
.dwx-ai-mini.is-new { animation: dwx-ai-launch-in .4s cubic-bezier(.22, .9, .3, 1) both; }

.dwx-ai-mini__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--dwx-ai-on-accent, #ffffff) 16%, transparent);
}
.dwx-ai-mini__icon::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #22c55e;
	border: 2px solid var(--dwx-ai-accent, #111111);
}
.dwx-ai-mini svg { display: block !important; fill: none !important; stroke: currentColor !important; }

html.dwx-ai-open .dwx-ai-mini,
html.dwx-pop-lock .dwx-ai-mini {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Phones: a round button on the left edge, above the bottom bar */
@media (max-width: 640px) {
	button.dwx-ai-mini,
	button.dwx-ai-mini--left,
	button.dwx-ai-mini--right {
		left: 14px !important;
		right: auto !important;
		width: 60px !important;
		height: 60px !important;
		padding: 0 !important;
		justify-content: center;
	}
	.dwx-ai-mini__label { display: none; }
	.dwx-ai-mini__icon { width: 60px; height: 60px; background: none; }
	.dwx-ai-mini__icon svg { width: 26px !important; height: 26px !important; }
	.dwx-ai-mini__icon::after { right: 8px; bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.dwx-ai-mini, .dwx-ai-mini.is-new { animation: none !important; transition: none !important; }
}

/* Width includes padding and border (the card was wider than the screen on phones) */
.dwx-ai-box,
.dwx-ai-box *,
.dwx-ai-mini,
.dwx-ai-mini * { box-sizing: border-box; }
@media (min-width: 641px) {
	.dwx-ai-box { width: 460px; max-width: calc(100vw - 48px); }
}

/* =============================================================
 * City box, round 4
 * Desktop: bottom-centre, wide, one row (heading left, field right).
 * Phones: back to the single input bar (no heading) with the ×
 * badge on its corner. Minimised: floating button bottom-right on both.
 * ========================================================== */

/* ---------- Desktop ---------- */
@media (min-width: 641px) {
	.dwx-ai-box,
	.dwx-ai-box--left,
	.dwx-ai-box--right {
		left: 0 !important;
		right: 0 !important;
		bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
		margin: 0 auto !important;
		width: min(780px, calc(100vw - 48px));
		max-width: none;
		display: flex;
		align-items: center;
		gap: 22px;
		padding: 18px 64px 18px 20px;
		border-radius: 999px;
	}
	.dwx-ai-box[hidden] { display: none !important; }

	.dwx-ai-box__head {
		flex: 0 1 46%;
		align-items: center;
		margin: 0;
		padding: 0;
		gap: 14px;
	}
	.dwx-ai-box__title { font-size: 19px; line-height: 1.25; }
	.dwx-ai-box__text { font-size: 13.5px; margin-top: 3px; }

	.dwx-ai-box__form {
		flex: 1 1 auto;
		min-width: 0;
	}

	button.dwx-ai-box__close {
		top: 50% !important;
		right: 18px !important;
		margin-top: -15px !important;
	}
}

/* ---------- Phones: the single input bar again ---------- */
@media (max-width: 640px) {
	.dwx-ai-box,
	.dwx-ai-box--left,
	.dwx-ai-box--right {
		width: calc(100% - 28px);
		max-width: 460px;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: transparent;
		box-shadow: none;
		animation: dwx-ai-box-in .55s 1s cubic-bezier(.22, .9, .3, 1) both;
	}
	.dwx-ai-box.is-back { animation: dwx-ai-box-in .35s cubic-bezier(.22, .9, .3, 1) both; }

	.dwx-ai-box__head { display: none; }

	.dwx-ai-box__form {
		gap: 8px;
		padding: 6px !important;
		border: 2px solid transparent !important;
		background:
			linear-gradient(var(--dwx-ai-bg, #ffffff), var(--dwx-ai-bg, #ffffff)) padding-box,
			linear-gradient(110deg,
				var(--dwx-ai-accent, #111111) 0%,
				color-mix(in srgb, var(--dwx-ai-accent, #111111) 22%, #ffffff) 45%,
				var(--dwx-ai-accent, #111111) 70%,
				color-mix(in srgb, var(--dwx-ai-accent, #111111) 22%, #ffffff) 100%) border-box !important;
		background-size: 100% 100%, 250% 100% !important;
		box-shadow: 0 14px 34px rgba(0, 0, 0, .22), 0 3px 8px rgba(0, 0, 0, .10) !important;
		animation: dwx-ai-edge 6s linear infinite;
	}

	.dwx-ai-box__mini {
		display: inline-flex;
		flex: 0 0 auto;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		margin: 0;
		border-radius: 50%;
		background: var(--dwx-ai-accent, #111111);
		color: var(--dwx-ai-on-accent, #ffffff);
		opacity: 1;
	}
	.dwx-ai-box__mini svg { width: 18px !important; height: 18px !important; }

	.dwx-ai-box input.dwx-ai-box__input {
		height: 40px !important;
		line-height: 40px !important;
		font-size: 16px !important;
		font-weight: 500 !important;
		padding-left: 4px !important;
	}
	button.dwx-ai-box__go { flex-basis: 40px !important; width: 40px !important; min-width: 40px !important; height: 40px !important; min-height: 40px !important; }

	/* × as a small badge on the bar's corner */
	button.dwx-ai-box__close {
		top: -10px !important;
		right: -4px !important;
		z-index: 1;
		width: 26px !important;
		min-width: 26px !important;
		height: 26px !important;
		min-height: 26px !important;
		margin: 0 !important;
		border: 2px solid var(--dwx-ai-bg, #ffffff) !important;
		background: var(--dwx-ai-accent, #111111) !important;
		color: var(--dwx-ai-on-accent, #ffffff) !important;
		box-shadow: 0 2px 6px rgba(0, 0, 0, .22) !important;
	}
	button.dwx-ai-box__close svg { width: 11px !important; height: 11px !important; }

	/* Typing: wider, the question shown above, page dimmed, solid field */
	.dwx-ai-box.is-focus {
		width: calc(100% - 24px);
		border-radius: 0;
		animation: none !important;
		background: rgba(0, 0, 0, .5);
		box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5);
	}
	.dwx-ai-box.is-focus .dwx-ai-box__head {
		display: block;
		margin: 0 0 8px;
		padding: 10px 14px;
		border-radius: 16px;
		background: var(--dwx-ai-bg, #ffffff);
		box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
	}
	.dwx-ai-box.is-focus .dwx-ai-box__spark,
	.dwx-ai-box.is-focus .dwx-ai-box__text,
	.dwx-ai-box.is-focus .dwx-ai-box__mini { display: none; }
	.dwx-ai-box.is-focus .dwx-ai-box__title { font-size: 14px; }
	.dwx-ai-box.is-focus .dwx-ai-box__form {
		padding: 6px 6px 6px 18px !important;
		border: 2px solid var(--dwx-ai-accent, #111111) !important;
		background: var(--dwx-ai-bg, #ffffff) !important;
		box-shadow: 0 12px 34px rgba(0, 0, 0, .35) !important;
		animation: none;
	}
	.dwx-ai-box.is-focus input.dwx-ai-box__input { height: 46px !important; line-height: 46px !important; font-size: 17px !important; }
	.dwx-ai-box.is-focus button.dwx-ai-box__go { flex-basis: 44px !important; width: 44px !important; min-width: 44px !important; height: 44px !important; min-height: 44px !important; }
}

/* ---------- Minimised: bottom-LEFT on desktop and phones ---------- */
button.dwx-ai-mini,
button.dwx-ai-mini--left,
button.dwx-ai-mini--right {
	left: 24px !important;
	right: auto !important;
}
/* Phones: bottom-LEFT (desktop stays bottom-right) */
@media (max-width: 640px) {
	button.dwx-ai-mini,
	button.dwx-ai-mini--left,
	button.dwx-ai-mini--right { left: 14px !important; right: auto !important; }
}

/* Desktop: box shape (soft corners), not a pill */
@media (min-width: 641px) {
	.dwx-ai-box,
	.dwx-ai-box--left,
	.dwx-ai-box--right { border-radius: 22px; padding: 20px 64px 20px 22px; }
}

/* Reopened from the floating button: the grow animation (script) is the
 * entrance – no CSS entrance, which would restart with its delay. */
.dwx-ai-box.is-restored { animation: none !important; opacity: 1; }
@media (min-width: 641px) {
	.dwx-ai-box.is-restored { animation: dwx-ai-edge 6s linear infinite !important; }
}


/* The full question as a two-line placeholder where one line is too short
 * (phones). Purely visual – the input underneath takes every tap. */
.dwx-ai-box__form { position: relative; }
.dwx-ai-box__ph {
	position: absolute;
	display: flex;
	align-items: center;
	pointer-events: none;
	overflow: hidden;
	line-height: 1.2;
	font-weight: 500;
	white-space: normal;
	color: color-mix(in srgb, currentColor 55%, transparent);
}
.dwx-ai-box__ph[hidden],
.dwx-ai-box__input:not(:placeholder-shown) + .dwx-ai-box__ph { display: none; }

/* Desktop: the longer question stays on two lines; the field wraps its
 * placeholder onto two lines where needed. */
@media (min-width: 900px) {
	.dwx-ai-box__head { flex: 0 1 57%; }
	.dwx-ai-box__form { flex: 1 1 auto; min-width: 230px; }
}
