.nh-chat-button {
	position: fixed;
	bottom: 20px;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nh-chat-button--right {
	right: 20px;
	right: calc(20px + env(safe-area-inset-right, 0px));
}

.nh-chat-button--left {
	left: 20px;
	left: calc(20px + env(safe-area-inset-left, 0px));
}

.nh-chat-button:hover {
	color: #fff;
}

@media (hover: hover) {
	.nh-chat-button:hover {
		transform: scale(1.08);
		box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
	}
}

.nh-chat-button:focus-visible {
	color: #fff;
	transform: scale(1.08);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
	outline: 3px solid #128c7e;
	outline-offset: 3px;
}

.nh-chat-button svg {
	width: 30px;
	height: 30px;
}

.nh-chat-inline {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}

.nh-chat-inline svg {
	width: 1.25em;
	height: 1.25em;
	flex-shrink: 0;
}

.nh-chat-panel {
	position: fixed;
	z-index: 9991;
	box-sizing: border-box;
	bottom: 88px;
	bottom: calc(88px + env(safe-area-inset-bottom, 0px));
	width: 320px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 120px);
	max-height: calc(100dvh - 120px);
	overflow-y: auto;
	margin: 0;
	padding: 40px 16px 16px;
	background: #efeae2;
	color: #1f2c34;
	border: 0;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	font: inherit;
	line-height: 1.45;
	text-align: left;
}

.nh-chat-panel--right {
	right: 20px;
	right: calc(20px + env(safe-area-inset-right, 0px));
}

.nh-chat-panel--left {
	left: 20px;
	left: calc(20px + env(safe-area-inset-left, 0px));
}

.nh-chat-panel[hidden] {
	display: none !important;
}

.nh-chat-panel *,
.nh-chat-panel *::before,
.nh-chat-panel *::after {
	box-sizing: border-box;
}

.nh-chat-panel .nh-chat-panel__close {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	top: 6px;
	right: 6px;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #1f2c34;
	font: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.nh-chat-panel .nh-chat-panel__greeting {
	margin: 0 0 12px;
	padding: 10px 12px;
	background: #fff;
	color: #1f2c34;
	border-radius: 0 8px 8px 8px;
	white-space: pre-line;
	overflow-wrap: anywhere;
	font-size: 15px;
}

.nh-chat-panel .nh-chat-panel__chat {
	display: block;
	padding: 10px 16px;
	border-radius: 8px;
	background: #25d366;
	color: #072e22;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.nh-chat-panel .nh-chat-panel__chat:hover {
	background: #1ebe5d;
	color: #072e22;
}

.nh-chat-panel .nh-chat-panel__close:focus-visible {
	outline: 3px solid #128c7e;
	outline-offset: 2px;
}

.nh-chat-panel .nh-chat-panel__chat:focus-visible {
	outline: 3px solid #128c7e;
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.nh-chat-button {
		bottom: 16px;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		width: 52px;
		height: 52px;
	}

	.nh-chat-button--right {
		right: 16px;
		right: calc(16px + env(safe-area-inset-right, 0px));
	}

	.nh-chat-button--left {
		left: 16px;
		left: calc(16px + env(safe-area-inset-left, 0px));
	}

	.nh-chat-panel {
		bottom: 80px;
		bottom: calc(80px + env(safe-area-inset-bottom, 0px));
	}

	.nh-chat-panel--right {
		right: 16px;
		right: calc(16px + env(safe-area-inset-right, 0px));
	}

	.nh-chat-panel--left {
		left: 16px;
		left: calc(16px + env(safe-area-inset-left, 0px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.nh-chat-button {
		transition: none;
	}

	.nh-chat-button:hover {
		transform: none;
	}

	.nh-chat-button:focus-visible {
		transform: none;
	}
}
