@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap";:root{--k2stone-primary: #2563eb;--k2stone-primary-hover: #1d4ed8;--k2stone-bg: #ffffff;--k2stone-text: #1f2937;--k2stone-border: #e5e7eb}.k2stone-widget-container{font-family:Inter,sans-serif;box-sizing:border-box}.k2stone-widget-container *{box-sizing:border-box}.k2stone-input{width:100%;padding:10px 12px;border:1px solid var(--k2stone-border);border-radius:8px;font-size:14px;outline:none;transition:border-color .2s}.k2stone-input:focus{border-color:var(--k2stone-primary);box-shadow:0 0 0 2px #2563eb1a}.k2stone-btn{display:flex;align-items:center;background-color:var(--k2stone-primary);color:#fff;border:none;border-radius:8px;padding:10px 16px;font-size:14px;font-weight:500;cursor:pointer;transition:background-color .2s}.k2stone-btn:hover{background-color:var(--k2stone-primary-hover)}.k2stone-btn:disabled{opacity:.7;cursor:not-allowed}.k2stone-method-btn{display:flex;align-items:center;gap:12px;width:100%;padding:12px 16px;background-color:#f9fafb;border:1px solid var(--k2stone-border);border-radius:10px;color:var(--k2stone-text);font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;text-align:left}.k2stone-method-btn:hover{background-color:#eff6ff;border-color:var(--k2stone-primary);color:var(--k2stone-primary)}

/* ==========================================================================
   K2 Stone chat design (approved mockups). Every rule is scoped to the
   widget root, which the bundle appends to <body>, so theme styles are
   neither affected nor able to leak in. Raleway is used when the site
   already loads it; otherwise the system sans-serif.
   ========================================================================== */
#k2-stone-ai-chatbot-root {
	--k2stone-primary: #4B5055;
	--k2stone-primary-hover: #3A3E42;
	--k2sai-charcoal: #4B5055;
	--k2sai-charcoal-dark: #3A3E42;
	--k2sai-text: #33373B;
	--k2sai-muted: #6B6F73;
	--k2sai-bronze: #BC7625;
	--k2sai-bot-bg: #F4F2EF;
	--k2sai-font: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#k2-stone-ai-chatbot-root .k2sai-panel,
#k2-stone-ai-chatbot-root .k2sai-launcher {
	font-family: var(--k2sai-font);
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

#k2-stone-ai-chatbot-root .k2sai-panel *,
#k2-stone-ai-chatbot-root .k2sai-launcher * {
	box-sizing: border-box;
	font-family: inherit;
}

/* ---------- Launcher: pill when closed, circle with X when open ---------- */
#k2-stone-ai-chatbot-root .k2sai-launcher {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	min-width: 0;
	margin: 0;
	padding: 0 18px 0 14px;
	border: 0;
	border-radius: 22px;
	background: var(--k2sai-charcoal);
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.12);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#k2-stone-ai-chatbot-root .k2sai-launcher:hover {
	background: var(--k2sai-charcoal-dark);
	color: #fff;
}

#k2-stone-ai-chatbot-root .k2sai-launcher:focus {
	outline: none;
}

#k2-stone-ai-chatbot-root .k2sai-launcher:focus-visible,
#k2-stone-ai-chatbot-root .k2sai-header-close:focus-visible,
#k2-stone-ai-chatbot-root .k2sai-send:focus-visible {
	outline: 3px solid var(--k2sai-bronze);
	outline-offset: 3px;
}

#k2-stone-ai-chatbot-root .k2sai-launcher-icon {
	display: block;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	color: #fff;
}

#k2-stone-ai-chatbot-root .k2sai-launcher-dot {
	fill: var(--k2sai-bronze);
}

#k2-stone-ai-chatbot-root .k2sai-launcher-label {
	display: inline-block;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
}

#k2-stone-ai-chatbot-root .k2sai-launcher--open {
	width: 56px;
	height: 56px;
	padding: 0;
	border-radius: 50%;
}

#k2-stone-ai-chatbot-root .k2sai-launcher svg {
	pointer-events: none;
}

/* Icon sizes are pinned so theme rules for svg cannot resize them. */
#k2-stone-ai-chatbot-root .k2sai-panel svg,
#k2-stone-ai-chatbot-root .k2sai-launcher svg {
	display: block;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	max-width: none;
	margin: 0;
}

#k2-stone-ai-chatbot-root .k2sai-launcher svg.k2sai-launcher-icon,
#k2-stone-ai-chatbot-root .k2sai-header-close svg {
	width: 22px;
	height: 22px;
}

#k2-stone-ai-chatbot-root .k2sai-launcher--open svg {
	width: 24px;
	height: 24px;
}

#k2-stone-ai-chatbot-root .k2sai-send svg {
	width: 18px;
	height: 18px;
}

/* ---------- Panel ---------- */
#k2-stone-ai-chatbot-root .k2sai-panel {
	position: fixed;
	right: 20px;
	bottom: 88px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	width: 380px;
	height: 600px;
	max-height: calc(100vh - 108px);
	max-height: calc(100dvh - 108px);
	overflow: hidden;
	background: #fff;
	border: 0;
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
	color: var(--k2sai-text);
	text-align: left;
}

#k2-stone-ai-chatbot-root .k2sai-header {
	display: flex;
	flex: 0 0 auto;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 18px 14px 20px;
	background: #fff;
	border-bottom: 2px solid var(--k2sai-bronze);
}

#k2-stone-ai-chatbot-root .k2sai-header-text {
	min-width: 0;
}

#k2-stone-ai-chatbot-root .k2sai-title {
	margin: 0;
	padding: 0;
	color: var(--k2sai-text);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
}

#k2-stone-ai-chatbot-root .k2sai-subtitle {
	margin: 2px 0 0;
	padding: 0;
	color: var(--k2sai-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
}

#k2-stone-ai-chatbot-root .k2sai-header-close {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: -4px -6px 0 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #8A8E92;
	box-shadow: none;
	cursor: pointer;
}

#k2-stone-ai-chatbot-root .k2sai-header-close:hover {
	background: #F4F2EF;
	color: var(--k2sai-text);
}

#k2-stone-ai-chatbot-root .k2sai-body {
	min-height: 0;
}

#k2-stone-ai-chatbot-root .k2sai-transcript {
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	color: var(--k2sai-text);
}

#k2-stone-ai-chatbot-root .k2sai-transcript p,
#k2-stone-ai-chatbot-root .k2sai-transcript li {
	margin: 0 0 0.75em;
	padding: 0;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: normal;
	text-transform: none;
}

#k2-stone-ai-chatbot-root .k2sai-transcript ul,
#k2-stone-ai-chatbot-root .k2sai-transcript ol {
	margin: 0 0 0.75em;
	padding: 0 0 0 1.25em;
	font-size: inherit;
}

#k2-stone-ai-chatbot-root .k2sai-transcript li {
	margin-bottom: 0.25em;
}

#k2-stone-ai-chatbot-root .k2sai-transcript p:last-child {
	margin-bottom: 0;
}

/* ---------- Composer ---------- */
#k2-stone-ai-chatbot-root .k2sai-composer {
	display: flex;
	flex: 0 0 auto;
	align-items: stretch;
	gap: 10px;
	padding: 14px 16px 16px;
	background: #fff;
	border-top: 1px solid #EEECE9;
}

#k2-stone-ai-chatbot-root .k2sai-input {
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid #C9CCCF;
	border-radius: 6px;
	background: #fff;
	color: var(--k2sai-text);
	box-shadow: none;
	font-size: 16px; /* 16px stops iOS zooming into the field */
	line-height: normal;
}

#k2-stone-ai-chatbot-root .k2sai-input::placeholder {
	color: #8A8E92;
	opacity: 1;
}

#k2-stone-ai-chatbot-root .k2sai-input:focus {
	border-color: var(--k2sai-charcoal);
	box-shadow: 0 0 0 3px rgba(188, 118, 37, 0.25);
	outline: none;
}

#k2-stone-ai-chatbot-root .k2sai-send {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: var(--k2sai-charcoal);
	color: #fff;
	box-shadow: none;
	cursor: pointer;
}

#k2-stone-ai-chatbot-root .k2sai-send:hover {
	background: var(--k2sai-charcoal-dark);
	color: #fff;
}

/* ---------- Narrow screens ---------- */
@media (max-width: 480px) {
	#k2-stone-ai-chatbot-root .k2sai-launcher {
		right: 12px;
		bottom: 12px;
	}

	#k2-stone-ai-chatbot-root .k2sai-panel {
		top: 12px;
		right: 12px;
		bottom: 80px;
		left: 12px;
		width: auto;
		height: auto;
		max-height: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	#k2-stone-ai-chatbot-root .k2sai-launcher {
		transition: none;
	}
}
