/* InkWell Assistant (Inky) - chat window. All rules are under #inky-root so the theme is not touched. */
#inky-root, #inky-root * { box-sizing: border-box; }
#inky-root {
	--inky-red: #d81b60; --inky-red-dark: #b3154f; --inky-ink: #1f2328; --inky-soft: #f3f4f6;
	--inky-line: #e3e5e8; --inky-muted: #5d6470;
	position: fixed; right: 20px; bottom: calc(20px + var(--inky-lift, 0px)); z-index: 99990; /* --inky-lift: height of the theme's phone toolbar, set by the script */
	font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 15px; line-height: 1.45; color: var(--inky-ink);
}
/* The shop theme styles every button, paragraph and field; these lines put our own sizes back. */
#inky-root button {
	font: inherit; cursor: pointer; margin: 0; padding: 0; min-width: 0; min-height: 0; height: auto; width: auto; line-height: 1.3;
	text-transform: none; letter-spacing: normal; box-shadow: none; text-shadow: none; text-decoration: none; transition: none; float: none;
}
#inky-root p, #inky-root label, #inky-root h4, #inky-root dl, #inky-root dt, #inky-root dd, #inky-root b, #inky-root span, #inky-root a {
	font-family: inherit; line-height: 1.45; letter-spacing: normal; text-transform: none;
}
#inky-root input, #inky-root textarea { margin: 0; box-shadow: none; line-height: 1.4; min-height: 0; max-width: none; font-family: inherit; }
#inky-root form { margin: 0; }
#inky-root .inky-launch {
	display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 8px; border: 0; border-radius: 27px;
	background: var(--inky-red); color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.22);
}
#inky-root .inky-launch:hover, #inky-root .inky-launch:focus-visible { background: var(--inky-red-dark); }
#inky-root :focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
#inky-root .inky-face { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
#inky-root .inky-face svg { width: 24px; height: 24px; display: block; }
#inky-root.is-open .inky-launch { display: none; }

#inky-root .inky-panel {
	display: none; flex-direction: column; width: 372px; height: min(600px, calc(100vh - 40px)); background: #fff;
	border: 1px solid var(--inky-line); border-radius: 16px; overflow: hidden; box-shadow: 0 14px 44px rgba(0,0,0,.24);
}
#inky-root.is-open .inky-panel { display: flex; }
#inky-root .inky-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; background: var(--inky-red); color: #fff; }
#inky-root .inky-head .inky-who { flex: 1; min-width: 0; }
#inky-root .inky-head b { display: block; font-size: 16px; font-weight: 700; }
#inky-root .inky-head span { display: block; font-size: 13px; opacity: .95; }
#inky-root .inky-x { width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 24px; line-height: 1; }
#inky-root .inky-x:hover { background: rgba(255,255,255,.18); }

#inky-root .inky-log { flex: 1; overflow-y: auto; padding: 14px 12px 6px; background: #fff; }
#inky-root .inky-msg { display: flex; margin: 0 0 10px; }
#inky-root .inky-msg p { margin: 0; padding: 9px 13px; border-radius: 16px; max-width: 84%; white-space: pre-wrap; overflow-wrap: anywhere; }
#inky-root .inky-msg.bot p { background: var(--inky-soft); border-bottom-left-radius: 5px; }
#inky-root .inky-msg.me { justify-content: flex-end; }
#inky-root .inky-msg.me p { background: var(--inky-red); color: #fff; border-bottom-right-radius: 5px; }
#inky-root .inky-msg.staff p { background: #e8f1fd; border-bottom-left-radius: 5px; }
#inky-root .inky-msg a { color: var(--inky-red-dark); font-weight: 600; text-decoration: underline; }
#inky-root .inky-msg.me a { color: #fff; }
#inky-root .inky-by { font-size: 12px; color: var(--inky-muted); margin: 0 0 3px 4px; }
#inky-root .inky-note { text-align: center; font-size: 12.5px; color: var(--inky-muted); margin: 6px 0 12px; }
#inky-root .inky-typing p { color: var(--inky-muted); font-style: italic; }

#inky-root .inky-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 12px; }
#inky-root .inky-chips button {
	border: 1.5px solid var(--inky-red); background: #fff; color: var(--inky-red-dark); border-radius: 18px; padding: 7px 13px; font-size: 14px; font-weight: 600; min-height: 36px; height: auto;
}
#inky-root .inky-chips button:hover { background: #fdeaf1; }

#inky-root .inky-card { border: 1px solid var(--inky-line); border-radius: 12px; padding: 12px; margin: 0 0 12px; background: #fff; }
#inky-root .inky-card h4 { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
#inky-root .inky-card label { display: block; font-size: 13px; font-weight: 600; margin: 8px 0 3px; }
#inky-root .inky-card input {
	width: 100%; height: 40px; padding: 0 10px; border: 1px solid #b9bec6; border-radius: 8px; font: inherit; color: var(--inky-ink); background: #fff;
}
#inky-root .inky-card .inky-go { margin-top: 10px; width: 100%; height: 40px; border: 0; border-radius: 8px; background: var(--inky-red); color: #fff; font-weight: 600; }
#inky-root .inky-card .inky-go:hover { background: var(--inky-red-dark); }
#inky-root .inky-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
#inky-root .inky-card dt { color: var(--inky-muted); }
#inky-root .inky-card dd { margin: 0; font-weight: 600; }
#inky-root .inky-hint { font-size: 12px; color: var(--inky-muted); margin-top: 3px; }
#inky-root .inky-card dd a { color: var(--inky-red-dark); text-decoration: underline; }
#inky-root .inky-err { color: #b00020; font-size: 13px; margin-top: 6px; }

#inky-root .inky-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--inky-line); background: #fff; }
#inky-root .inky-form textarea {
	flex: 1; resize: none; height: 44px; max-height: 110px; padding: 10px 12px; border: 1px solid #b9bec6; border-radius: 22px; font: inherit; color: var(--inky-ink);
}
#inky-root .inky-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--inky-red); color: #fff; display: flex; align-items: center; justify-content: center; }
#inky-root .inky-send:hover { background: var(--inky-red-dark); }
#inky-root .inky-send[disabled] { background: #c9ccd2; cursor: default; }
#inky-root .inky-send svg { width: 20px; height: 20px; }
#inky-root .inky-foot { padding: 0 12px 10px; font-size: 12px; color: var(--inky-muted); text-align: center; background: #fff; }
#inky-root .inky-foot button { display: inline; border: 0; border-radius: 0; background: none; padding: 0; color: var(--inky-red-dark); font-weight: 600; text-decoration: underline; font-size: 12px; }
#inky-root .inky-foot a { color: var(--inky-muted); text-decoration: underline; }

@media (max-width: 480px) {
	#inky-root { right: 12px; bottom: calc(12px + var(--inky-lift, 0px)); }
	#inky-root.is-open { right: 0; bottom: 0; left: 0; top: 0; }
	#inky-root.is-open .inky-panel { width: 100%; height: 100%; border: 0; border-radius: 0; }
	#inky-root .inky-launch span.inky-label { display: none; }
	#inky-root .inky-launch { padding: 0 8px; }
	#inky-root .inky-form textarea, #inky-root .inky-card input { font-size: 16px; } /* no zoom on iPhone */
}
@media (prefers-reduced-motion: no-preference) {
	#inky-root .inky-panel { animation: inky-in .16s ease-out; }
	@keyframes inky-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
