/* Ask Koda */
.askkoda {
	--ak-navy: #163A70;
	--ak-blue: #1E63B6;
	--ak-teal: #11B8C9;
	--ak-text: #1D2433;
	--ak-muted: #667085;
	--ak-line: #E7ECF3;
	--ak-bg: #F7FAFD;
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99990;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ak-text);
}
.askkoda[hidden] { display: none !important; }
.askkoda *, .askkoda *::before, .askkoda *::after { box-sizing: border-box; }
.askkoda .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.askkoda-launch {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 22px 10px 10px; border: 0; border-radius: 999px;
	background: var(--ak-navy); color: #fff;
	font: 600 15px/1 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none;
	box-shadow: 0 10px 28px rgba(22, 58, 112, .28); cursor: pointer;
	transition: transform .15s, background .15s;
}
.askkoda-launch:hover { background: var(--ak-blue); transform: translateY(-1px); color: #fff; }
.askkoda-launch:focus-visible { outline: 3px solid var(--ak-teal); outline-offset: 3px; }
.askkoda-launch-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--ak-teal); }
.askkoda-launch-icon svg { width: 22px; height: 22px; }
.askkoda-launch-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }
.askkoda-launch-text strong { font: 700 16px/1.1 Manrope, Inter, sans-serif; }
.askkoda-launch-text small { font: 500 12px/1.1 Inter, system-ui, sans-serif; opacity: .8; }
.askkoda.is-open .askkoda-launch { display: none; }

.askkoda-panel {
	width: 390px; max-width: calc(100vw - 24px);
	height: 600px; max-height: calc(100vh - 44px);
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--ak-line); border-radius: 18px;
	box-shadow: 0 24px 60px rgba(22, 58, 112, .22);
	overflow: hidden;
}
.askkoda-panel[hidden] { display: none; }

.askkoda-head {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 14px 14px 14px 18px; background: var(--ak-navy); color: #fff;
}
.askkoda-head strong { display: block; font: 700 17px/1.2 Manrope, Inter, sans-serif; }
.askkoda-head span { display: block; font-size: 12.5px; opacity: .8; }
.askkoda-head-actions { display: flex; align-items: center; gap: 4px; }
.askkoda-head button {
	border: 0; background: transparent; color: #fff; cursor: pointer;
	font: 500 13px/1 Inter, system-ui, sans-serif; text-transform: none; letter-spacing: 0;
	padding: 7px 9px; border-radius: 8px;
}
.askkoda-head button:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.askkoda-head .askkoda-close { font-size: 24px; padding: 3px 10px 6px; }

.askkoda-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: var(--ak-bg); }
.askkoda-msg { max-width: 92%; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; word-wrap: break-word; }
.askkoda-msg p { margin: 0 0 8px; }
.askkoda-msg p:last-child, .askkoda-msg ol:last-child, .askkoda-msg ul:last-child { margin-bottom: 0; }
.askkoda-msg ol, .askkoda-msg ul { margin: 0 0 8px; padding-left: 20px; }
.askkoda-msg li { margin: 0 0 4px; }
.askkoda-msg code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: #EEF3FA; padding: 1px 5px; border-radius: 5px; }
.askkoda-msg a { color: var(--ak-blue); text-decoration: underline; text-underline-offset: 2px; }
.askkoda-bot { background: #fff; border: 1px solid var(--ak-line); border-top-left-radius: 4px; }
.askkoda-user { margin-left: auto; background: var(--ak-blue); color: #fff; border-top-right-radius: 4px; }
.askkoda-user a { color: #fff; }

.askkoda-handoff {
	display: inline-block; margin-top: 10px; padding: 8px 14px; border-radius: 10px;
	background: var(--ak-navy); color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: 14px;
}
.askkoda-handoff:hover { background: var(--ak-blue); }

.askkoda-wait { display: flex; align-items: center; gap: 10px; color: var(--ak-muted); font-size: 14px; }
.askkoda-dots { display: inline-flex; gap: 4px; }
.askkoda-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ak-teal); animation: askkoda-bounce 1s infinite ease-in-out; }
.askkoda-dots i:nth-child(2) { animation-delay: .15s; }
.askkoda-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes askkoda-bounce { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.askkoda-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid var(--ak-line); background: #fff; margin: 0; }
.askkoda-form textarea {
	flex: 1; resize: none; min-height: 42px; max-height: 140px; margin: 0;
	padding: 10px 12px; border: 1px solid #D5DDE8; border-radius: 12px; background: #fff;
	font: 15px/1.4 Inter, system-ui, sans-serif; color: var(--ak-text); box-shadow: none; overflow-y: hidden;
}
.askkoda-form textarea:focus { outline: none; border-color: var(--ak-blue); box-shadow: 0 0 0 3px rgba(30, 99, 182, .15); }
.askkoda-send {
	flex: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 12px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--ak-navy); color: #fff; cursor: pointer;
}
.askkoda-send:hover { background: var(--ak-blue); color: #fff; }
.askkoda-send:disabled { opacity: .5; cursor: wait; }
.askkoda-note { margin: 0; padding: 2px 14px 10px; font-size: 11.5px; line-height: 1.4; color: var(--ak-muted); background: #fff; }

@media (max-width: 520px) {
	.askkoda { right: 12px; bottom: 12px; }
	.askkoda.is-open { left: 0; right: 0; top: 0; bottom: 0; }
	.askkoda.is-open .askkoda-panel { width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; border: 0; }
	.askkoda-launch { padding: 8px 16px 8px 8px; }
	.askkoda-launch-text small { display: none; }
}
/* Suggested questions in the empty chat */
.askkoda-suggest { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: -2px 0 12px; }
.askkoda-suggest button {
	border: 1px solid #CFDCEC; background: #fff; color: var(--ak-blue); border-radius: 999px;
	padding: 7px 14px; font: 500 13.5px/1.35 Inter, system-ui, sans-serif; text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.askkoda-suggest button:hover { border-color: var(--ak-blue); background: #EEF4FC; color: var(--ak-blue); }

/* "Ask a question" boxes (docs and support pages) */
.askkoda-box { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #1D2433; }
.askkoda-box .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.askkoda-box-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 15px/1.3 Manrope, Inter, sans-serif; color: #163A70; }
.askkoda-box-dot { width: 8px; height: 8px; border-radius: 50%; background: #11B8C9; box-shadow: 0 0 0 4px rgba(17, 184, 201, .18); }
.askkoda-box-text { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; color: #475467; }
.askkoda-box-form { display: flex; gap: 8px; margin: 0; }
.askkoda-box-form input[type="text"] {
	flex: 1; min-width: 0; margin: 0; height: auto; padding: 10px 12px; border: 1px solid #D5DDE8; border-radius: 10px;
	background: #fff; font: 15px/1.3 Inter, system-ui, sans-serif; color: #1D2433; box-shadow: none;
}
.askkoda-box-form input[type="text"]:focus { outline: none; border-color: #1E63B6; box-shadow: 0 0 0 3px rgba(30, 99, 182, .15); }
.askkoda-box-form button {
	flex: none; border: 0; border-radius: 10px; padding: 10px 16px; background: #163A70; color: #fff; cursor: pointer;
	font: 600 14px/1.2 Inter, system-ui, sans-serif; text-transform: none; letter-spacing: 0; min-height: 0;
}
.askkoda-box-form button:hover { background: #1E63B6; color: #fff; }
.askkoda-box-side { margin: -6px 0 22px; padding: 14px; border: 1px solid #DCE7F5; border-radius: 12px; background: linear-gradient(180deg, #F3F8FE, #fff); }
.askkoda-box-side .askkoda-box-form { flex-direction: column; }
.askkoda-box-side .askkoda-box-form input[type="text"] { font-size: 14px; padding: 9px 11px; }
.askkoda-box-hero { max-width: 640px; margin: 26px auto 0; }
.askkoda-box-hero .askkoda-box-form { padding: 6px; border: 1px solid #DCE7F5; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(22, 58, 112, .10); }
.askkoda-box-hero .askkoda-box-form input[type="text"] { border: 0; font-size: 16px; padding: 12px 12px; }
.askkoda-box-hero .askkoda-box-form input[type="text"]:focus { box-shadow: none; }
.askkoda-box-hero .askkoda-box-form button { padding: 12px 20px; font-size: 15px; }
.askkoda-box-card { margin: 0 0 28px; padding: 20px 22px; border: 1px solid #CFE3F7; border-left: 4px solid #11B8C9; border-radius: 14px; background: #F3F8FE; }

/* [askkoda_plug] home page section */
.askkoda-plug {
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center;
	max-width: 1200px; margin: 0 auto; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #1D2433;
}
.askkoda-plug-kicker { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(17, 184, 201, .14); color: #0B7F8C; font: 700 12px/1.2 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.askkoda-plug h2 { margin: 0 0 16px; font: 800 44px/1.1 Manrope, Inter, sans-serif; color: #1D2433; letter-spacing: -0.02em; text-transform: none; }
.askkoda-plug-copy > p { margin: 0 0 24px; font-size: 18px; line-height: 1.65; color: #475467; }
.askkoda-plug .askkoda-plug-small { margin: 16px 0 0; font-size: 14px; color: #667085; }
.askkoda-plug-go {
	border: 0; border-radius: 12px; padding: 15px 26px; background: #163A70; color: #fff; cursor: pointer;
	font: 700 16px/1 Manrope, Inter, sans-serif; text-transform: none; letter-spacing: 0; box-shadow: 0 10px 24px rgba(22, 58, 112, .25);
}
.askkoda-plug-go:hover { background: #1E63B6; color: #fff; }
.askkoda-plug-card { background: #fff; border: 1px solid #E7ECF3; border-radius: 20px; box-shadow: 0 24px 60px rgba(22, 58, 112, .14); overflow: hidden; }
.askkoda-plug-head { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 20px; background: #163A70; color: #fff; }
.askkoda-plug-head strong { font: 700 17px/1.2 Manrope, Inter, sans-serif; }
.askkoda-plug-head span { font-size: 13px; opacity: .8; }
.askkoda-plug-qs { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: #F7FAFD; }
.askkoda-plug-q {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
	border: 1px solid #DCE5F0; border-radius: 12px; padding: 13px 16px; background: #fff; color: #1D2433; cursor: pointer;
	font: 500 15px/1.4 Inter, system-ui, sans-serif; text-align: left; text-transform: none; letter-spacing: 0;
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.askkoda-plug-q span { color: #1E63B6; font-weight: 700; }
.askkoda-plug-q:hover { border-color: #1E63B6; color: #1D2433; background: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22, 58, 112, .08); }

@media (max-width: 860px) {
	.askkoda-plug { grid-template-columns: 1fr; gap: 32px; }
	.askkoda-plug h2 { font-size: 32px; }
	.askkoda-plug-copy > p { font-size: 16px; }
}
@media (max-width: 520px) {
	.askkoda-box-card .askkoda-box-form, .askkoda-box-hero .askkoda-box-form { flex-direction: column; }
}
@media print { .askkoda { display: none !important; } }
