/**
 * Niramay Admin Dashboard - frontend chat widget (Phase 10).
 *
 * Styling for `[niramay_chat]`, `[niramay_my_conversations]` and the auto-injected floating panel.
 * Every rule is scoped under `.niramay-front .nrm-chat`, so the widget can never restyle the host
 * theme. Colours come from the `--nrm-*` variables that Niramay_Design_Tokens prints for the
 * frontend; each one carries a literal fallback so the widget still looks right if the token block
 * is not present. `--nrm-chat-accent` is set inline by the renderer from Settings > Chat when an
 * accent colour is configured, and `--nrm-chat-height` when a shortcode asks for a taller panel.
 *
 * The floating widget is the only part that uses `position: fixed`; it is mounted from the footer,
 * closes on Escape, and never covers the WordPress admin bar or an open Elementor preview.
 */

.niramay-front .nrm-chat {
	/* The accent is the configured colour used for tints, borders, links and focus rings. */
	--nrm-chat-accent: var(--nrm-brand, #d17839);
	/* Fills that carry text (header, launcher, send button, outgoing bubble) use a darker shade of the
	   same hue, because the default accent with white text measures 3.25:1 — below WCAG AA. The
	   renderer overrides both the fill and the ink when an accent is configured (readable_pair()). */
	--nrm-chat-accent-strong: var(--nrm-brand-strong, #ac4d1c);
	--nrm-chat-accent-ink: var(--nrm-text-on-brand, #fff);
	--nrm-chat-height: 560px;
	font-family: inherit;
	color: var(--nrm-text, #171c26);
	line-height: 1.55;
}

.niramay-front .nrm-chat *,
.niramay-front .nrm-chat *::before,
.niramay-front .nrm-chat *::after {
	box-sizing: border-box;
}

.niramay-front .nrm-chat-icon {
	width: 18px;
	height: 18px;
	display: block;
	flex: 0 0 auto;
}

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

.niramay-front .nrm-chat-visually-dimmed {
	color: var(--nrm-text-muted, #5c6474);
	font-size: 11px;
}

/* ------------------------------------------------------------------ *
 * Shell: inline vs floating
 * ------------------------------------------------------------------ */

.niramay-front .nrm-chat-inline {
	max-width: var(--nrm-chat-max, 720px);
	margin: 0 auto;
}

.niramay-front .nrm-chat-inline .nrm-chat-panel {
	height: var(--nrm-chat-height);
}

.niramay-front .nrm-chat-floating {
	position: fixed;
	z-index: 2147483000;
	bottom: 20px;
	right: 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	font-size: var(--nrm-font-base, 14px);
}

.niramay-front .nrm-chat-floating[data-position="bottom-left"] {
	right: auto;
	left: 20px;
	align-items: flex-start;
}

.niramay-front .nrm-chat-floating[data-position="bottom-center"] {
	right: 50%;
	transform: translateX(50%);
}

/* Never collide with the WP admin bar or the Elementor editor chrome. */
body.admin-bar .niramay-front .nrm-chat-floating {
	bottom: 52px;
}

.niramay-front .nrm-chat-floating .nrm-chat-panel {
	width: min(392px, calc(100vw - 32px));
	max-height: min(76vh, calc(100vh - 140px));
}

@media screen and (max-width: 782px) {
	body.admin-bar .niramay-front .nrm-chat-floating {
		bottom: 66px;
	}
}

@media screen and (max-width: 480px) {
	.niramay-front .nrm-chat-floating {
		left: 12px;
		right: 12px;
		bottom: 12px;
		align-items: stretch;
	}
	.niramay-front .nrm-chat-floating .nrm-chat-panel {
		width: 100%;
	}
	.niramay-front .nrm-chat-launcher {
		align-self: flex-end;
	}
}

/* ------------------------------------------------------------------ *
 * Launcher
 * ------------------------------------------------------------------ */

.niramay-front .nrm-chat-launcher {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px 10px 12px;
	border: 0;
	border-radius: 999px;
	background: var(--nrm-chat-accent-strong);
	color: var(--nrm-chat-accent-ink);
	box-shadow: 0 10px 26px rgba(23, 28, 38, 0.22);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	line-height: 1;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.niramay-front .nrm-chat-launcher:hover,
.niramay-front .nrm-chat-launcher:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(23, 28, 38, 0.26);
	outline: none;
}

.niramay-front .nrm-chat-launcher:focus-visible {
	box-shadow: 0 0 0 3px rgba(23, 28, 38, 0.18), 0 14px 30px rgba(23, 28, 38, 0.26);
}

.niramay-front .nrm-chat-launcher-bubble {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
}

.niramay-front .nrm-chat-launcher-label {
	white-space: nowrap;
}

.niramay-front .nrm-chat-launcher-badge {
	position: absolute;
	top: -6px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--nrm-error, #c65a5a);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.niramay-front .nrm-chat-launcher-badge[hidden] {
	display: none;
}

/* ------------------------------------------------------------------ *
 * Panel
 * ------------------------------------------------------------------ */

.niramay-front .nrm-chat-panel {
	display: flex;
	flex-direction: column;
	background: var(--nrm-surface, #fff);
	border: 1px solid var(--nrm-border, #ebeaf1);
	border-radius: var(--nrm-radius-lg, 11px);
	box-shadow: 0 18px 48px rgba(23, 28, 38, 0.18);
	overflow: hidden;
	min-height: 320px;
}

.niramay-front .nrm-chat-panel[hidden] {
	display: none;
}

/* Header */

.niramay-front .nrm-chat-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: var(--nrm-chat-accent-strong);
	color: var(--nrm-chat-accent-ink);
	flex: 0 0 auto;
}

.niramay-front .nrm-chat-ident {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.niramay-front .nrm-chat-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	background: rgba(255, 255, 255, 0.22);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	flex: 0 0 auto;
}

.niramay-front .nrm-chat-ident-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.niramay-front .nrm-chat-title {
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.niramay-front .nrm-chat-state {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	opacity: 0.92;
}

.niramay-front .nrm-chat-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	flex: 0 0 auto;
}

.niramay-front .nrm-chat-state.is-online .nrm-chat-dot {
	background: var(--nrm-success, #2e9b72);
	box-shadow: 0 0 0 3px rgba(46, 155, 114, 0.28);
}

.niramay-front .nrm-chat-head-actions {
	display: flex;
	gap: 6px;
	align-items: center;
	margin-left: auto;
	flex: 0 0 auto;
}

/* The optional way back for a returning member. Signing in is never required to chat. */
.niramay-front .nrm-chat-signin {
	font-size: 12px;
	font-weight: 600;
	color: inherit;
	text-decoration: underline;
	white-space: nowrap;
	opacity: 0.95;
}

.niramay-front .nrm-chat-signin:hover,
.niramay-front .nrm-chat-signin:focus-visible {
	opacity: 1;
}

.niramay-front .nrm-chat-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: var(--nrm-radius, 7px);
	background: transparent;
	color: inherit;
	opacity: 0.9;
	cursor: pointer;
	font: inherit;
}

.niramay-front .nrm-chat-iconbtn:hover,
.niramay-front .nrm-chat-iconbtn:focus-visible {
	opacity: 1;
	background: rgba(255, 255, 255, 0.16);
	outline: none;
}

.niramay-front .nrm-chat-iconbtn[aria-pressed="true"] {
	background: rgba(255, 255, 255, 0.24);
	opacity: 1;
}

/* Body */

.niramay-front .nrm-chat-body {
	position: relative;
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 14px;
	background: var(--nrm-surface-2, #fbf9f6);
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.niramay-front .nrm-chat-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 auto;
}

.niramay-front .nrm-chat-msg {
	display: flex;
	max-width: 88%;
}

.niramay-front .nrm-chat-msg-out {
	margin-left: auto;
	justify-content: flex-end;
}

.niramay-front .nrm-chat-bubble {
	background: var(--nrm-surface, #fff);
	border: 1px solid var(--nrm-border, #ebeaf1);
	border-radius: var(--nrm-radius-lg, 11px);
	padding: 8px 12px;
	box-shadow: var(--nrm-shadow-sm, 0 2px 7px rgba(72, 72, 110, 0.07));
	min-width: 0;
}

.niramay-front .nrm-chat-msg-out .nrm-chat-bubble {
	background: var(--nrm-chat-accent-strong);
	border-color: var(--nrm-chat-accent-strong);
	color: var(--nrm-chat-accent-ink);
}

.niramay-front .nrm-chat-msg-wa .nrm-chat-bubble {
	border-left: 3px solid var(--nrm-success, #2e9b72);
}

.niramay-front .nrm-chat-msg-pending .nrm-chat-bubble {
	opacity: 0.72;
}

.niramay-front .nrm-chat-msg-failed .nrm-chat-bubble {
	border-color: var(--nrm-error, #c65a5a);
	background: var(--nrm-error-soft, #fbecec);
	color: var(--nrm-text, #171c26);
}

.niramay-front .nrm-chat-msg-note .nrm-chat-bubble {
	background: var(--nrm-warning-soft, #fff3e7);
	border: 1px dashed var(--nrm-warning, #d17839);
	color: var(--nrm-text, #171c26);
}

.niramay-front .nrm-chat-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 3px;
	font-size: 11px;
	opacity: 0.82;
}

.niramay-front .nrm-chat-sender {
	font-weight: 700;
}

.niramay-front .nrm-chat-text {
	font-size: 14px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.niramay-front .nrm-chat-msg-out .nrm-chat-text a {
	color: inherit;
	text-decoration: underline;
}

.niramay-front .nrm-chat-text a {
	color: var(--nrm-brand-ink, #9a4614);
}

.niramay-front .nrm-chat-receipt {
	margin: 4px 0 0;
	font-size: 11px;
	opacity: 0.82;
}

.niramay-front .nrm-chat-retry {
	background: none;
	border: 0;
	padding: 0;
	margin-left: 6px;
	color: inherit;
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.niramay-front .nrm-chat-datesep {
	align-self: center;
	font-size: 11px;
	color: var(--nrm-text-muted, #5c6474);
}

.niramay-front .nrm-chat-datesep span {
	background: var(--nrm-surface, #fff);
	border: 1px solid var(--nrm-border, #ebeaf1);
	border-radius: 999px;
	padding: 2px 10px;
}

.niramay-front .nrm-chat-chip {
	display: inline-flex;
	align-items: center;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--nrm-surface-3, #f2ebe1);
	color: var(--nrm-text-secondary, #3f4757);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.7;
	white-space: nowrap;
}

.niramay-front .nrm-chat-chip-brand {
	background: var(--nrm-brand-soft, #f2ebe1);
	color: var(--nrm-brand-ink, #9a4614);
}

.niramay-front .nrm-chat-chip-wa {
	background: var(--nrm-success-soft, #e7f6ef);
	color: var(--nrm-success-ink, #1c6f52);
}

.niramay-front .nrm-chat-empty {
	text-align: center;
	color: var(--nrm-text-muted, #5c6474);
	font-size: 13px;
	padding: 24px 8px;
	list-style: none;
}

.niramay-front .nrm-chat-older {
	text-align: center;
	margin-bottom: 10px;
	flex: 0 0 auto;
}

.niramay-front .nrm-chat-typing {
	margin: 8px 0 0;
	font-size: 12px;
	font-style: italic;
	color: var(--nrm-text-muted, #5c6474);
	flex: 0 0 auto;
}

.niramay-front .nrm-chat-typing[hidden] {
	display: none;
}

/* Attachments */

.niramay-front .nrm-chat-files {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 6px;
}

.niramay-front .nrm-chat-file {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	border: 1px solid var(--nrm-border, #ebeaf1);
	border-radius: var(--nrm-radius, 7px);
	background: var(--nrm-surface, #fff);
	color: var(--nrm-text-secondary, #3f4757);
	font-size: 12px;
	text-decoration: none;
	max-width: 100%;
}

.niramay-front .nrm-chat-file-image {
	padding: 0;
	border: 0;
	background: none;
}

.niramay-front .nrm-chat-file-image img {
	max-width: 200px;
	max-height: 170px;
	border-radius: var(--nrm-radius, 7px);
	border: 1px solid var(--nrm-border, #ebeaf1);
	display: block;
}

/* ------------------------------------------------------------------ *
 * My conversations drawer
 * ------------------------------------------------------------------ */

.niramay-front .nrm-chat-history {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: var(--nrm-surface, #fff);
	padding: 14px;
	overflow-y: auto;
}

.niramay-front .nrm-chat-history[hidden] {
	display: none;
}

.niramay-front .nrm-chat-history-title {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--nrm-text-muted, #5c6474);
}

.niramay-front .nrm-chat-history-empty {
	margin: 0;
	color: var(--nrm-text-muted, #5c6474);
	font-size: 13px;
}

.niramay-front .nrm-chat-history-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.niramay-front .nrm-chat-history-item {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--nrm-border, #ebeaf1);
	border-radius: var(--nrm-radius, 7px);
	padding: 8px 10px;
}

.niramay-front .nrm-chat-history-link {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
	background: none;
	border: 0;
	padding: 0;
	text-align: left;
	font: inherit;
	color: inherit;
	cursor: pointer;
	min-width: 0;
}

.niramay-front .nrm-chat-history-preview {
	font-size: 13px;
	color: var(--nrm-text, #171c26);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.niramay-front .nrm-chat-history-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	font-size: 11px;
	color: var(--nrm-text-muted, #5c6474);
}

.niramay-front .nrm-chat-history-open {
	font-size: 11px;
	color: var(--nrm-brand-ink, #9a4614);
	text-decoration: none;
	white-space: nowrap;
}

/* ------------------------------------------------------------------ *
 * Guest intake (name, email; mobile optional) — shown instead of the composer
 * ------------------------------------------------------------------ */

/* `hidden` must win over the layout display of these two forms: the composer carries `display`
   rules, which would otherwise override the attribute and reveal a locked composer. */
.niramay-front .nrm-chat-intake[hidden],
.niramay-front .nrm-chat-composer[hidden] {
	display: none !important;
}

.niramay-front .nrm-chat-intake {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 12px 14px;
	border-top: 1px solid var(--nrm-divider, #f0eef5);
	background: var(--nrm-surface-2, #fbf8f3);
}

.niramay-front .nrm-chat-intake-title {
	margin: 0;
	font-family: var(--nrm-font-display, var(--nrm-font-sans, inherit));
	font-size: 14px;
	font-weight: 700;
	color: var(--nrm-text, #171c26);
}

.niramay-front .nrm-chat-intake-note {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--nrm-text-muted, #5c6474);
}

.niramay-front .nrm-chat-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.niramay-front .nrm-chat-field-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--nrm-text-secondary, #3f4757);
}

.niramay-front .nrm-chat-field-input {
	width: 100%;
	min-height: 40px;
	padding: 8px 11px;
	border: 1px solid var(--nrm-border-strong, #dddbe7);
	border-radius: var(--nrm-radius, 7px);
	background: var(--nrm-surface, #fff);
	color: var(--nrm-text, #171c26);
	font: inherit;
	font-size: 14px;
	line-height: 1.5;
}

.niramay-front .nrm-chat-field-input:focus {
	outline: none;
	border-color: var(--nrm-chat-accent);
	box-shadow: 0 0 0 3px rgba(209, 120, 57, 0.22);
}

.niramay-front .nrm-chat-field.is-invalid .nrm-chat-field-input {
	border-color: var(--nrm-error-ink, #a43636);
}

.niramay-front .nrm-chat-field-error {
	margin: 0;
	font-size: 11px;
	color: var(--nrm-error-ink, #a43636);
}

.niramay-front .nrm-chat-field-error[hidden] {
	display: none;
}

.niramay-front .nrm-chat-intake-error.is-success {
	color: var(--nrm-success-ink, #1c6f52);
}

.niramay-front .nrm-chat-intake-submit {
	align-self: flex-start;
	min-height: 38px;
}

.niramay-front .nrm-chat-intake-submit[disabled] {
	opacity: 0.7;
}

.niramay-front .nrm-chat-intake-signin {
	margin: 0;
	font-size: 12px;
	color: var(--nrm-text-muted, #5c6474);
}

.niramay-front .nrm-chat-intake-signin a {
	color: var(--nrm-chat-accent, #d17839);
	font-weight: 600;
	text-decoration: underline;
}

/* ------------------------------------------------------------------ *
 * Composer
 * ------------------------------------------------------------------ */

.niramay-front .nrm-chat-composer {
	flex: 0 0 auto;
	padding: 10px 12px 12px;
	border-top: 1px solid var(--nrm-divider, #f0eef5);
	background: var(--nrm-surface, #fff);
}

.niramay-front .nrm-chat-input {
	width: 100%;
	min-height: 46px;
	max-height: 140px;
	resize: vertical;
	padding: 9px 11px;
	border: 1px solid var(--nrm-border-strong, #dddbe7);
	border-radius: var(--nrm-radius, 7px);
	background: var(--nrm-surface, #fff);
	color: var(--nrm-text, #171c26);
	font: inherit;
	font-size: 14px;
	line-height: 1.5;
}

.niramay-front .nrm-chat-input:focus {
	outline: none;
	border-color: var(--nrm-chat-accent);
	box-shadow: 0 0 0 3px rgba(209, 120, 57, 0.22);
}

.niramay-front .nrm-chat-input:disabled {
	background: var(--nrm-surface-3, #f2ebe1);
	color: var(--nrm-text-muted, #5c6474);
}

.niramay-front .nrm-chat-composer-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	flex-wrap: wrap;
}

.niramay-front .nrm-chat-composer-row .nrm-chat-iconbtn {
	width: 34px;
	height: 34px;
	border-color: var(--nrm-border-strong, #dddbe7);
	color: var(--nrm-text-secondary, #3f4757);
	opacity: 1;
}

.niramay-front .nrm-chat-composer-row .nrm-chat-iconbtn:hover {
	border-color: var(--nrm-chat-accent);
	color: var(--nrm-chat-accent);
	background: transparent;
}

.niramay-front .nrm-chat-attach {
	position: relative;
}

.niramay-front .nrm-chat-attach input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.niramay-front .nrm-chat-attach:focus-within {
	border-color: var(--nrm-chat-accent);
	box-shadow: 0 0 0 3px rgba(209, 120, 57, 0.22);
}

.niramay-front .nrm-chat-hint {
	font-size: 11px;
	color: var(--nrm-text-muted, #5c6474);
}

.niramay-front .nrm-chat-send {
	margin-left: auto;
	padding: 8px 18px;
	border: 0;
	border-radius: var(--nrm-radius, 7px);
	background: var(--nrm-chat-accent-strong);
	color: var(--nrm-chat-accent-ink);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.niramay-front .nrm-chat-send:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.niramay-front .nrm-chat-progress,
.niramay-front .nrm-chat-error {
	margin: 6px 0 0;
	font-size: 12px;
}

.niramay-front .nrm-chat-progress {
	color: var(--nrm-info-ink, #3a55b5);
}

.niramay-front .nrm-chat-error {
	color: var(--nrm-error-ink, #a43636);
}

.niramay-front .nrm-chat-progress[hidden],
.niramay-front .nrm-chat-error[hidden] {
	display: none;
}

.niramay-front .nrm-chat-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

.niramay-front .nrm-chat-chips:empty {
	display: none;
}

.niramay-front .nrm-chat-file-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--nrm-surface-3, #f2ebe1);
	font-size: 11px;
	color: var(--nrm-text-secondary, #3f4757);
}

/* WhatsApp handoff + consent */

.niramay-front .nrm-chat-wa {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed var(--nrm-divider, #f0eef5);
	font-size: 12px;
}

.niramay-front .nrm-chat-wa-consent {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--nrm-text-secondary, #3f4757);
	cursor: pointer;
}

.niramay-front .nrm-chat-wa-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--nrm-success-ink, #1c6f52);
	font-weight: 600;
	text-decoration: none;
}

.niramay-front .nrm-chat-wa-link:hover {
	text-decoration: underline;
}

.niramay-front .nrm-chat-foot {
	margin-top: 8px;
	text-align: right;
}

.niramay-front .nrm-chat-linkbtn {
	background: none;
	border: 0;
	padding: 0;
	color: var(--nrm-text-muted, #5c6474);
	font: inherit;
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
}

.niramay-front .nrm-chat-linkbtn:hover,
.niramay-front .nrm-chat-linkbtn:focus-visible {
	color: var(--nrm-chat-accent);
}

.niramay-front .nrm-chat-wa-note {
	margin: 10px 0 0;
	padding-top: 10px;
	border-top: 1px dashed var(--nrm-divider, #f0eef5);
	font-size: 12px;
	color: var(--nrm-text-muted, #5c6474);
}

/* Notice boxes (chat disabled, sign-in required). */

.niramay-front .nrm-front-notice {
	max-width: 560px;
	margin: 24px auto;
	padding: var(--nrm-space-6, 24px);
	border: 1px solid var(--nrm-border, #ebeaf1);
	border-radius: var(--nrm-radius-lg, 11px);
	background: var(--nrm-surface, #fff);
	box-shadow: var(--nrm-shadow-sm, 0 2px 7px rgba(72, 72, 110, 0.07));
}

.niramay-front .nrm-front-notice-title {
	margin: 0 0 6px;
	font-size: var(--nrm-font-lg, 18px);
}

.niramay-front .nrm-front-btn {
	display: inline-block;
	padding: 9px 16px;
	border-radius: var(--nrm-radius, 7px);
	background: var(--nrm-brand, #d17839);
	color: var(--nrm-text-on-brand, #fff);
	text-decoration: none;
	font-weight: 600;
}

.niramay-front .nrm-chat-history-link:focus-visible,
.niramay-front .nrm-chat-file:focus-visible,
.niramay-front .nrm-chat-history-open:focus-visible,
.niramay-front .nrm-chat-wa-link:focus-visible {
	outline: 2px solid var(--nrm-chat-accent);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ *
 * Print: never print a chat widget over a receipt or an invoice.
 * ------------------------------------------------------------------ */

@media print {
	.niramay-front .nrm-chat-floating {
		display: none !important;
	}
}
