/* Words On Wheel help chat. Sits above the WhatsApp button (bottom-right). Colours match the site's navy. */
.wow-chat {
	--wow-chat-brand: #0b2559;
	--wow-chat-accent: #f2a33a;
	--wow-chat-bg: #ffffff;
	--wow-chat-soft: #f0f3f9;
	--wow-chat-text: #1b2433;
	position: fixed;
	right: 16px;
	bottom: 84px;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
}
/* Undo the theme's global button styles (uppercase, letter-spacing, grey hover). */
.wow-chat button, .wow-chat a {
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.4;
	box-shadow: none;
	font-family: inherit;
}
.wow-chat__toggle {
	box-shadow: 0 8px 24px rgba(11, 37, 89, .3) !important;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 0;
	background: var(--wow-chat-brand);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(11, 37, 89, .3);
}
.wow-chat__toggle:focus-visible, .wow-chat button:focus-visible, .wow-chat a:focus-visible {
	outline: 3px solid var(--wow-chat-accent);
	outline-offset: 2px;
}
.wow-chat__panel {
	width: min(360px, calc(100vw - 32px));
	max-height: min(560px, calc(100vh - 170px));
	background: var(--wow-chat-bg);
	color: var(--wow-chat-text);
	border: 1px solid #e3e8f2;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(11, 37, 89, .2);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.wow-chat__panel[hidden] { display: none; }
.wow-chat__head {
	background: var(--wow-chat-brand);
	color: #fff;
	padding: 6px 6px 6px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.wow-chat__title { font-weight: 700; }
.wow-chat__close {
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
}
.wow-chat__log {
	padding: 14px 14px 4px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	overflow-y: auto;
	min-height: 60px;
}
.wow-chat__msg {
	max-width: 88%;
	padding: 9px 12px;
	border-radius: 12px;
	white-space: pre-line;
}
.wow-chat__msg--bot { align-self: flex-start; background: var(--wow-chat-soft); }
.wow-chat__msg--user { align-self: flex-end; background: var(--wow-chat-brand); color: #fff; }
.wow-chat__choices {
	padding: 8px 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	border-top: 1px solid #eef1f6;
	max-height: 170px;
	overflow-y: auto;
}
.wow-chat__choice {
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid var(--wow-chat-brand);
	border-radius: 999px;
	background: #fff;
	color: var(--wow-chat-brand);
	font: inherit;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}
.wow-chat__choice:hover, .wow-chat__choice:focus { background: var(--wow-chat-soft); color: var(--wow-chat-brand); }
.wow-chat__close:hover, .wow-chat__close:focus { background: rgba(255, 255, 255, .12); color: #fff; }
.wow-chat__toggle:hover, .wow-chat__toggle:focus { background: var(--wow-chat-brand); color: #fff; }
.wow-chat__form { display: flex; gap: 6px; padding: 8px 14px; border-top: 1px solid #eef1f6; }
.wow-chat__input { flex: 1; min-width: 0; padding: 10px; border: 1px solid #c5cedd; border-radius: 8px; font: inherit; }
.wow-chat__send { padding: 10px 14px; border: 0; border-radius: 8px; background: var(--wow-chat-brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.wow-chat__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 10px 14px 14px;
	border-top: 1px solid #eef1f6;
}
.wow-chat__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1.2 !important;
	flex: 1 1 auto;
	text-align: center;
	min-height: 40px;
	padding: 9px 10px;
	border-radius: 8px;
	border: 1px solid #c5cedd;
	color: var(--wow-chat-brand) !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 14px;
}
.wow-chat__action--primary { background: var(--wow-chat-accent); border-color: var(--wow-chat-accent); color: #1b2433 !important; }
@media (prefers-reduced-motion: no-preference) {
	.wow-chat__panel:not([hidden]) { animation: wow-chat-in .16s ease-out; }
	@keyframes wow-chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
