.kinedio-chat-wrap {
	max-width: 980px;
	margin: 1rem auto;
}

.kinedio-chat-wrap .kinedio-chat {
	margin-top: 0;
	margin-bottom: 0;
}

.kinedio-chat__inline-title {
	margin: 0 0 0.75rem;
	line-height: 1.3;
	color: var(--kinedio-inline-title-color, inherit);
	text-align: var(--kinedio-inline-title-align, left);
}

.kinedio-chat-unavailable {
	max-width: 980px;
	margin: 1rem auto;
	padding: 0.85rem 1rem;
	border: 1px solid #e2e2e2;
	border-radius: var(--kinedio-window-radius);
	background: #fff7ed;
	color: #7c2d12;
}

:root {

	/* Default primary darkened to #4f5bd5 (~5.5:1 on white / with white text) so the
	   out-of-the-box palette meets WCAG 2.1 AA (1.4.3) for normal text. */
	--kinedio-primary: #4f5bd5;
	--kinedio-success: #1f7a33;
	--kinedio-header: var(--kinedio-primary);
	--kinedio-header-text: #fff;
	--kinedio-button: var(--kinedio-primary);
	--kinedio-button-text: #fff;
	--kinedio-button-hover: var(--kinedio-button);
	--kinedio-button-hover-text: var(--kinedio-button-text);
	--kinedio-user-bubble: #4f5bd5;
	--kinedio-user-bubble-text: #fff;
	--kinedio-inline-title-align: left;

	/* In-message link color (and list markers). Defaults to the primary color but is
	   independently configurable from the admin Appearance tab. */
	--kinedio-link: var(--kinedio-primary);
	--kinedio-window-radius: 12px;
	--kinedio-button-radius: 24px;
	--kinedio-font-size-base: 1rem;
}

.kinedio-chat {
	font-size: var(--kinedio-font-size-base);
	max-width: 980px;
	margin: 1rem auto;
	border: 1px solid #e2e2e2;
	border-radius: var(--kinedio-window-radius);
	background: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	position: relative;
}

.kinedio-chat__messages {
	height: 420px;
	overflow-y: auto;
	padding:24px 16px;;
	background: #f8f9fa;
}

.kinedio-chat__bubble {
	margin: 0.5rem 0;
	padding: 0.6rem 0.85rem;
	border-radius: var(--kinedio-button-radius);
	line-height: 1.45;
	width: fit-content;
	max-width: 100%;
	display: block;
}

.kinedio-chat__bubble--user {
	background: var(--kinedio-user-bubble);
	color: var(--kinedio-user-bubble-text);
	margin-left: auto;
	margin-right: 0;
	text-align: left;
	border-bottom-right-radius: min(4px, var(--kinedio-button-radius));
	margin-top:30px;
	margin-bottom: 30px;
}

.kinedio-chat__bubble--assistant {
	background: #fff;
	margin-left: 0;
	margin-right: auto;
	border-bottom-left-radius: min(4px, var(--kinedio-button-radius));
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Welcome message: width fits the content, not the whole messages column. */
.kinedio-chat__bubble--assistant.kinedio-chat__bubble--welcome {
	width: fit-content;
	max-width: 70%;
	box-sizing: border-box;
}

/* Assistant reply without cards or archive chips: same idea as the welcome (no empty "band" on the right). */
.kinedio-chat__bubble--assistant.kinedio-chat__bubble--no-cards {
	width: fit-content;
	max-width: 92%;
	box-sizing: border-box;
}

/* In the previous plugin the first assistant bubble (welcome) sat slightly lower. */
.kinedio-chat__messages > .kinedio-chat__bubble--assistant:first-child {
	margin-top: 0;
}

.kinedio-chat__cards {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.7rem;
}

/* Floating panel is narrow (~380px): stack cards vertically for readability. */
.kinedio-chat--floating-panel .kinedio-chat__cards {
	grid-template-columns: 1fr;
}

.kinedio-chat__card {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	width: 100%;
	padding: 0.6rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	align-items: stretch;
}

.kinedio-chat__card-image-link {
	display: block;
	width: 100%;
}

.kinedio-chat__card img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.kinedio-chat__card-body {
	flex: 1 1 auto;
	min-width: 0;
}

.kinedio-chat__card-title {
	font-size: 0.95em;
	line-height: 1.3;
	margin-top: 0.05rem;
}

.kinedio-chat__card-title a{
	text-decoration: none !important;
	color: var(--kinedio-primary);
	font-weight: 400;
	font-size: 1.263em;
}

.kinedio-chat__card-title a:hover,
.kinedio-chat__card-title a:focus,
.kinedio-chat__card-title a:active {
	text-decoration: none;
}

.kinedio-chat__card-price {
	font-size: 0.88em;
	font-weight: 700;
	margin-top: 0.25rem;
	color: #1f2937;
}

.kinedio-chat__card-price--sale {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
}

.kinedio-chat__card-price-original {
	font-weight: 400;
	color: #9ca3af;
	text-decoration: line-through;
}

.kinedio-chat__card-price-current {
	background: none;
	color: #b91c1c;
	text-decoration: none;
}

.kinedio-chat__card-actions {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin-top: 0.5rem;
}

.kinedio-chat__card-actions > a.kinedio-chat__card-button,
.kinedio-chat__card-actions > button.kinedio-chat__card-button {
	flex: none;
	width: 11.5rem;
	max-width: 88%;
}

a.kinedio-chat__card-button,
button.kinedio-chat__card-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.4rem;
	border-radius: var(--kinedio-button-radius);
	background: var(--kinedio-button);
	color: var(--kinedio-button-text);
	border: 1px solid transparent;
	text-decoration: none !important;
	font-size: 0.82em;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	line-height: 1.2;
	font-family: inherit;
	box-sizing: border-box;
}

.kinedio-chat__card-button:hover {
	background: var(--kinedio-button-hover);
	color: var(--kinedio-button-hover-text);
	text-decoration: none;
}

.kinedio-chat__card-button:focus,
.kinedio-chat__card-button:active {
	text-decoration: none;
}

.kinedio-chat__card-button--secondary {
	background: transparent;
	color: var(--kinedio-button);
	border-color: var(--kinedio-button);
}

.kinedio-chat__card-button--secondary:hover {
	background: var(--kinedio-button);
	color: var(--kinedio-button-text);
}

.kinedio-chat__card-button.is-loading {
	opacity: 0.75;
	cursor: progress;
}

.kinedio-chat__card-button.is-success {
	background: var(--kinedio-success, #2e7d32);
	color: #fff;
	border-color: transparent;
	cursor: default;
}

.kinedio-chat__card-button.is-error {
	background: #b71c1c;
	color: #fff;
	border-color: transparent;
}

.kinedio-chat__card-button.is-stale {
	opacity: 0.55;
	cursor: not-allowed;
	background: #e8ecf0;
	color: #5c6570;
	border-color: #c5cdd6;
}

.kinedio-chat__card-button.is-stale:hover {
	background: #e8ecf0;
	color: #5c6570;
}

/* Taxonomy archive links below the cards (title + chips). */
.kinedio-chat__archive-links {
	margin-top: 0.9rem;
	padding: 0.65rem 0.75rem 0.72rem;
	border-radius: 12px;
	background: linear-gradient(180deg, #fafbfc 0%, #f4f6f9 100%);
	border: 1px solid #e8ecf4;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.kinedio-chat__archive-links-head {
	margin-bottom: 0.55rem;
}

.kinedio-chat__archive-links-title {
	display: block;
	font-size: 0.68em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64748b;
	line-height: 1.3;
}

.kinedio-chat__archive-links-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	align-items: center;
}

a.kinedio-chat__archive-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.38rem 0.85rem;
	border-radius: 999px;
	font-size: 0.84em;
	font-weight: 600;
	line-height: 1.25;
	color: var(--kinedio-primary, #4f5bd5);
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	text-decoration: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

a.kinedio-chat__archive-chip:hover,
a.kinedio-chat__archive-chip:focus {
	background: #f8fafc;
	border-color: var(--kinedio-primary, #4f5bd5);
	box-shadow: 0 2px 8px rgba(79, 91, 213, 0.18);
	color: var(--kinedio-primary, #4f5bd5);
	outline: none;
}

.kinedio-chat__text p {
	margin: 0;
}

.kinedio-chat__text p:last-child {
	margin-bottom: 0;
}

.kinedio-chat__text ul,
.kinedio-chat__text ol {
	margin: 0.35rem 0 1.5rem;
	padding: 0;
}

.kinedio-chat__text li {
	margin: 0.3rem 0;
}

/* Unordered lists: custom round marker in the link/accent color. list-style is
   removed and a colored dot is drawn so the bullet color is themeable. */
.kinedio-chat__text ul {
	list-style: none;
	margin-left: 0.1rem;
}

.kinedio-chat__text ul > li {
	position: relative;
	padding-left: 1.4em;
}

.kinedio-chat__text ul > li::before {
	content: "";
	position: absolute;
	left: 0.15em;
	top: 0.66em;
	width: 0.45em;
	height: 0.45em;
	border-radius: 50%;
	background: var(--kinedio-link, var(--kinedio-primary));
	transform: translateY(-50%);
}

/* Ordered lists: keep the numbers but tint them with the accent color. */
.kinedio-chat__text ol {
	list-style: decimal;
	margin-left: 1.35rem;
}

.kinedio-chat__text ol > li::marker {
	color: var(--kinedio-link, var(--kinedio-primary));
	font-weight: 700;
}

/* In-message links (markdown-rendered) use the dedicated link color. */
.kinedio-chat__text a {
	color: var(--kinedio-link, var(--kinedio-primary));
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
	font-weight: 600;
}

.kinedio-chat__text a:hover,
.kinedio-chat__text a:focus {
	color: var(--kinedio-link, var(--kinedio-primary));
	text-decoration-thickness: 2px;
}

.kinedio-chat__text code {
	background: #f1f5f9;
	padding: 0.08rem 0.3rem;
	border-radius: 4px;
	font-size: 0.9em;
}

/* Markdown (pipe) tables: horizontal scroll on narrow screens. */
.kinedio-chat__text .kinedio-md-table-wrap {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0.55rem 0;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.kinedio-chat__text .kinedio-md-table {
	width: 100%;
	min-width: min(100%, 520px);
	border-collapse: collapse;
	font-size: 0.86em;
	line-height: 1.35;
}

.kinedio-chat__text .kinedio-md-table th,
.kinedio-chat__text .kinedio-md-table td {
	border: 1px solid #e5e7eb;
	padding: 0.5rem 0.65rem;
	text-align: left;
	vertical-align: middle;
	word-break: break-word;
	hyphens: auto;
}

.kinedio-chat__text .kinedio-md-table th {
	background: #eef2ff;
	color: #1e293b;
	font-weight: 700;
	white-space: nowrap;
}

.kinedio-chat__text .kinedio-md-table tbody tr:nth-child(even) {
	background: #f8fafc;
}

.kinedio-chat__text .kinedio-md-table tbody tr:hover {
	background: #f1f5f9;
}

.kinedio-chat__bubble--assistant.kinedio-chat__bubble--loading {
	width: fit-content;
	max-width: 60px;
	box-sizing: border-box;
	padding: 0.45rem 0.7rem;
}

.kinedio-chat__bubble--assistant.kinedio-chat__bubble--loading:has(.kinedio-chat__progress-text:not([hidden])) {
	max-width: 85%;
	padding: 0.65rem 0.85rem;
}

.kinedio-chat__progress-text {
	font-size: 0.925em;
	line-height: 1.45;
}

/* Blinking caret shown only while the progress label is being typed out.
   Removed automatically once typing completes (the .is-typing class is dropped)
   and disabled entirely under prefers-reduced-motion. */
.kinedio-chat__progress-anim.is-typing::after {
	content: "\258d";
	margin-left: 1px;
	color: var(--kinedio-link, var(--kinedio-primary));
	animation: kinedioProgressCaret 1s steps(1) infinite;
}

@keyframes kinedioProgressCaret {

	0%,
	50% {
		opacity: 1;
	}

	50.01%,
	100% {
		opacity: 0;
	}
}

.kinedio-chat__typing[hidden] {
	display: none;
}

.kinedio-chat__typing {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0.1rem 0.15rem;
}

.kinedio-chat__typing span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #999;
	animation: kinedioTyping 1.4s infinite;
}

.kinedio-chat__typing span:nth-child(2) {
	animation-delay: 0.2s;
}

.kinedio-chat__typing span:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes kinedioTyping {

	0%, 60%, 100% {
		transform: translateY(0);
		opacity: 0.7;
	}

	30% {
		transform: translateY(-8px);
		opacity: 1;
	}
}

.kinedio-chat__form {
	display: flex;
	gap: 0.5rem;
	padding: 14px;
	border-top: 1px solid #e9ecef;
	background: #fff;
	align-items: center;
	margin-bottom: 0;
}

.kinedio-chat__form label {
	flex: 1 1 auto;
	min-width: 0;
	display: block;
}

/* wpautop (the_content) inserts <br> at newlines inside block/shortcode HTML; hide them in the form row. */
.kinedio-chat__form br {
	display: none;
}

.kinedio-chat__form input[type="text"] {
	width: 100%;
	padding: 0.7rem 0.95rem;
	border-radius: var(--kinedio-button-radius);
	border: 1px solid #ccc;
	box-sizing: border-box
}

.kinedio-chat__form button {
	padding: 0.7rem 1.2rem;
	border-radius: var(--kinedio-button-radius);
	border: 0;
	background: var(--kinedio-button);
	color: var(--kinedio-button-text);
	cursor: pointer;
}

.kinedio-chat__form button:hover {
	background: var(--kinedio-button-hover);
	color: var(--kinedio-button-hover-text);
}

.kinedio-chat__meta {
	margin-top: 0.35rem;
	font-size: 0.6875em;
	opacity: 0.6;
}

/* Toolbar shown as overlay only in inline mode (direct child of the chat). */
.kinedio-chat > .kinedio-chat__toolbar {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
}

/* Toolbar inside the header (only inline layout with header + expand). */
.kinedio-chat__header .kinedio-chat__toolbar {
	position: absolute;
	right: 3.1rem;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	margin: 0;
	padding: 0;
}

.kinedio-chat__expand-btn {
	width: 36px;
	height: 36px;
	border: 1px solid #dbe1ea;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.95);
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.kinedio-chat__expand-open,
.kinedio-chat__expand-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	line-height: 1;
	font-size: 1.0625em;
}

.kinedio-chat__expand-close { display:none; }

.kinedio-chat__expand-btn.is-expanded .kinedio-chat__expand-open { display:none; }

.kinedio-chat__expand-btn.is-expanded .kinedio-chat__expand-close { display:inline; }

/* Hide the floating root before JS hydrates it into a floating panel,
   so it doesn't briefly render as a duplicate inline chat (FOUC) when
   another inline shortcode is also present on the page. */
.kinedio-chat--floating {
	display: none;
}

.kinedio-chat--floating-panel {
	position: fixed;
	right: 20px;
	bottom: 84px;
	width: min(380px, calc(100vw - 32px));
	max-width: 380px;
	margin: 0;
	z-index: 1;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
	display: none;
	overflow: hidden;
}

.kinedio-chat--floating-panel.is-open {
	display: flex;
	flex-direction: column;
	overscroll-behavior: contain;

	/* Open at a consistent, comfortable height instead of collapsing to the content
	   height (which left the panel very short with just a welcome message). */
	height: min(640px, calc(100dvh - 108px));
	max-height: min(640px, calc(100dvh - 108px));
}

.kinedio-chat--floating-panel.is-open .kinedio-chat__header {
	margin: 0;
	flex-shrink: 0;
}

.kinedio-chat--floating-panel.is-open .kinedio-chat__messages {
	height: auto;
	flex: 1 1 auto;
	min-height: 0;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.kinedio-chat--floating-panel.is-open .kinedio-chat__form {
	flex-shrink: 0;
}

.kinedio-floating-portal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	pointer-events: none;
	isolation: isolate;
}

.kinedio-floating-portal > .kinedio-chat--floating-panel,
.kinedio-floating-portal > .kinedio-chat__launcher {
	pointer-events: auto;
}

.kinedio-chat__launcher {
	position: fixed;
	right: 20px;
	bottom: max(20px, env(safe-area-inset-bottom, 0px));
	width: 52px;
	height: 52px;
	border-radius: 999px;
	border: 0;
	background: var(--kinedio-button);
	color: var(--kinedio-button-text);
	cursor: pointer;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
	z-index: 2;
}

.kinedio-chat__launcher-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	pointer-events: none;
}

.kinedio-chat__launcher-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.kinedio-chat__launcher:hover,
.kinedio-chat__launcher:focus {
	background: var(--kinedio-button-hover);
	color: var(--kinedio-button-hover-text);
}

.kinedio-chat__header {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	margin: 0 0 0.75rem;
	padding: 0.8rem 2.75rem 0.8rem 0.9rem;
	background: var(--kinedio-header);
	color: var(--kinedio-header-text);
	border-radius: var(--kinedio-window-radius) var(--kinedio-window-radius) 0 0;
	flex-shrink: 0;
}

.kinedio-chat__header:has(.kinedio-chat__toolbar) {
	padding-right: 5.25rem;
}

.kinedio-chat__title {
	font-size: 0.95em;
	font-weight: 700;
	text-align: center;
	width: 100%;
	max-width: 100%;
}

.kinedio-chat__close {
	position: absolute;
	right: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: var(--kinedio-header-text);
	font-size: 1.375em;
	line-height: 1;
	cursor: pointer;
	border-radius: 50px;
	padding: 5px 10px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.kinedio-chat__close:hover,
.kinedio-chat__close:focus-visible {
	background: var(--kinedio-button);
	color: var(--kinedio-button-text);
	outline: none;
}

.kinedio-chat__close:focus-visible {
	box-shadow: 0 0 0 2px var(--kinedio-header), 0 0 0 4px var(--kinedio-button);
}

.kinedio-chat__close:active {
	background: var(--kinedio-button-hover);
	color: var(--kinedio-button-hover-text);
}

@media (max-width: 640px) {

	.kinedio-chat__cards {
		grid-template-columns: 1fr;
	}

	.kinedio-chat--floating-panel {
		right: 8px;
		bottom: calc(64px + env(safe-area-inset-bottom, 0px));
		width: calc(100vw - 16px);
		max-width: none;
	}

	.kinedio-chat--floating-panel.is-open {
		right: 0;
		left: 0;
		bottom: 0;
		width: 100%;
		max-width: none;
		max-height: none;
		height: min(100dvh, 100vh);
		border-radius: var(--kinedio-window-radius) var(--kinedio-window-radius) 0 0;
		overscroll-behavior: none;
	}

	.kinedio-floating-portal.is-panel-open {
		overscroll-behavior: none;
	}

	.kinedio-chat--floating-panel.is-open .kinedio-chat__form {
		padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
	}

	.kinedio-floating-portal.is-panel-open > .kinedio-chat__launcher {
		opacity: 0;
		pointer-events: none;
	}

	.kinedio-chat__launcher {
		right: max(12px, env(safe-area-inset-right, 0px));
		bottom: max(12px, env(safe-area-inset-bottom, 0px));
	}

	.kinedio-chat__bubble--assistant.kinedio-chat__bubble--welcome{
		width: 90%;
		max-width: 90%;
	}

	.kinedio-chat__messages > .kinedio-chat__bubble--assistant:first-child{
		margin-top:0;
	}

	/* Inline chat only: shrink the messages area on phones so the input is reachable
	   without a long scroll. Floating and fullscreen keep their own (higher-specificity)
	   flex layouts, so this single-class rule does not affect them. */
	.kinedio-chat__messages {
		height: min(60dvh, 420px);
		scrollbar-width: none; /* Firefox */
		-ms-overflow-style: none; /* legacy Edge/IE */
	}

	.kinedio-chat__messages::-webkit-scrollbar {
		width: 0;
		height: 0;
		display: none; /* WebKit/Blink */
	}

	.kinedio-chat__form{
		flex-direction: column;
		align-items: stretch;
	}

	.kinedio-chat__form input[type="text"]{
		width: 100%;
	}

	.kinedio-chat__form button{
		width: 100%;
	}
}

.kinedio-chat--fullscreen {

	/* Reparented to document.body in JS so this z-index competes at the page root, not inside theme stacking contexts. */
	position: fixed !important;
	inset: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	height: 100dvh !important;
	max-width: 100vw !important;
	margin: 0 !important;
	border-radius: 0 !important;
	z-index: 100000 !important;
	isolation: isolate;
	display: flex !important;
	flex-direction: column !important;
	overscroll-behavior: none;
}

.kinedio-chat--fullscreen .kinedio-chat__messages {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	overscroll-behavior: none;
	-webkit-overflow-scrolling: touch;
}

.kinedio-chat--fullscreen .kinedio-chat__form {
	flex-shrink: 0;
	padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
}

/* Fullscreen header (injected by JS): flush to the top edges, never shrinks. */
.kinedio-chat--fullscreen > .kinedio-chat__header--fullscreen {
	margin: 0;
	border-radius: 0;
	flex-shrink: 0;
}

/* In fullscreen the header's close (×) replaces the overlay collapse arrow, so hide the latter. */
.kinedio-chat--fullscreen > .kinedio-chat__toolbar {
	display: none;
}

body.kinedio-chat-body-fullscreen {
	overflow: hidden;
}

body.kinedio-floating-scroll-lock {
	overflow: hidden;
	position: fixed;
	width: 100%;
	left: 0;
	right: 0;
}

.kinedio-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.kinedio-chat__card-actions a.added_to_cart.wc-forward{
	color: inherit;
    background: transparent;
	padding: 0 0.8rem;
    margin-top: 5px;
}

/* Safety net: a "View cart" link is only meaningful inside a product card's actions.
   If a theme's added_to_cart handler still injects one directly into the chat
   container (e.g. after the form), hide it so it can't leave an empty gap. */
.kinedio-chat > a.added_to_cart.wc-forward,
.kinedio-chat__form ~ a.added_to_cart.wc-forward {
	display: none !important;
}

/* Respect the user's reduced-motion preference (WCAG 2.3.3): freeze the typing
   animation and neutralize transitions. JS also disables smooth scrolling. */
@media (prefers-reduced-motion: reduce) {

	.kinedio-chat__typing span {
		animation: none;
	}

	a.kinedio-chat__archive-chip,
	.kinedio-chat__close {
		transition: none;
	}

	/* Defensive: JS already renders the label instantly without .is-typing here,
	   but make sure no caret can animate even if the class lingers. */
	.kinedio-chat__progress-anim.is-typing::after {
		content: none;
		animation: none;
	}
}