@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

#dtai-agent-root {
	--dtai-accent: #111111;
	--dtai-text: #111111;
	--dtai-muted: #7d7771;
	--dtai-border: rgba(31, 27, 24, .12);
	--dtai-shadow: 0 24px 72px rgba(31, 27, 24, .18);
	--dtai-open-width: 380px;
	--dtai-open-height: 480px;
	--dtai-closed-width: 56px;
	--dtai-closed-height: 56px;
	--dtai-hover-width: 178px;
	--dtai-bottom-lift: 0px;
	--dtai-bottom-base: 75px;
	--dtai-radius: 28px;
	--dtai-ease-out: cubic-bezier(.16, 1, .3, 1);
	/* ElevenLabs' open/close uses framer-motion's default `layout` spring. This
	   linear() curve was captured frame-by-frame from the live widget on
	   elevenlabs.io/agents (width 199<->380, height 56<->480 over ~465ms) so the
	   morph matches their motion almost exactly. cubic-bezier is the fallback for
	   browsers without linear() support. */
	--dtai-spring: cubic-bezier(.32, .72, .29, 1);
	--dtai-spring: linear(
		0, 0.002 11.8%, 0.028 18.1%, 0.116 24.3%, 0.193 30.8%, 0.420 37.2%,
		0.619 43.7%, 0.751 49.7%, 0.797 56.1%, 0.862 62.6%, 0.912 68.8%,
		0.950 75%, 0.972 81.3%, 0.978 87.5%, 0.994 93.8%, 1
	);
	--dtai-spring-dur: .47s;
	position: relative;
	z-index: 2147482600;
	/* ElevenLabs' widget font. */
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.714;
}

#dtai-agent-root *,
#dtai-agent-root *::before,
#dtai-agent-root *::after {
	box-sizing: border-box;
}

#dtai-agent-root button,
#dtai-agent-root input,
#dtai-agent-root textarea {
	appearance: none !important;
	-webkit-appearance: none !important;
	font-family: inherit !important;
	letter-spacing: 0 !important;
	margin: 0 !important;
	text-decoration: none !important;
	text-shadow: none !important;
}

#dtai-agent-root button {
	cursor: pointer;
}

.dtai-widget {
	position: fixed;
	left: 24px;
	right: auto;
	bottom: calc(max(var(--dtai-bottom-base), env(safe-area-inset-bottom)) + var(--dtai-bottom-lift));
	width: var(--dtai-open-width);
	height: var(--dtai-open-height);
	z-index: 2147483600;
	pointer-events: none;
	transition: bottom .34s var(--dtai-ease-out);
}

.dtai-widget.dtai-desktop-bottom_right {
	left: auto;
	right: 24px;
}

/* ===== The morph surface ==========================================
   A single element that grows from the collapsed pill to the full panel,
   anchored at the launcher corner. Mirrors ElevenLabs' <MotionDiv layout>:
   size morph only (no opacity fade), constant 28px radius, content revealed by
   the clip. */
.dtai-morph-surface {
	position: absolute;
	left: 0;
	right: auto;
	bottom: 0;
	z-index: 2;
	width: var(--dtai-closed-width);
	height: var(--dtai-closed-height);
	border-radius: var(--dtai-radius);
	background: #fff;
	/* ElevenLabs' panel shadow (soft) plus a little extra depth so it floats. */
	box-shadow: 0 6px 16px rgba(78, 50, 23, .04), 0 12px 40px rgba(31, 27, 24, .10);
	color: var(--dtai-text);
	overflow: hidden;
	pointer-events: auto;
	cursor: pointer;
	will-change: width, height;
	transition:
		width var(--dtai-spring-dur) var(--dtai-spring),
		height var(--dtai-spring-dur) var(--dtai-spring);
}

.dtai-circle-launcher .dtai-morph-surface {
	box-shadow: 0 3px 10px rgba(31, 27, 24, .08), 0 10px 28px rgba(31, 27, 24, .12);
}

.dtai-circle-launcher.dtai-state-closed .dtai-fly-orb,
.dtai-circle-launcher.dtai-state-closing .dtai-fly-orb {
	pointer-events: none;
}

.dtai-desktop-bottom_right .dtai-morph-surface {
	left: auto;
	right: 0;
}

.dtai-state-open .dtai-morph-surface {
	width: var(--dtai-open-width);
	height: var(--dtai-open-height);
}

.dtai-state-open .dtai-morph-surface {
	cursor: default;
}

/* Soft backing ring (ElevenLabs' -inset-px bg-black/5). */
.dtai-surface-backing {
	position: absolute;
	inset: -1px;
	z-index: 0;
	border-radius: calc(var(--dtai-radius) + 1px);
	background: rgba(31, 27, 24, .05);
	pointer-events: none;
	transition: opacity .18s ease;
}

.dtai-state-closed .dtai-morph-surface,
.dtai-state-closing .dtai-morph-surface {
	background: #fff;
}

.dtai-state-closed .dtai-surface-backing,
.dtai-state-closing .dtai-surface-backing {
	opacity: 0;
}

.dtai-state-open .dtai-surface-backing {
	opacity: 1;
}

/* ===== Panel content ==============================================
   Rendered at the full open size and anchored to the launcher corner, so the
   growing surface clip reveals it from the corner outward. It never scales or
   fades. */
.dtai-panel-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: auto;
	z-index: 1;
	width: var(--dtai-open-width);
	height: var(--dtai-open-height);
	display: flex;
	flex-direction: column;
	/* Pure white, same as the collapsed pill. */
	background: #fff;
}

.dtai-desktop-bottom_right .dtai-panel-content {
	left: auto;
	right: 0;
}

.dtai-state-closed .dtai-morph-surface .dtai-panel-content {
	pointer-events: none;
}

.dtai-state-closed .dtai-panel-content {
	opacity: 0;
	visibility: hidden;
}

.dtai-state-open .dtai-panel-content {
	opacity: 1;
	visibility: visible;
}

/* ===== Collapsed pill label =======================================
   "Talk to an agent" — fills the collapsed pill next to the orb and covers the
   panel content's bottom strip. Hidden quickly as the panel opens. */
.dtai-trigger-label {
	position: absolute;
	left: 0;
	right: auto;
	bottom: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: var(--dtai-closed-width);
	height: var(--dtai-closed-height);
	padding: 0 14px 0 52px;
	white-space: nowrap;
	background: #fff;
	color: #000;
	font-size: 16px;
	font-weight: 400;
	line-height: 18px;
	letter-spacing: .16px;
	pointer-events: none;
	/* Closing: the label fades back in with a 0.3s delay so it appears as the
	   pill finishes forming (ElevenLabs: animate {opacity:1, transition:{delay:.3}}). */
	transition: opacity .25s linear .3s;
}

.dtai-circle-launcher .dtai-trigger-label {
	opacity: 0;
	visibility: hidden;
	width: var(--dtai-hover-width);
	padding: 0 14px 0 52px;
	transition: opacity .18s ease .08s, visibility 0s linear .26s;
}

.dtai-circle-launcher .dtai-trigger-label .dtai-connected-row {
	display: none !important;
}

@media (hover: hover) and (pointer: fine) {
	.dtai-circle-launcher.dtai-state-closed .dtai-morph-surface:hover {
		width: var(--dtai-hover-width);
	}

	.dtai-circle-launcher.dtai-state-closed .dtai-morph-surface:hover .dtai-trigger-label {
		opacity: 1;
		visibility: visible;
		transition: opacity .2s ease .1s, visibility 0s linear 0s;
	}

	.dtai-circle-launcher.dtai-state-closed .dtai-morph-surface:hover .dtai-fly-orb {
		left: 10px;
		bottom: 10px;
		width: 36px;
		height: 36px;
	}

	.dtai-desktop-bottom_right.dtai-circle-launcher.dtai-state-closed .dtai-morph-surface:hover .dtai-fly-orb {
		left: auto;
		right: 10px;
	}
}

.dtai-trigger-title {
	display: block;
	width: 100%;
	line-height: 18px;
}

.dtai-connected-row {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: #16a34a;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
}

.dtai-connected-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #16a34a;
	box-shadow: 0 0 0 0 rgba(22, 163, 74, .35);
	animation: dtai-connected-pulse 3s ease-out infinite;
}

.dtai-widget.has-conversation .dtai-connected-row {
	display: flex;
}

.dtai-widget.has-conversation .dtai-trigger-label {
	align-items: flex-start;
	justify-content: center;
	padding-left: 56px;
}

.dtai-widget.has-conversation .dtai-trigger-status {
	margin-top: 2px;
	font-size: 12px;
	line-height: 13px;
}

.dtai-desktop-bottom_right .dtai-trigger-label {
	left: auto;
	right: 0;
	padding: 0 52px 0 14px;
}

.dtai-desktop-bottom_right.has-conversation .dtai-trigger-label {
	align-items: flex-end;
	padding: 0 52px 0 14px;
}

/* Opening: the trigger fades out (ElevenLabs animate {opacity:0}). */
.dtai-state-open .dtai-trigger-label {
	opacity: 0;
	transition: opacity .22s ease;
}

/* ===== The flying orb =============================================
   One orb that flies from the pill corner (small) to the panel centre (large),
   using the same spring as the surface so the two move together. */
.dtai-morph-surface .dtai-fly-orb {
	position: absolute;
	z-index: 4;
	left: 10px;
	right: auto;
	bottom: 10px;
	width: 36px;
	height: 36px;
	border: 0;
	padding: 0;
	pointer-events: auto;
	cursor: default !important;
	box-shadow: inset 0 0 12px rgba(255, 255, 255, .28), inset 0 -10px 20px rgba(0, 53, 89, .2);
	will-change: left, right, bottom, width, height;
	transition:
		left var(--dtai-spring-dur) var(--dtai-spring),
		right var(--dtai-spring-dur) var(--dtai-spring),
		bottom var(--dtai-spring-dur) var(--dtai-spring),
		width var(--dtai-spring-dur) var(--dtai-spring),
		height var(--dtai-spring-dur) var(--dtai-spring);
}

.dtai-desktop-bottom_right .dtai-fly-orb {
	left: auto;
	right: 10px;
}

.dtai-state-open .dtai-fly-orb {
	left: calc((var(--dtai-open-width) - 150px) / 2);
	bottom: calc(var(--dtai-open-height) - 218px);
	width: 150px;
	height: 150px;
	pointer-events: auto;
	cursor: default !important;
	box-shadow: inset 0 0 22px rgba(255, 255, 255, .25), inset 0 -18px 32px rgba(0, 53, 89, .22), 0 10px 28px rgba(0, 116, 174, .12);
}

.dtai-desktop-bottom_right.dtai-state-open .dtai-fly-orb {
	left: auto;
	right: calc((var(--dtai-open-width) - 150px) / 2);
}

/* Once a conversation starts the orb shrinks to a small header badge. */
.dtai-state-open.has-conversation .dtai-fly-orb {
	left: calc((var(--dtai-open-width) - 44px) / 2);
	bottom: calc(var(--dtai-open-height) - 100px);
	width: 44px;
	height: 44px;
}

.dtai-desktop-bottom_right.dtai-state-open.has-conversation .dtai-fly-orb {
	left: auto;
	right: calc((var(--dtai-open-width) - 44px) / 2);
}

.dtai-widget.has-conversation.dtai-state-closed .dtai-fly-orb,
.dtai-widget.has-conversation.dtai-state-closing .dtai-fly-orb {
	left: 10px;
	bottom: 10px;
	width: 36px;
	height: 36px;
}

.dtai-desktop-bottom_right.has-conversation.dtai-state-closed .dtai-fly-orb,
.dtai-desktop-bottom_right.has-conversation.dtai-state-closing .dtai-fly-orb {
	left: auto;
	right: 10px;
}

/* ===== Orb visuals (shared gradient/shine) ======================== */
.dtai-orb {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	border-radius: 50%;
	overflow: hidden;
	/* Exact colours sampled from ElevenLabs' orb texture (512x512): a soft
	   diagonal from green (top-left) through teal (centre) to blue (bottom-right)
	   with a bright highlight near the lower-right. */
	background:
		radial-gradient(circle at 73% 73%, #aee3ff 0%, rgba(174, 227, 255, 0) 28%),
		radial-gradient(circle at 28% 27%, #8cb088 0%, rgba(140, 176, 136, 0) 46%),
		radial-gradient(circle at 73% 29%, #3d8991 0%, rgba(61, 137, 145, 0) 44%),
		radial-gradient(circle at 17% 56%, #bfd9c2 0%, rgba(191, 217, 194, 0) 48%),
		radial-gradient(circle at 86% 56%, #88c8e5 0%, rgba(136, 200, 229, 0) 50%),
		radial-gradient(circle at 50% 84%, #84caea 0%, rgba(132, 202, 234, 0) 52%),
		linear-gradient(147deg, #8cb088 0%, #93c2bc 40%, #84caea 74%, #3ab3e4 100%);
	box-shadow: inset 0 0 18px rgba(255, 255, 255, .22), inset 0 -16px 30px rgba(40, 110, 140, .18);
	animation: dtai-orb-flow 6.5s ease-in-out infinite;
}

.dtai-orb::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background-image:
		radial-gradient(circle, rgba(255, 255, 255, .16) .7px, transparent .8px),
		radial-gradient(circle, rgba(0, 0, 0, .12) .65px, transparent .75px);
	background-size: 3px 3px, 4px 4px;
	background-position: 0 0, 1px 2px;
	mix-blend-mode: overlay;
	opacity: .72;
	animation: dtai-noise-shift 1.2s steps(3) infinite;
}

.dtai-orb-shine {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(circle at 72% 72%, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0) 28%);
	opacity: .76;
	transform: rotate(-12deg);
}

/* The ElevenLabs WebGL orb canvas fills the circle and is CSS-scaled with it. */
.dtai-orb-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	border-radius: inherit;
}

/* When the WebGL orb renders, drop the CSS gradient effects it replaces. */
.dtai-orb--gl {
	animation: none;
}

.dtai-orb--gl::after,
.dtai-orb--gl .dtai-orb-shine {
	display: none;
}

@keyframes dtai-orb-flow {
	0%, 100% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
	35% { background-position: 11px -9px, -8px 7px, 8px 5px, -7px -6px, 0 0; }
	70% { background-position: -8px 7px, 10px -5px, -6px 9px, 7px 8px, 0 0; }
}

@keyframes dtai-noise-shift {
	0% { transform: translate3d(0, 0, 0); }
	33% { transform: translate3d(-1px, 1px, 0); }
	66% { transform: translate3d(1px, -1px, 0); }
	100% { transform: translate3d(0, 0, 0); }
}

/* ===== Header ===================================================== */
.dtai-chat-header {
	position: relative;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	padding: 0 56px;
	flex: 0 0 56px;
}

/* The "Widget header" title, centred where the language selector used to be. */
.dtai-header-title {
	display: grid;
	justify-items: center;
	gap: 5px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #111;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
}

.dtai-header-title-text {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@keyframes dtai-connected-pulse {
	0%, 72%, 100% {
		box-shadow: 0 0 0 0 rgba(22, 163, 74, .35);
		transform: scale(1);
	}
	18% {
		box-shadow: 0 0 0 7px rgba(22, 163, 74, 0);
		transform: scale(1.08);
	}
}

.dtai-collapse-button,
.dtai-back-button {
	position: absolute;
	top: 8px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #f2efed !important;
	color: #6f6964;
	box-shadow: none !important;
	transition: background .16s ease, color .16s ease, transform .16s ease;
}

.dtai-collapse-button {
	right: 20px;
}

.dtai-back-button {
	left: 20px;
	display: none !important;
}

.dtai-widget.has-conversation .dtai-back-button {
	display: flex !important;
}

.dtai-collapse-button:hover,
.dtai-collapse-button:focus-visible,
.dtai-back-button:hover,
.dtai-back-button:focus-visible {
	background: #ece8e5 !important;
	color: #4f4944;
	transform: scale(1.035);
	outline: none;
}

.dtai-collapse-button::before,
.dtai-collapse-button::after,
.dtai-back-button::before,
.dtai-back-button::after {
	content: none !important;
	display: none !important;
}

.dtai-collapse-button svg,
.dtai-back-button svg {
	display: block;
	width: 23px;
	height: 23px;
	overflow: visible;
}

/* ===== Stage (orb slot + intro) =================================== */
.dtai-agent-stage {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-height: 0;
	padding: 12px 32px 10px;
	text-align: center;
	transition: flex-basis .3s var(--dtai-ease-out), padding .3s var(--dtai-ease-out);
}

/* Reserves the centred orb's footprint so the copy lays out beneath it. */
.dtai-orb-slot {
	width: 150px;
	height: 150px;
	flex: 0 0 auto;
}

.dtai-agent-copy {
	max-width: 230px;
	margin: 14px auto 0;
	color: rgb(119, 113, 105);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0;
}

.dtai-widget.has-conversation .dtai-agent-stage {
	flex: 0 0 64px;
	padding: 0 32px;
}

.dtai-widget.has-conversation .dtai-orb-slot {
	width: 44px;
	height: 44px;
}

.dtai-widget.has-conversation .dtai-agent-copy {
	display: none;
}

/* ===== Quick prompts ============================================== */
.dtai-quick-prompts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	max-height: 160px;
	margin: 0 22px 16px;
	padding: 4px 0;
	/* Visible so the hover lift + shadow on a prompt is never clipped at the top. */
	overflow: visible;
	transition: opacity .24s ease, max-height .28s var(--dtai-ease-out), margin .28s var(--dtai-ease-out), padding .28s var(--dtai-ease-out);
}

.dtai-widget.has-conversation .dtai-quick-prompts,
.dtai-widget.quick-prompts-dismissed .dtai-quick-prompts {
	opacity: 0;
	max-height: 0;
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 0;
	padding-bottom: 0;
	/* Clip only while collapsing. */
	overflow: hidden;
	pointer-events: none;
}

.dtai-quick-prompt {
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid rgba(31, 27, 24, .12);
	border-radius: 999px;
	background: #fff !important;
	color: #3a3530;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	box-shadow: 0 5px 18px rgba(31, 27, 24, .06);
	transition:
		background-color .2s ease,
		border-color .2s ease,
		color .2s ease,
		box-shadow .2s ease,
		transform .2s var(--dtai-ease-out);
}

/* Prefixed with .dtai-morph-surface so the lift wins over the entrance rule. */
.dtai-morph-surface .dtai-quick-prompt:hover,
.dtai-morph-surface .dtai-quick-prompt:focus-visible {
	border-color: rgba(31, 27, 24, .22);
	background: #f6f4f2 !important;
	color: #111;
	outline: none;
	transform: translateY(-1px);
	box-shadow: 0 9px 24px rgba(31, 27, 24, .12);
}

.dtai-morph-surface .dtai-quick-prompt:active {
	transform: translateY(0);
	box-shadow: 0 4px 14px rgba(31, 27, 24, .08);
}

/* ===== Messages =================================================== */
.dtai-messages {
	display: none;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 4px 26px 16px;
	scroll-behavior: smooth;
	overscroll-behavior: contain;
}

.dtai-widget.has-conversation .dtai-messages {
	display: block;
}

.dtai-message {
	width: fit-content;
	max-width: 84%;
	margin: 0 0 12px;
	padding: 12px 15px;
	border-radius: 20px;
	font-size: 15px;
	line-height: 1.45;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.dtai-message.dtai-assistant {
	background: #f3f1ef;
	color: #111;
	border-bottom-left-radius: 7px;
}

.dtai-message.dtai-user {
	margin-left: auto;
	background: #111;
	color: #fff;
	border-bottom-right-radius: 7px;
}

.dtai-word {
	display: inline-block;
	opacity: 0;
	transform: translate3d(0, 5px, 0);
	animation: dtai-word-reveal .24s ease forwards;
}

.dtai-space {
	white-space: pre-wrap;
}

@keyframes dtai-word-reveal {
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

.dtai-products {
	display: grid;
	gap: 8px;
	margin: 6px 0 12px;
}

.dtai-product {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-radius: 16px;
	background: #fff;
	color: #111;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(31, 27, 24, .08);
}

.dtai-product img {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	object-fit: cover;
	background: #f3f1ef;
}

.dtai-product-copy {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.dtai-product-copy strong {
	font-size: 13px;
	line-height: 1.25;
}

.dtai-product-copy small {
	color: var(--dtai-muted);
}

.dtai-orders {
	display: grid;
	gap: 10px;
	margin: 6px 0 14px;
}

.dtai-order {
	display: grid;
	gap: 12px;
	padding: 12px;
	border: 1px solid rgba(31, 27, 24, .08);
	border-radius: 16px;
	background: #fff;
	color: #111;
	box-shadow: 0 8px 24px rgba(31, 27, 24, .08);
}

.dtai-order-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.dtai-order-meta {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.dtai-order-label,
.dtai-order-field span {
	color: var(--dtai-muted);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
}

.dtai-order-meta strong {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}

.dtai-order-status {
	flex: 0 0 auto;
	max-width: 128px;
	padding: 5px 8px;
	border-radius: 999px;
	background: #eef7f1;
	color: #15803d;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dtai-order-status-cancelled,
.dtai-order-status-pending {
	background: #f7f2ea;
	color: #9a5b15;
}

.dtai-order-body {
	display: grid;
	gap: 8px;
}

.dtai-order-field {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.dtai-order-field strong {
	color: #111;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.32;
	overflow-wrap: anywhere;
}

.dtai-order-field:nth-child(3) strong {
	font-variant-numeric: tabular-nums;
}

.dtai-order-actions {
	display: flex;
	justify-content: flex-start;
}

.dtai-order-track {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 16px;
	border-radius: 999px;
	background: #111;
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	box-shadow: 0 8px 18px rgba(17, 17, 17, .14);
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.dtai-order-track:hover,
.dtai-order-track:focus-visible {
	background: #000;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(17, 17, 17, .18);
	outline: none;
}

/* ===== Input pill =================================================
   Matches ElevenLabs' send-message form exactly: white, 24px radius, 48px tall,
   no border, soft 3-layer shadow, an input + a 42px send button. */
.dtai-input-bar {
	display: flex;
	align-items: center;
	height: 48px;
	margin: 0 16px 16px;
	padding: 0;
	border: 0;
	border-radius: 24px;
	background: #fff !important;
	box-shadow: 0 0 1px rgba(0, 0, 0, .4), 0 1px 1px rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .04);
	overflow: hidden;
	flex: 0 0 auto;
}

.dtai-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0 4px 0 18px;
	border: 0;
	background: transparent !important;
	color: #000 !important;
	font-size: 16px;
	font-weight: 400;
	line-height: 48px;
	outline: none;
}

.dtai-input::placeholder {
	color: rgb(156, 163, 175);
	opacity: 1;
}

.dtai-send {
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 42px;
	width: 42px;
	height: 48px;
	padding: 0 10px 0 0;
	border: 0;
	background: transparent !important;
	color: #111 !important;
	box-shadow: none !important;
	transition: transform .16s ease, color .16s ease, opacity .16s ease;
}

.dtai-send::before,
.dtai-send::after {
	content: none !important;
	display: none !important;
}

.dtai-send:hover,
.dtai-send:focus-visible {
	color: #000 !important;
	transform: scale(1.06);
	outline: none;
}

.dtai-send:disabled {
	opacity: .4;
	cursor: wait;
}

.dtai-send svg {
	display: block;
	width: 22px;
	height: 22px;
	overflow: visible;
}

.dtai-send svg path {
	fill: currentColor !important;
}

/* ===== Host-theme isolation ======================================
   Woodmart applies high-specificity global styles to every button and input.
   Keep the widget controls identical across themes without disturbing the
   component's motion or the rest of the storefront. */
#dtai-agent-root .dtai-collapse-button,
#dtai-agent-root .dtai-back-button {
	position: absolute !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 40px !important;
	max-width: 40px !important;
	width: 40px !important;
	min-height: 40px !important;
	height: 40px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #f2efed !important;
	color: #6f6964 !important;
	font: inherit !important;
	line-height: 1 !important;
	text-transform: none !important;
	box-shadow: none !important;
}

#dtai-agent-root .dtai-back-button {
	display: none !important;
}

#dtai-agent-root .dtai-widget.has-conversation .dtai-back-button {
	display: flex !important;
}

#dtai-agent-root .dtai-collapse-button svg,
#dtai-agent-root .dtai-back-button svg {
	flex: 0 0 23px !important;
	width: 23px !important;
	max-width: none !important;
	height: 23px !important;
}

#dtai-agent-root .dtai-quick-prompt {
	position: static !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 0 !important;
	min-height: 36px !important;
	height: 36px !important;
	padding: 0 14px !important;
	border: 1px solid rgba(31, 27, 24, .12) !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: #3a3530 !important;
	font: 500 13px/1 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
	text-transform: none !important;
	box-shadow: 0 5px 18px rgba(31, 27, 24, .06) !important;
}

#dtai-agent-root .dtai-morph-surface .dtai-quick-prompt:hover,
#dtai-agent-root .dtai-morph-surface .dtai-quick-prompt:focus-visible {
	border-color: rgba(31, 27, 24, .22) !important;
	background: #f6f4f2 !important;
	color: #111 !important;
	box-shadow: 0 9px 24px rgba(31, 27, 24, .12) !important;
}

#dtai-agent-root .dtai-input {
	min-width: 0 !important;
	min-height: 48px !important;
	height: 48px !important;
	padding: 0 4px 0 18px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #000 !important;
	font: 400 16px/48px "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
	box-shadow: none !important;
}

#dtai-agent-root .dtai-send {
	position: static !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 42px !important;
	max-width: 42px !important;
	width: 42px !important;
	min-height: 48px !important;
	height: 48px !important;
	padding: 0 10px 0 0 !important;
	border: 0 !important;
	border-radius: 30px !important;
	background: transparent !important;
	color: #111 !important;
	font: inherit !important;
	line-height: 1 !important;
	text-transform: none !important;
	box-shadow: none !important;
}

#dtai-agent-root .dtai-send svg {
	flex: 0 0 22px !important;
	width: 22px !important;
	max-width: none !important;
	height: 22px !important;
}

/* ===== Handoff form ============================================== */
.dtai-handoff {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 4px 0 12px;
	padding: 12px;
	border: 1px solid rgba(31, 27, 24, .1);
	border-radius: 18px;
	background: #fff;
}

.dtai-handoff input,
.dtai-handoff textarea {
	min-width: 0;
	min-height: 42px;
	padding: 9px 10px;
	border: 1px solid rgba(31, 27, 24, .12);
	border-radius: 12px;
	font: inherit;
}

.dtai-handoff textarea,
.dtai-handoff button {
	grid-column: 1 / -1;
}

.dtai-handoff button {
	min-height: 44px;
	border: 0;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

#dtai-agent-root .dtai-handoff input,
#dtai-agent-root .dtai-handoff textarea {
	min-height: 42px !important;
	padding: 9px 10px !important;
	border: 1px solid rgba(31, 27, 24, .12) !important;
	border-radius: 12px !important;
	background: #fff !important;
	font: inherit !important;
	text-transform: none !important;
	box-shadow: none !important;
}

#dtai-agent-root .dtai-handoff button {
	position: static !important;
	min-height: 44px !important;
	padding: 0 16px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #111 !important;
	color: #fff !important;
	font: 700 14px/1 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
	text-transform: none !important;
	box-shadow: none !important;
}

/* ===== Inner content entrance ====================================
   These mirror ElevenLabs' content animations (from their FloatingAgentInner):
   - header/collapse : plain opacity fade (no delay)
   - intro copy      : opacity fade, 0.3s delay on open / fades out on close
   - input pill      : slides up translateY(100%)->0 with a 0.2s delay on open,
                       and slides back down on close
   - prompts (ours)  : subtle staggered opacity fade-in. */
@keyframes dtai-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.dtai-chat-header {
	opacity: 0;
	transition: opacity .25s ease;
}
.dtai-state-open .dtai-chat-header {
	opacity: 1;
	transition: opacity .3s ease .05s;
}

.dtai-agent-copy {
	opacity: 0;
	transition: opacity .25s ease;
}
.dtai-state-open .dtai-agent-copy {
	opacity: 1;
	transition: opacity .35s ease .3s;
}

/* ElevenLabs slides the send-message pill up from below (translateY 100%->0)
   with a 0.2s delay on open, and drops it back down on close. */
.dtai-input-bar {
	transform: translateY(120%);
	transition: transform .42s var(--dtai-spring);
}
.dtai-state-open .dtai-input-bar {
	transform: translateY(0);
	transition: transform .42s var(--dtai-spring) .2s;
}

/* Our prebuilt prompts: keyframe (so it never clobbers the hover transition). */
.dtai-state-open .dtai-quick-prompt {
	animation: dtai-fade-in .4s ease calc(.26s + var(--dtai-prompt-index, 0) * .055s) both;
}

/* ===== Responsive ================================================ */
@media (max-width: 820px) {
	.dtai-widget {
		left: 16px;
		right: auto;
		bottom: calc(max(var(--dtai-bottom-base), env(safe-area-inset-bottom)) + var(--dtai-bottom-lift));
	}

	.dtai-widget.dtai-mobile-bottom_right {
		left: auto;
		right: 16px;
	}

	.dtai-mobile-bottom_right .dtai-morph-surface,
	.dtai-mobile-bottom_right .dtai-panel-content,
	.dtai-mobile-bottom_right .dtai-trigger-label {
		left: auto;
		right: 0;
	}

	.dtai-mobile-bottom_right .dtai-trigger-label {
		padding: 0 52px 0 14px;
	}

	.dtai-mobile-bottom_right.has-conversation .dtai-trigger-label {
		align-items: flex-end;
		padding: 0 52px 0 14px;
	}

	.dtai-mobile-bottom_right .dtai-fly-orb {
		left: auto;
		right: 10px;
	}

	.dtai-mobile-bottom_right.has-conversation.dtai-state-closed .dtai-fly-orb,
	.dtai-mobile-bottom_right.has-conversation.dtai-state-closing .dtai-fly-orb {
		left: auto;
		right: 10px;
	}

	.dtai-mobile-bottom_right.dtai-state-open .dtai-fly-orb {
		left: auto;
		right: calc((var(--dtai-open-width) - 150px) / 2);
	}

	.dtai-mobile-bottom_right.dtai-state-open.has-conversation .dtai-fly-orb {
		left: auto;
		right: calc((var(--dtai-open-width) - 44px) / 2);
	}

	.dtai-chat-header {
		padding: 0 56px;
	}

	.dtai-collapse-button {
		right: 18px;
	}

	.dtai-back-button {
		left: 18px;
	}

	.dtai-agent-copy {
		max-width: 220px;
	}
}

/* ===== Reduced motion ============================================ */
@media (prefers-reduced-motion: reduce) {
	.dtai-morph-surface,
	.dtai-widget,
	.dtai-fly-orb,
	.dtai-trigger-label,
	.dtai-chat-header,
	.dtai-agent-copy,
	.dtai-quick-prompt,
	.dtai-input-bar,
	.dtai-orb,
	.dtai-orb::after,
	.dtai-connected-dot,
	.dtai-word {
		animation: none !important;
		transition: none !important;
	}
}
