.nd-callback-request {
	display: inline-flex;
}

.nd-callback-request--floating {
	bottom: 18px;
	position: fixed;
	right: 18px;
	z-index: 9998;
}

.nd-callback-request--floating .nd-callback-request {
	display: inline-flex;
}

.nd-callback-request__trigger {
	--nd-callback-button-bg: #0f172a;
	--nd-callback-button-bg-hover: #111f3a;
	--nd-callback-button-text: #f8fafc;
	--nd-callback-button-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
	align-items: center;
	background: var(--nd-callback-button-bg);
	border: 0;
	border-radius: 999px;
	box-shadow: var(--nd-callback-button-shadow);
	color: var(--nd-callback-button-text);
	cursor: pointer;
	display: inline-flex;
	gap: 10px;
	line-height: 1;
	min-height: 46px;
	padding: 0 18px;
	text-decoration: none;
	transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.nd-callback-request__trigger--mobile-chat {
	display: none;
}

.nd-callback-request__trigger--mobile-chat {
	align-items: center;
	justify-content: center;
}

.nd-callback-request__trigger:hover,
.nd-callback-request__trigger:focus-visible {
	background: var(--nd-callback-button-bg-hover);
	color: var(--nd-callback-button-text);
	transform: translateY(-1px);
}

.nd-callback-request__trigger:focus-visible {
	outline: 2px solid #7dd3fc;
	outline-offset: 2px;
}

.nd-callback-request__trigger-icon {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	height: 18px;
	justify-content: center;
	width: 18px;
}

.nd-callback-request__trigger-icon svg {
	display: block;
	height: 18px;
	width: 18px;
}

.nd-callback-request__trigger-icon--chat-image {
	display: block;
	height: 100%;
	width: 100%;
}

.nd-callback-request__trigger-icon--chat-image img,
.nd-callback-request__trigger-icon--chat-image svg {
	display: block;
	height: 100%;
	width: 100%;
}

.nd-callback-request__trigger-label {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.nd-callback-request__modal[hidden] {
	display: none;
}

.nd-callback-request__modal {
	inset: 0;
	position: fixed;
	z-index: 99999;
}

.nd-callback-request__backdrop {
	background: rgba(2, 6, 23, 0.62);
	inset: 0;
	position: absolute;
}

.nd-callback-request__dialog {
	background: #ffffff;
	border-radius: 22px;
	box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
	color: #0f172a;
	left: 50%;
	max-height: calc(100vh - 32px);
	max-width: 520px;
	overflow-y: auto;
	padding: 28px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100vw - 32px);
}

.nd-callback-request__close {
	align-items: center;
	appearance: none;
	background: rgba(148, 163, 184, 0.14);
	border: 0;
	border-radius: 999px;
	color: #0f172a;
	cursor: pointer;
	display: inline-flex;
	font-size: 26px;
	height: 36px;
	justify-content: center;
	position: absolute;
	right: 18px;
	top: 18px;
	width: 36px;
}

.nd-callback-request__header {
	margin-bottom: 22px;
	padding-right: 42px;
}

.nd-callback-request__header h3 {
	color: #0f172a;
	font-size: 28px;
	line-height: 1.05;
	margin: 0 0 8px;
}

.nd-callback-request__header p {
	color: #475569;
	margin: 0;
}

.nd-callback-request__form {
	display: grid;
	gap: 14px;
}

.nd-callback-request__field {
	display: grid;
	gap: 7px;
}

.nd-callback-request__field span,
.nd-callback-request__consent span {
	font-size: 13px;
	font-weight: 600;
}

.nd-callback-request__field input,
.nd-callback-request__field textarea {
	background: #f8fafc;
	border: 1px solid rgba(148, 163, 184, 0.34);
	border-radius: 14px;
	box-shadow: none;
	color: #0f172a;
	padding: 14px 16px;
	width: 100%;
}

.nd-callback-request__field input:focus,
.nd-callback-request__field textarea:focus {
	border-color: #38bdf8;
	outline: 2px solid rgba(56, 189, 248, 0.18);
}

.nd-callback-request__field textarea {
	min-height: 110px;
	resize: vertical;
}

.nd-callback-request__consent {
	align-items: flex-start;
	display: grid;
	gap: 10px;
	grid-template-columns: 18px 1fr;
}

.nd-callback-request__consent input {
	margin: 2px 0 0;
}

.nd-callback-request__actions {
	padding-top: 4px;
}

.nd-callback-request__submit {
	background: #22c55e;
	border: 0;
	border-radius: 14px;
	color: #052e16;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	min-height: 48px;
	padding: 0 18px;
	transition: transform 0.18s ease, background-color 0.18s ease;
	width: 100%;
}

.nd-callback-request__submit:hover,
.nd-callback-request__submit:focus-visible {
	background: #16a34a;
	color: #f0fdf4;
	transform: translateY(-1px);
}

.nd-callback-request__submit:disabled {
	cursor: wait;
	opacity: 0.72;
	transform: none;
}

.nd-callback-request__message {
	font-size: 14px;
	min-height: 20px;
}

.nd-callback-request__message[data-state="success"] {
	color: #15803d;
}

.nd-callback-request__message[data-state="error"] {
	color: #b91c1c;
}

.nd-callback-request__trap {
	left: -9999px;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	top: auto;
}

html[data-theme="dark"] .nd-callback-request__dialog {
	background: #0f172a;
	box-shadow: 0 24px 80px rgba(2, 6, 23, 0.56);
	color: #e2e8f0;
}

html[data-theme="dark"] .nd-callback-request__close {
	background: rgba(148, 163, 184, 0.16);
	color: #e2e8f0;
}

html[data-theme="dark"] .nd-callback-request__header h3 {
	color: #f8fafc;
}

html[data-theme="dark"] .nd-callback-request__header p {
	color: #cbd5e1;
}

html[data-theme="dark"] .nd-callback-request__field input,
html[data-theme="dark"] .nd-callback-request__field textarea {
	background: rgba(15, 23, 42, 0.92);
	border-color: rgba(148, 163, 184, 0.24);
	color: #f8fafc;
}

html[data-theme="dark"] .nd-callback-request__field input::placeholder,
html[data-theme="dark"] .nd-callback-request__field textarea::placeholder {
	color: rgba(203, 213, 225, 0.6);
}

html[data-theme="dark"] .nd-callback-request__submit {
	color: #052e16;
}

@media (max-width: 767px) {
	.nd-callback-request--floating {
		bottom: 12px;
		right: 12px;
	}

	.nd-callback-request__trigger--desktop {
		display: none;
	}

	.nd-callback-request__trigger--mobile-chat {
		background-color: transparent;
		border-radius: 18px;
		box-shadow: 0 18px 32px rgba(15, 23, 42, 0.26);
		display: inline-flex;
		height: 56px;
		min-height: 56px;
		overflow: hidden;
		padding: 0;
		width: 56px;
	}

	.nd-callback-request__trigger--mobile-chat .nd-callback-request__trigger-icon--chat-image {
		border-radius: 18px;
		overflow: hidden;
	}

	.nd-callback-request__trigger--mobile-chat:hover,
	.nd-callback-request__trigger--mobile-chat:focus-visible {
		background-color: transparent;
		box-shadow: 0 20px 38px rgba(15, 23, 42, 0.3);
	}

	.nd-callback-request__trigger--mobile-chat.is-disabled {
		cursor: default;
		opacity: 0.55;
	}

	.nd-callback-request__dialog {
		border-radius: 18px;
		max-height: calc(100vh - 20px);
		padding: 22px 18px 18px;
		top: auto;
		bottom: 16px;
		transform: translateX(-50%);
		width: calc(100vw - 20px);
	}

	.nd-callback-request__header h3 {
		font-size: 24px;
	}
}
