.bs-chatbot {
	--bs-chat-navy: var(--bs-navy, #1e2b48);
	--bs-chat-rust: var(--bs-rust, #bb6a35);
	--bs-chat-cream: var(--bs-cream-2, #faf6ee);
	--bs-chat-line: var(--bs-line, #e6ded0);
	--bs-chat-muted: var(--bs-muted, #6d7284);
	position: fixed;
	right: 26px;
	bottom: 24px;
	z-index: 9998;
	color: var(--bs-chat-navy);
	font-family: var(--bs-sans, "Hanken Grotesk", system-ui, sans-serif);
}

.bs-chatbot,
.bs-chatbot * { box-sizing: border-box; }
.bs-chatbot button,
.bs-chatbot input { font: inherit; }
.bs-chatbot .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.bs-chatbot__launcher {
	display: flex;
	align-items: center;
	perspective: 210px;
	gap: 11px;
	min-height: 64px;
	padding: 8px 22px 8px 12px;
	border: 1px solid var(--bs-chat-rust);
	border-radius: 999px;
	background: var(--bs-chat-rust);
	box-shadow: 0 10px 30px rgba(22, 32, 58, .22);
	color: #fff;
	text-align: left;
	cursor: pointer;
	transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.bs-chatbot__launcher:hover { transform: translateY(-2px); background: #a2582a; box-shadow: 0 14px 34px rgba(22, 32, 58, .28); }
.bs-chatbot__coin { position: relative; display: block; width: 44px; height: 44px; flex: 0 0 44px; transform-style: preserve-3d; transform: rotateY(0); }
.bs-chatbot__launcher-coin { transition: transform .78s cubic-bezier(.18, .72, .2, 1); }
.bs-chatbot__launcher[aria-expanded="true"] .bs-chatbot__launcher-coin { transform: rotateY(180deg); }
.bs-chatbot__coin-rim, .bs-chatbot__coin-face { position: absolute; inset: 0; display: block; border-radius: 50%; }
.bs-chatbot__coin-rim { inset: 1px; border: 3px solid #e49a60; background: linear-gradient(135deg, #f8c58a 5%, #87401f 48%, #5d2d1d 100%); box-shadow: 0 2px 7px rgba(43, 22, 13, .3); transform: translateZ(0); }
.bs-chatbot__coin-face { overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: inset 2px 2px 3px rgba(255, 246, 226, .28), inset -4px -4px 6px rgba(80, 34, 14, .3), 0 2px 5px rgba(41, 22, 14, .22); }
.bs-chatbot__coin-face::after { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(125deg, rgba(255, 255, 255, .24), transparent 37%, rgba(57, 22, 9, .2)); content: ""; pointer-events: none; }
.bs-chatbot__coin-face--front { transform: translateZ(4px); }
.bs-chatbot__coin-face--back { transform: rotateY(180deg) translateZ(4px); }
.bs-chatbot__coin-face--back .bs-chatbot__robot > circle:first-child { fill: #a2582a; }
.bs-chatbot__launcher-icon, .bs-chatbot__avatar { display: block; width: 100%; height: 100%; }
.bs-chatbot__robot { overflow: visible; }
.bs-chatbot__robot-head, .bs-chatbot__robot-eyes, .bs-chatbot__robot-mouth, .bs-chatbot__robot-antenna { transform-box: fill-box; transform-origin: center; }
.bs-chatbot__robot-sparks { opacity: 0; }
.bs-chatbot__launcher-icon .bs-chatbot__robot-head, .bs-chatbot__avatar .bs-chatbot__robot-head { animation: bs-chat-robot-tilt 7s ease-in-out infinite; }
.bs-chatbot__launcher-icon .bs-chatbot__robot-eyes, .bs-chatbot__avatar .bs-chatbot__robot-eyes { animation: bs-chat-robot-blink 5.3s ease-in-out infinite; }
@keyframes bs-chat-robot-tilt { 0%, 35%, 58%, 100% { transform: rotate(0); } 43% { transform: rotate(-6deg); } 50% { transform: rotate(4deg); } }
@keyframes bs-chat-robot-blink { 0%, 43%, 46%, 100% { transform: scaleY(1); } 44%, 45% { transform: scaleY(.12); } }
@keyframes bs-chat-robot-think { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-2px) rotate(5deg); } }
@keyframes bs-chat-robot-speak { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes bs-chat-robot-mouth { 0%, 100% { transform: scaleY(.7); } 50% { transform: scaleY(1.8); } }
@keyframes bs-chat-robot-spark { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes bs-chat-robot-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(246, 196, 131, .15); } 50% { box-shadow: 0 0 0 7px rgba(246, 196, 131, 0); } }
.bs-chatbot.is-thinking :is(.bs-chatbot__launcher-icon, .bs-chatbot__avatar) .bs-chatbot__robot-head,
.bs-chatbot__message-row--pending .bs-chatbot__robot-head { animation: bs-chat-robot-think 1.15s ease-in-out infinite; }
.bs-chatbot.is-thinking :is(.bs-chatbot__launcher-icon, .bs-chatbot__avatar) .bs-chatbot__robot-sparks,
.bs-chatbot__message-row--pending .bs-chatbot__robot-sparks { animation: bs-chat-robot-spark .9s ease-in-out infinite; }
.bs-chatbot.is-speaking :is(.bs-chatbot__launcher-icon, .bs-chatbot__avatar) .bs-chatbot__robot-head,
.bs-chatbot__message-row--speaking .bs-chatbot__robot-head { animation: bs-chat-robot-speak .42s ease-in-out infinite; }
.bs-chatbot.is-speaking :is(.bs-chatbot__launcher-icon, .bs-chatbot__avatar) .bs-chatbot__robot-mouth,
.bs-chatbot__message-row--speaking .bs-chatbot__robot-mouth { animation: bs-chat-robot-mouth .32s ease-in-out infinite; }
.bs-chatbot.is-speaking .bs-chatbot__avatar-frame { animation: bs-chat-robot-glow 1.4s ease-out infinite; }
.bs-chatbot__launcher-copy { display: grid; gap: 1px; }
.bs-chatbot__launcher-copy strong { font-size: 15px; line-height: 1.2; font-weight: 700; }
.bs-chatbot__launcher-copy small { color: rgba(255, 255, 255, .83); font-size: 11px; line-height: 1.35; }

.bs-chatbot__panel {
	position: absolute;
	right: 0;
	bottom: 78px;
	display: flex;
	flex-direction: column;
	width: min(410px, calc(100vw - 32px));
	height: min(650px, calc(100dvh - 112px));
	min-height: 400px;
	overflow: hidden;
	border: 1px solid rgba(30, 43, 72, .12);
	border-radius: 28px;
	background: #faf7f1;
	box-shadow: 0 28px 72px rgba(22, 32, 58, .27), 0 4px 16px rgba(22, 32, 58, .1);
	opacity: 0;
	transform: translateY(12px) scale(.985);
	transform-origin: bottom right;
	transition: opacity .17s ease, transform .17s ease;
}
.bs-chatbot__panel.is-open { opacity: 1; transform: translateY(0) scale(1); }
.bs-chatbot__panel[hidden] { display: none; }

.bs-chatbot__header {
	position: relative;
	display: flex;
	align-items: center;
	gap: 13px;
	min-height: 106px;
	padding: 18px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, .16);
	border-radius: 27px 27px 18px 18px;
	background: radial-gradient(circle at 19% -45%, rgba(187, 106, 53, .34), transparent 53%), linear-gradient(125deg, #1e2b48, #16203a);
	color: #fff;
}
.bs-chatbot__header::after { position: absolute; right: 20px; bottom: 0; left: 20px; height: 2px; background: linear-gradient(90deg, #c98a58, transparent 75%); content: ""; }
.bs-chatbot__avatar-frame { display: grid; width: 62px; height: 62px; flex: 0 0 62px; place-items: center; perspective: 220px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 20px; background: rgba(255, 255, 255, .09); }
.bs-chatbot__header-coin { width: 50px; height: 50px; flex: 0 0 50px; }
.bs-chatbot__panel.is-open .bs-chatbot__header-coin { animation: bs-chat-robot-arrive .72s cubic-bezier(.18, .72, .2, 1) both; }
@keyframes bs-chat-robot-arrive { 0% { opacity: .5; transform: rotateY(-180deg) scale(.88); } 100% { opacity: 1; transform: rotateY(0) scale(1); } }
.bs-chatbot__header-copy { min-width: 0; flex: 1; }
.bs-chatbot__header-copy strong { display: block; font-family: var(--bs-serif, "Spectral", Georgia, serif); font-size: 21px; font-weight: 500; line-height: 1.15; }
.bs-chatbot__header-copy span { display: block; margin-top: 7px; color: rgba(255, 255, 255, .78); font-size: 11.5px; line-height: 1.35; }
.bs-chatbot__controls { display: flex; align-items: center; align-self: flex-start; }
.bs-chatbot__close { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; padding: 11px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: background-color .18s ease, border-color .18s ease; }
.bs-chatbot__close:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .2); }
.bs-chatbot__close img { display: block; width: 20px; height: 20px; object-fit: contain; }

.bs-chatbot__messages { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 13px; overflow: auto; padding: 20px 18px 16px; overscroll-behavior: contain; }
.bs-chatbot__message-row { display: flex; width: 100%; align-items: flex-end; gap: 8px; }
.bs-chatbot__message-row:not(:first-child) { animation: bs-chat-message-in .22s ease-out both; }
@keyframes bs-chat-message-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.bs-chatbot__message-row--visitor { justify-content: flex-end; }
.bs-chatbot__message-avatar { display: block; width: 30px; height: 30px; flex: 0 0 30px; }
.bs-chatbot__message { max-width: calc(100% - 40px); padding: 12px 15px; border-radius: 17px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.bs-chatbot__message--bot { border: 1px solid #e8ded0; border-bottom-left-radius: 6px; background: #f4eee5; color: var(--bs-chat-navy); box-shadow: 0 3px 10px rgba(30, 43, 72, .035); }
.bs-chatbot__message--visitor { max-width: 84%; border-bottom-right-radius: 6px; background: var(--bs-chat-rust); color: #fff; }
.bs-chatbot__pending { display: flex; width: 62px; min-height: 42px; align-items: center; justify-content: center; gap: 5px; }
.bs-chatbot__pending span { width: 6px; height: 6px; border-radius: 50%; background: var(--bs-chat-rust); animation: bs-chat-dot 1s ease-in-out infinite; }
.bs-chatbot__pending span:nth-child(2) { animation-delay: .14s; }
.bs-chatbot__pending span:nth-child(3) { animation-delay: .28s; }
@keyframes bs-chat-dot { 0%, 60%, 100% { opacity: .4; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.bs-chatbot__diagnostic { align-self: flex-start; max-width: 100%; margin: 0 0 0 38px; padding: 8px 10px; border-left: 2px solid var(--bs-chat-rust); background: rgba(187, 106, 53, .08); color: var(--bs-chat-muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.bs-chatbot__action { display: inline-flex; align-items: center; min-height: 36px; margin-left: 38px; padding: 8px 13px; border: 1px solid rgba(187, 106, 53, .45); border-radius: 999px; background: #fff; color: var(--bs-chat-rust); font-size: 12px; font-weight: 700; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.bs-chatbot__action:hover { background: var(--bs-chat-rust); color: #fff; }

.bs-chatbot__quick { display: grid; width: calc(100% - 38px); align-self: flex-end; gap: 8px; padding: 0 0 8px; }
.bs-chatbot__quick button { display: flex; min-height: 46px; align-items: center; gap: 11px; padding: 8px 14px; border: 1px solid #e7d7c6; border-radius: 14px; background: #fff; box-shadow: 0 3px 10px rgba(30, 43, 72, .035); color: #994f28; text-align: left; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.bs-chatbot__quick button:hover { transform: translateX(2px); border-color: #c2875b; background: #fffaf3; box-shadow: 0 6px 16px rgba(30, 43, 72, .07); }
.bs-chatbot__quick button:disabled { opacity: .55; cursor: wait; }
.bs-chatbot__quick img { display: block; width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.bs-chatbot__notice { margin: 0; padding: 8px 18px 10px; border-top: 1px solid rgba(230, 222, 208, .65); color: var(--bs-chat-muted); font-size: 10.5px; line-height: 1.45; }
.bs-chatbot__form { position: relative; display: flex; align-items: center; gap: 9px; padding: 10px 14px 14px; background: #fff; }
.bs-chatbot__form input[name="message"] { min-width: 0; height: 48px; flex: 1; padding: 0 15px; border: 1px solid #d8cfbe; border-radius: 14px; background: #fff; color: var(--bs-chat-navy); font-size: 13px; }
.bs-chatbot__form input[name="message"]::placeholder { color: #777b88; opacity: 1; }
.bs-chatbot__form input[name="message"]:focus { border-color: var(--bs-chat-rust); outline: 2px solid rgba(187, 106, 53, .35); outline-offset: 1px; box-shadow: none; }
.bs-chatbot__form button[type="submit"] { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; padding: 10px; border: 1px solid var(--bs-chat-rust); border-radius: 14px; background: #fffaf3; cursor: pointer; box-shadow: 0 3px 9px rgba(30, 43, 72, .06); transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.bs-chatbot__form button[type="submit"]:hover { transform: translateY(-1px); background: #f3ede2; box-shadow: 0 5px 12px rgba(30, 43, 72, .12); }
.bs-chatbot__form button[type="submit"] img { display: block; width: 23px; height: 23px; object-fit: contain; }
.bs-chatbot__form button:disabled { cursor: wait; opacity: .65; }
.bs-chatbot__honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.bs-chatbot :where(button, a, input):focus-visible { outline: 3px solid rgba(187, 106, 53, .55); outline-offset: 3px; }
.bs-chatbot__header button:focus-visible { outline-color: #fff; }

@media (max-width: 600px) {
	.bs-chatbot { right: 14px; bottom: 14px; }
	.bs-chatbot__launcher { min-height: 58px; padding-right: 17px; }
	.bs-chatbot__launcher-coin { width: 38px; height: 38px; flex-basis: 38px; }
	.bs-chatbot__panel { position: fixed; right: 12px; bottom: 82px; width: calc(100vw - 24px); height: min(650px, calc(100dvh - 100px)); min-height: min(420px, calc(100dvh - 100px)); border-radius: 23px; transform-origin: bottom right; }
	.bs-chatbot__header { min-height: 92px; padding: 13px 14px; border-radius: 22px 22px 16px 16px; }
	.bs-chatbot__avatar-frame { width: 54px; height: 54px; flex-basis: 54px; border-radius: 17px; }
	.bs-chatbot__header-coin { width: 44px; height: 44px; flex-basis: 44px; }
	.bs-chatbot__header-copy strong { font-size: 19px; }
	.bs-chatbot__close { width: 40px; height: 40px; flex-basis: 40px; }
	.bs-chatbot__messages { padding: 16px 12px 12px; }
	.bs-chatbot__quick { width: calc(100% - 38px); }
	.bs-chatbot__notice { padding-right: 13px; padding-left: 13px; }
	.bs-chatbot__form { padding: 10px; }
}

@media (max-width: 380px) {
	.bs-chatbot { right: 10px; bottom: 10px; }
	.bs-chatbot__panel { right: 8px; bottom: 74px; width: calc(100vw - 16px); height: calc(100dvh - 88px); }
	.bs-chatbot__header { gap: 8px; }
	.bs-chatbot__avatar-frame { width: 48px; height: 48px; flex-basis: 48px; }
	.bs-chatbot__header-coin { width: 40px; height: 40px; flex-basis: 40px; }
	.bs-chatbot__header-copy strong { font-size: 17px; }
	.bs-chatbot__header-copy span { font-size: 10px; }
	.bs-chatbot__close { width: 40px; height: 40px; flex-basis: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.bs-chatbot *, .bs-chatbot *::before, .bs-chatbot *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.bs-chatbot__launcher-coin, .bs-chatbot__panel.is-open .bs-chatbot__header-coin { animation: none !important; transition: none !important; transform: none !important; }
	.bs-chatbot__launcher:hover, .bs-chatbot__close:hover, .bs-chatbot__quick button:hover, .bs-chatbot__form button[type="submit"]:hover { transform: none; }
}
