/* Nordsee Dart Masters Chatbot widget */

.ndm-chat-root {
	--ndm-accent: #0b5cab;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Launcher button */
.ndm-chat-launcher {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: none;
	background: var(--ndm-accent);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease;
}
.ndm-chat-launcher:hover {
	transform: scale(1.06);
}
.ndm-chat-launcher svg {
	width: 28px;
	height: 28px;
}
.ndm-chat-launcher .ndm-launcher-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}
/* With a custom icon, drop the accent circle so it doesn't show behind a
   logo with transparent areas, and clip the image to the round shape. */
.ndm-chat-launcher.ndm-has-icon {
	background: transparent;
	overflow: hidden;
	padding: 0;
}

/* Panel */
.ndm-chat-panel {
	position: absolute;
	right: 0;
	bottom: 76px;
	width: 360px;
	max-width: calc(100vw - 40px);
	height: 520px;
	max-height: calc(100vh - 120px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
	display: none;
	flex-direction: column;
	overflow: hidden;
}
.ndm-chat-root.ndm-open .ndm-chat-panel {
	display: flex;
}

.ndm-chat-header {
	background: var(--ndm-accent);
	color: #fff;
	padding: 14px 16px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.ndm-chat-header-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}
.ndm-chat-close,
.ndm-chat-new {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}
.ndm-chat-new {
	font-size: 17px;
	opacity: 0.85;
}
.ndm-chat-new:hover {
	opacity: 1;
}

.ndm-chat-messages {
	flex: 1;
	padding: 14px;
	overflow-y: auto;
	background: #f6f8fa;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ndm-msg {
	max-width: 80%;
	padding: 10px 12px;
	border-radius: 12px;
	line-height: 1.4;
	white-space: pre-wrap;
	word-wrap: break-word;
	font-size: 14px;
}
.ndm-msg-user {
	align-self: flex-end;
	background: var(--ndm-accent);
	color: #fff;
	border-bottom-right-radius: 4px;
}
.ndm-msg-bot {
	align-self: flex-start;
	background: #fff;
	color: #1a1a1a;
	border: 1px solid #e3e8ee;
	border-bottom-left-radius: 4px;
}

.ndm-chat-input {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #e3e8ee;
	background: #fff;
}
.ndm-chat-input textarea {
	flex: 1;
	resize: none;
	border: 1px solid #cfd7e0;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 14px;
	font-family: inherit;
	max-height: 96px;
	line-height: 1.3;
}
.ndm-chat-input textarea:focus {
	outline: none;
	border-color: var(--ndm-accent);
}
/* Honeypot: hidden from real users, off-screen so bots still "see" it. */
.ndm-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.ndm-chat-send {
	background: var(--ndm-accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0 14px;
	cursor: pointer;
	font-weight: 600;
}
.ndm-chat-send:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.ndm-typing {
	font-style: italic;
	opacity: 0.7;
}
