/* N2N Live Chat — fintech widget */
.n2n-lc {
	--n2n-lc-bg: #0b1628;
	--n2n-lc-bg-soft: #132238;
	--n2n-lc-border: rgba(255, 255, 255, 0.12);
	--n2n-lc-text: #f1f5f9;
	--n2n-lc-muted: #94a3b8;
	--n2n-lc-accent: #d4b84a;
	--n2n-lc-accent-hover: #e8cc62;
	--n2n-lc-radius: 16px;
	--n2n-lc-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
	font-family: Inter, system-ui, sans-serif;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999999;
	pointer-events: none;
}

.n2n-lc > * {
	pointer-events: auto;
}

.n2n-lc-launcher {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border: 1px solid var(--n2n-lc-border);
	border-radius: 999px;
	background: linear-gradient(135deg, #0f2744 0%, #0b1628 100%);
	color: var(--n2n-lc-text);
	box-shadow: var(--n2n-lc-shadow);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.n2n-lc-launcher:hover,
.n2n-lc.is-open .n2n-lc-launcher {
	transform: translateY(-2px);
	box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}

.n2n-lc.is-open .n2n-lc-launcher {
	background: linear-gradient(135deg, #16304f 0%, #0f2744 100%);
}

.n2n-lc-launcher__icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(212, 184, 74, 0.15);
	color: var(--n2n-lc-accent);
}

.n2n-lc-launcher__text {
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.02em;
}

.n2n-lc-panel {
	position: fixed;
	right: 20px;
	bottom: 88px;
	width: min(380px, calc(100vw - 32px));
	max-height: min(560px, calc(100vh - 120px));
	display: none;
	flex-direction: column;
	border-radius: var(--n2n-lc-radius);
	overflow: hidden;
	border: 1px solid var(--n2n-lc-border);
	background: var(--n2n-lc-bg);
	box-shadow: var(--n2n-lc-shadow);
	opacity: 0;
	transform: translateY(16px) scale(0.97);
	transition: opacity 0.22s ease, transform 0.22s ease;
	z-index: 999999;
}

.n2n-lc-panel.is-open {
	display: flex;
	opacity: 1;
	transform: translateY(0) scale(1);
}

.n2n-lc-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	background: linear-gradient(135deg, #122a47 0%, #0b1628 100%);
	border-bottom: 1px solid var(--n2n-lc-border);
	flex-shrink: 0;
}

.n2n-lc-panel__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.n2n-lc-panel__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.n2n-lc-panel__dot--away {
	background: #f59e0b;
	box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.n2n-lc-panel__title {
	display: block;
	font-size: 15px;
	color: var(--n2n-lc-text);
}

.n2n-lc-panel__status {
	display: block;
	font-size: 12px;
	color: var(--n2n-lc-muted);
}

.n2n-lc-panel__close {
	border: 0;
	background: transparent;
	color: var(--n2n-lc-muted);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}

.n2n-lc-panel__body {
	padding: 18px;
	overflow: auto;
	flex: 1;
	min-height: 0;
}

.n2n-lc-hours-notice {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 12px;
	line-height: 1.5;
	color: #fde68a;
	background: rgba(245, 158, 11, 0.12);
	border: 1px solid rgba(245, 158, 11, 0.25);
}

.n2n-lc-intro__text {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--n2n-lc-muted);
}

.n2n-lc-form {
	display: grid;
	gap: 12px;
}

.n2n-lc-field span {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--n2n-lc-text);
}

.n2n-lc-field em {
	color: #f87171;
	font-style: normal;
}

.n2n-lc-field input,
.n2n-lc-field textarea,
.n2n-lc-chat__composer input {
	width: 100%;
	border: 1px solid var(--n2n-lc-border);
	border-radius: 10px;
	background: var(--n2n-lc-bg-soft);
	color: var(--n2n-lc-text);
	padding: 10px 12px;
	font-size: 14px;
	box-sizing: border-box;
}

.n2n-lc-field input:focus,
.n2n-lc-field textarea:focus,
.n2n-lc-chat__composer input:focus {
	outline: none;
	border-color: rgba(212, 184, 74, 0.6);
	box-shadow: 0 0 0 3px rgba(212, 184, 74, 0.12);
}

.n2n-lc-form__error {
	margin: 0;
	font-size: 12px;
	color: #fca5a5;
}

.n2n-lc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
}

.n2n-lc-btn--primary {
	width: 100%;
	padding: 12px 16px;
	background: linear-gradient(135deg, var(--n2n-lc-accent) 0%, #b8962e 100%);
	color: #0b1628;
}

.n2n-lc-btn--primary:hover {
	background: linear-gradient(135deg, var(--n2n-lc-accent-hover) 0%, #c9a535 100%);
}

.n2n-lc-chat {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	max-height: 420px;
}

.n2n-lc-messages {
	flex: 1;
	overflow: auto;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #0a1424;
	min-height: 200px;
}

.n2n-lc-msg {
	max-width: 85%;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.5;
	word-break: break-word;
}

.n2n-lc-msg--visitor {
	align-self: flex-end;
	background: linear-gradient(135deg, #1e3a5f 0%, #16304f 100%);
	color: var(--n2n-lc-text);
	border-bottom-right-radius: 4px;
}

.n2n-lc-msg--staff {
	align-self: flex-start;
	background: rgba(212, 184, 74, 0.12);
	border: 1px solid rgba(212, 184, 74, 0.25);
	color: var(--n2n-lc-text);
	border-bottom-left-radius: 4px;
}

.n2n-lc-msg__meta {
	display: block;
	margin-top: 4px;
	font-size: 10px;
	color: var(--n2n-lc-muted);
}

.n2n-lc-chat__composer {
	display: flex;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid var(--n2n-lc-border);
	background: var(--n2n-lc-bg-soft);
	flex-shrink: 0;
}

.n2n-lc-btn--send {
	flex: 0 0 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--n2n-lc-accent);
	color: #0b1628;
}

@media (max-width: 480px) {
	.n2n-lc {
		right: 12px;
		bottom: 12px;
	}

	.n2n-lc-panel {
		right: 12px;
		bottom: 76px;
		width: calc(100vw - 24px);
	}
}
