/* Naturalook Assistant - site colours: rgb(155,140,110) main, #242424 headings, #777 text. */

.nlchat {
	--nlchat-main: rgb(155, 140, 110);
	--nlchat-main-dark: rgb(125, 112, 86);
	--nlchat-ink: #242424;
	--nlchat-text: #555;
	/* Above the theme's own "back to top" button (20px + 50px, bottom right). */
	--nlchat-bottom: 82px;
	--nlchat-side: 20px;
	position: fixed;
	right: var(--nlchat-side);
	bottom: var(--nlchat-bottom);
	z-index: 99990;
	font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.45;
}

/* Below 1025px the theme shows its bottom toolbar (55px) with "back to top"
   just above it on the right (40px): the chat goes above both. */
@media (max-width: 1024px) {
	body.sticky-toolbar-on .nlchat {
		--nlchat-bottom: 117px;
	}
}

/* Cart and checkout: out of the way while "Place order" is under the button. */
.nlchat--yield .nlchat-btn {
	opacity: 0;
	pointer-events: none;
	transform: scale(.6);
}

.nlchat *,
.nlchat *::before,
.nlchat *::after {
	box-sizing: border-box;
}

.nlchat .nlchat-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--nlchat-main);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
	cursor: pointer;
	transition: background .2s, opacity .15s, transform .15s;
}

.nlchat .nlchat-btn:hover,
.nlchat .nlchat-btn:focus-visible {
	background: var(--nlchat-main-dark);
}

.nlchat .nlchat-btn:focus-visible,
.nlchat .nlchat-close:focus-visible,
.nlchat-send:focus-visible {
	outline: 2px solid var(--nlchat-ink);
	outline-offset: 2px;
}

.nlchat-panel {
	position: absolute;
	right: 0;
	bottom: 68px;
	display: flex;
	flex-direction: column;
	width: 370px;
	height: 540px;
	max-height: calc(100vh - var(--nlchat-bottom) - 90px);
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
	overflow: hidden;
}

.nlchat-panel[hidden] {
	display: none;
}

.nlchat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	background: var(--nlchat-main);
	color: #fff;
}

.nlchat-title {
	font-weight: 600;
	font-size: 15px;
}

.nlchat .nlchat-close {
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.nlchat-notice {
	padding: 8px 14px;
	background: #f7f5f1;
	color: var(--nlchat-text);
	font-size: 12px;
}

.nlchat-notice a {
	color: var(--nlchat-main-dark);
	text-decoration: underline;
}

.nlchat-list {
	flex: 1;
	padding: 14px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.nlchat-msg {
	max-width: 85%;
	margin: 0 0 10px;
	padding: 9px 12px;
	border-radius: 12px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.nlchat-msg--bot {
	background: #f1efea;
	color: var(--nlchat-ink);
	border-bottom-left-radius: 3px;
}

.nlchat-msg--client {
	margin-left: auto;
	background: var(--nlchat-main);
	color: #fff;
	border-bottom-right-radius: 3px;
}

.nlchat-typing span {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 2px;
	border-radius: 50%;
	background: var(--nlchat-main);
	animation: nlchat-dot 1s infinite ease-in-out;
}

.nlchat-typing span:nth-child(2) { animation-delay: .15s; }
.nlchat-typing span:nth-child(3) { animation-delay: .3s; }

@keyframes nlchat-dot {
	0%, 80%, 100% { opacity: .3; }
	40% { opacity: 1; }
}

.nlchat-form {
	display: flex;
	gap: 8px;
	align-items: flex-end;
	margin: 0;
	padding: 10px;
	border-top: 1px solid #eee;
}

.nlchat-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

.nlchat .nlchat-input {
	flex: 1;
	min-height: 40px;
	max-height: 120px;
	margin: 0;
	padding: 9px 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	color: var(--nlchat-ink);
	font: inherit;
	/* 16px stops iOS from zooming the page on focus. */
	font-size: 16px;
	resize: none;
	box-shadow: none;
}

.nlchat .nlchat-input:focus {
	border-color: var(--nlchat-main);
	outline: none;
}

.nlchat .nlchat-send {
	height: 40px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 8px;
	background: var(--nlchat-main);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.nlchat .nlchat-send:disabled {
	opacity: .5;
	cursor: default;
}

@media (max-width: 600px) {
	.nlchat {
		--nlchat-bottom: 72px;
		--nlchat-side: 16px;
	}

	.nlchat .nlchat-btn {
		width: 50px;
		height: 50px;
	}

	/* Phone: the open window takes the whole screen, the button hides. */
	.nlchat--open {
		inset: 0;
		/* Over the WordPress admin bar (99999) too, or it hides the close button. */
		z-index: 100000;
	}

	.nlchat--open .nlchat-btn {
		display: none;
	}

	/* The visible part of the screen, not the layout viewport: iPhone Safari
	   shows the page under a 100% window, and the keyboard covers the field.
	   chat.js keeps --nlchat-vh / --nlchat-vtop on the visual viewport;
	   100dvh until it has. */
	.nlchat-panel {
		position: fixed;
		top: var(--nlchat-vtop, 0);
		right: 0;
		bottom: auto;
		left: 0;
		width: auto;
		height: 100vh;
		height: 100dvh;
		height: var(--nlchat-vh, 100dvh);
		max-height: none;
		border-radius: 0;
	}

	/* 16px or iOS zooms the page when the field gets the focus. */
	.nlchat .nlchat-form .nlchat-input {
		font-size: 16px;
	}
}

/* Phone, chat open: the page under it stays still (chat.js fixes the body
   where it was and puts it back on closing). */
html.nlchat-lock,
html.nlchat-lock body {
	overflow: hidden;
	overscroll-behavior: none;
}

@media (prefers-reduced-motion: reduce) {
	.nlchat-typing span {
		animation: none;
	}
}

.nlchat-msg--bot a {
	color: var(--nlchat-main-dark);
	text-decoration: underline;
	overflow-wrap: anywhere;
}

/* Product cards under a bot answer. */
.nlchat-cards {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 10px;
}

.nlchat-card {
	display: flex;
	gap: 10px;
	padding: 8px;
	background: #fff;
	border: 1px solid #e8e4dc;
	border-radius: 10px;
}

.nlchat-card-img {
	flex: 0 0 84px;
	width: 84px;
	height: 112px;
	object-fit: cover;
	border-radius: 6px;
	background: #f4f2ee;
}

.nlchat-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.nlchat-card-name {
	color: var(--nlchat-ink);
	font-weight: 600;
	font-size: 13px;
	line-height: 1.3;
	/* Long product names: three lines at most. */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nlchat-card-size {
	color: var(--nlchat-text);
	font-size: 12px;
}

.nlchat-card-price {
	color: var(--nlchat-ink);
	font-weight: 600;
	font-size: 15px;
}

.nlchat-card-stock {
	font-size: 12px;
}

.nlchat-card-stock--in {
	color: #2e7d4f;
}

.nlchat-card-stock--out {
	color: #a33a2b;
}

.nlchat-card-note {
	color: var(--nlchat-main-dark);
	font-size: 12px;
	font-weight: 600;
}

.nlchat .nlchat-card-btn {
	align-self: flex-start;
	margin-top: auto;
	padding: 6px 12px;
	border-radius: 6px;
	background: var(--nlchat-main);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.nlchat .nlchat-card-btn:hover,
.nlchat .nlchat-card-btn:focus-visible {
	background: var(--nlchat-main-dark);
	color: #fff;
}

/* Three and more: a row of narrow cards to swipe through. */
.nlchat-cards--scroll {
	flex-direction: row;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	padding-bottom: 4px;
	-webkit-overflow-scrolling: touch;
}

.nlchat-cards--scroll .nlchat-card {
	flex: 0 0 168px;
	flex-direction: column;
	scroll-snap-align: start;
}

.nlchat-cards--scroll .nlchat-card-img {
	flex: none;
	width: 100%;
	height: 150px;
}

.nlchat-cards--scroll .nlchat-card-btn {
	align-self: stretch;
	text-align: center;
}

/* Order cards (stage 2). */
.nlchat-card--order .nlchat-card-body {
	gap: 4px;
}

.nlchat-order-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 8px;
}

.nlchat-order-date {
	color: var(--nlchat-text);
	font-size: 12px;
}

.nlchat-order-status {
	align-self: flex-start;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
}

.nlchat-order-status--ok {
	background: #e7f3ec;
	color: #2e7d4f;
}

.nlchat-order-status--wait {
	background: #fdf3dc;
	color: #8a6110;
}

.nlchat-order-status--bad {
	background: #fbe9e6;
	color: #a33a2b;
}

.nlchat-order-status--done {
	background: #efefef;
	color: #666;
}

.nlchat-order-item {
	color: var(--nlchat-ink);
	font-size: 12px;
	overflow-wrap: anywhere;
}

.nlchat-order-parcel {
	color: var(--nlchat-ink);
	font-size: 12px;
	font-weight: 600;
}

.nlchat-order-updated {
	color: var(--nlchat-text);
	font-weight: 400;
}

.nlchat-order-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}

/* Order cards stay full width, even three of them. */
.nlchat-cards--scroll .nlchat-card--order {
	flex: 0 0 85%;
	align-self: flex-start;
}

/* Window, 0.7.0: header with logo and "AI assistant", quick questions,
   thin scrollbars in the site colour, round send button. */
.nlchat-head {
	gap: 10px;
	justify-content: flex-start;
	padding: 10px 10px 10px 12px;
}

.nlchat-logo {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	object-fit: contain;
	padding: 3px;
}

.nlchat-titles {
	flex: 1;
	min-width: 0;
	line-height: 1.2;
}

.nlchat-sub {
	font-size: 12px;
	opacity: .85;
}

.nlchat .nlchat-iconbtn {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.nlchat .nlchat-iconbtn:hover,
.nlchat .nlchat-iconbtn:focus-visible {
	background: rgba(255, 255, 255, .18);
}

.nlchat-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 10px;
}

.nlchat .nlchat-chip {
	margin: 0;
	padding: 6px 12px;
	border: 1px solid var(--nlchat-main);
	border-radius: 16px;
	background: #fff;
	color: var(--nlchat-main-dark);
	font: inherit;
	font-size: 13px;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
	/* The theme styles every button: uppercase, letter spacing, fixed height. */
	text-transform: none;
	letter-spacing: normal;
	font-weight: 400;
	min-height: 0;
	height: auto;
	box-shadow: none;
}

.nlchat .nlchat-chip:hover,
.nlchat .nlchat-chip:focus-visible {
	background: #f7f4ef;
}

/* Firefox only: in Chrome/Edge/Safari these two would replace the
   ::-webkit-scrollbar styling below with a native bar that has arrows. */
@supports not selector(::-webkit-scrollbar) {
	.nlchat-list,
	.nlchat .nlchat-input,
	.nlchat-cards--scroll {
		scrollbar-width: thin;
		scrollbar-color: var(--nlchat-main) transparent;
	}
}

.nlchat-list::-webkit-scrollbar,
.nlchat .nlchat-input::-webkit-scrollbar,
.nlchat-cards--scroll::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

.nlchat-list::-webkit-scrollbar-thumb,
.nlchat .nlchat-input::-webkit-scrollbar-thumb,
.nlchat-cards--scroll::-webkit-scrollbar-thumb {
	border-radius: 3px;
	background: var(--nlchat-main);
}

.nlchat-list::-webkit-scrollbar-track,
.nlchat .nlchat-input::-webkit-scrollbar-track,
.nlchat-cards--scroll::-webkit-scrollbar-track {
	background: transparent;
}

/* No arrow buttons on the scrollbars. */
.nlchat-list::-webkit-scrollbar-button,
.nlchat .nlchat-input::-webkit-scrollbar-button,
.nlchat-cards--scroll::-webkit-scrollbar-button {
	display: none;
}

.nlchat .nlchat-input {
	overflow-y: hidden;
	border-radius: 20px;
	padding: 9px 14px;
}

.nlchat .nlchat-send {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
}

/* 0.8.0: taller and wider on a computer; real lists; the 30-day line. */
@media (min-width: 601px) {
	.nlchat-panel {
		width: 410px;
		height: 640px;
	}
}

.nlchat-msg--bot {
	white-space: normal;
}

.nlchat-p {
	margin: 0 0 6px;
	white-space: pre-wrap;
}

.nlchat-p:last-child,
.nlchat-ls:last-child {
	margin-bottom: 0;
}

.nlchat .nlchat-ls {
	margin: 0 0 6px;
	padding: 0 0 0 20px;
	list-style-position: outside;
}

.nlchat ul.nlchat-ls {
	list-style-type: disc;
}

.nlchat ol.nlchat-ls {
	list-style-type: decimal;
}

.nlchat .nlchat-ls li {
	margin: 0 0 3px;
	padding: 0;
}

.nlchat-ls li::marker {
	color: var(--nlchat-main-dark);
}

.nlchat-foot {
	padding: 0 12px 8px;
	color: #999;
	font-size: 11px;
	text-align: center;
}

.nlchat-foot a {
	color: #999;
	text-decoration: underline;
}

.nlchat-foot[hidden],
.nlchat-notice[hidden] {
	display: none;
}

/* Order cards: one under another, compact. */
.nlchat-card--order {
	padding: 8px 10px;
}

.nlchat-card--order .nlchat-card-body {
	gap: 2px;
}

/* Order cards, tighter: one line per item, smaller buttons. */
.nlchat-order-item {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.nlchat-card--order .nlchat-order-btns {
	margin-top: 2px;
}

.nlchat .nlchat-card--order .nlchat-card-btn {
	padding: 4px 10px;
	font-size: 11px;
}

.nlchat-card--order .nlchat-order-status {
	padding: 1px 8px;
	font-size: 11px;
}

/* 0.8.1: course cards like product cards - small picture left, stacked. */
.nlchat-card--course .nlchat-card-img {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
}

/* The window never goes under the WordPress toolbar of a signed-in admin
   (32px, 46px on narrower screens) and is never taller than the screen:
   bottom offset + the 56px button + 12px gap + 10px margin + toolbar. */
@media (min-width: 601px) {
	.nlchat-panel {
		max-height: calc(100vh - var(--nlchat-bottom) - 78px - 10px);
	}

	body.admin-bar .nlchat-panel {
		max-height: calc(100vh - var(--nlchat-bottom) - 78px - 10px - 32px);
	}
}

@media (min-width: 601px) and (max-width: 782px) {
	body.admin-bar .nlchat-panel {
		max-height: calc(100vh - var(--nlchat-bottom) - 78px - 10px - 46px);
	}
}

/* Sign in from the chat (a guest asking about their orders or their price). */
.nlchat-card--login .nlchat-card-body {
	gap: 8px;
}

.nlchat-login-text {
	color: var(--nlchat-ink);
	font-size: 13px;
	line-height: 1.4;
}

.nlchat .nlchat-card--login .nlchat-card-btn {
	margin-top: 0;
	padding: 8px 18px;
}

/* A line from the website itself: "You are signed in". */
.nlchat-note {
	display: table;
	margin: 2px auto 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f4f2ee;
	color: var(--nlchat-text);
	font-size: 11px;
	text-align: center;
}

/* 0.9.1: product cards like course cards - small picture left, text right,
   one under another (no sideways row). Product photos are kept whole. */
.nlchat-card--product .nlchat-card-img {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	object-fit: contain;
	background: #fff;
	border-radius: 8px;
}

.nlchat-card--compact .nlchat-card-name {
	-webkit-line-clamp: 2;
}

.nlchat-card--compact .nlchat-card-price {
	font-size: 14px;
}

.nlchat .nlchat-card--compact .nlchat-card-btn {
	margin-top: 4px;
	padding: 4px 10px;
	font-size: 11px;
}

/* "Show 3 more" under the first four cards. */
.nlchat .nlchat-more {
	align-self: flex-start;
	padding: 5px 12px;
	border: 1px solid var(--nlchat-main);
	border-radius: 999px;
	background: #fff;
	color: var(--nlchat-main-dark);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.nlchat .nlchat-more:hover,
.nlchat .nlchat-more:focus-visible {
	background: var(--nlchat-main);
	color: #fff;
}

/* "Try again" inside the message that says something did not go through. */
.nlchat .nlchat-retry {
	display: block;
	margin-top: 8px;
	padding: 5px 12px;
	border: 0;
	border-radius: 6px;
	background: var(--nlchat-main);
	color: #fff;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.nlchat .nlchat-retry:hover,
.nlchat .nlchat-retry:focus-visible {
	background: var(--nlchat-main-dark);
}

.nlchat-card[hidden] {
	display: none;
}

.nlchat-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
	font-size: 12px;
}

.nlchat-card-meta > span + span::before {
	content: "·";
	margin-right: 6px;
	color: #bbb;
}

.nlchat-card--compact {
	padding: 6px 8px;
}

.nlchat-card--compact .nlchat-card-body {
	gap: 1px;
}

/* ---- The cloud next to the chat button (0.9.4) ----
   Desktop: to the left of the button, one line. Phone: small, above the
   button, right-aligned. Steps aside over "Add to cart" (chat.js). */
.nlchat-teaser {
	position: absolute;
	top: 50%;
	right: calc(100% + 12px);
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 4px 4px 4px 14px;
	border: 1px solid #e8e4dc;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
	white-space: nowrap;
	opacity: 0;
	transform: translate(6px, -50%);
	transition: opacity .25s, transform .25s;
}

.nlchat-teaser--in {
	opacity: 1;
	transform: translate(0, -50%);
}

.nlchat-teaser--yield {
	opacity: 0;
	pointer-events: none;
}

/* Little tail pointing at the button. */
.nlchat-teaser::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -6px;
	width: 10px;
	height: 10px;
	margin-top: -5px;
	border-top: 1px solid #e8e4dc;
	border-right: 1px solid #e8e4dc;
	background: #fff;
	transform: rotate(45deg);
}

.nlchat .nlchat-teaser-text {
	margin: 0;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--nlchat-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.nlchat .nlchat-teaser-text:hover,
.nlchat .nlchat-teaser-text:focus-visible {
	color: var(--nlchat-main-dark);
}

.nlchat .nlchat-teaser-x {
	position: relative;
	z-index: 1;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: #999;
	font: inherit;
	font-size: 18px;
	line-height: 26px;
	text-transform: none;
	cursor: pointer;
}

.nlchat .nlchat-teaser-x:hover,
.nlchat .nlchat-teaser-x:focus-visible {
	background: #f1efea;
	color: var(--nlchat-ink);
}

.nlchat--open .nlchat-teaser,
.nlchat--yield .nlchat-teaser {
	display: none;
}

@media (max-width: 600px) {
	.nlchat-teaser {
		top: auto;
		right: 0;
		bottom: calc(100% + 10px);
		max-width: calc(100vw - 32px);
		padding: 2px 2px 2px 12px;
		transform: translateY(6px);
	}

	.nlchat-teaser--in {
		transform: none;
	}

	.nlchat-teaser::after {
		top: auto;
		right: 20px;
		bottom: -6px;
		margin-top: 0;
		transform: rotate(135deg);
	}

	.nlchat .nlchat-teaser-text {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nlchat-teaser {
		transition: none;
	}
}

/* Woodmart gives every <button> min-height: 42px (found on the live theme,
   09.10.2026): the small buttons of the chat keep their own size. */
.nlchat .nlchat-teaser-text,
.nlchat .nlchat-teaser-x,
.nlchat .nlchat-more,
.nlchat .nlchat-retry,
.nlchat .nlchat-chip {
	min-height: 0;
	height: auto;
	line-height: 1.3;
}

.nlchat .nlchat-teaser-x {
	height: 26px;
	line-height: 26px;
}

/* Out of stock but ordered from the supplier (0.9.6). */
.nlchat-card-stock--restock {
	color: #9a6a12;
}
