body.chatnow-open {
	overflow: hidden;
}

#chatnow-root {
	position: relative;
	z-index: 999999;
}

.chatnow-popup {
	--chatnow-accent: #e65525;
	--chatnow-accent-strong: #c9471d;
	--chatnow-accent-soft: rgba(230, 85, 37, 0.08);
	--chatnow-accent-soft-2: rgba(230, 85, 37, 0.14);
	--chatnow-text: #18151a;
	--chatnow-muted: #6e6461;
	--chatnow-border: rgba(230, 85, 37, 0.12);
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.chatnow-popup__overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at top right, rgba(230, 85, 37, 0.14), transparent 30%),
		rgba(18, 14, 16, 0.42);
	backdrop-filter: blur(4px);
}

.chatnow-popup__panel {
	position: relative;
	width: min(100%, 460px);
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	padding: 22px;
	border-radius: 24px;
	background: linear-gradient(180deg, #fffdfc 0%, #fff8f5 100%);
	border: 1px solid var(--chatnow-border);
	box-shadow: 0 28px 70px rgba(20, 14, 15, 0.18);
	box-sizing: border-box;
	overflow-y: auto;
}

.chatnow-popup--meeting .chatnow-popup__panel {
	width: min(100%, 860px);
}

.chatnow-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 999px;
	background: rgba(24, 21, 26, 0.06);
	color: var(--chatnow-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.chatnow-popup__eyebrow {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 12px;
	margin-bottom: 10px;
	border-radius: 999px;
	background: var(--chatnow-accent-soft);
	color: var(--chatnow-accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.chatnow-popup__media {
	display: flex;
	justify-content: flex-start;
	margin-bottom: 10px;
}

.chatnow-popup__image {
	display: block;
	max-width: 156px;
	max-height: 56px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.chatnow-popup__header {
	display: block;
}

.chatnow-popup__header--with-aside {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.chatnow-popup__header-aside {
	display: flex;
	flex: 0 0 auto;
	margin-top: 4px;
}

.chatnow-popup__title {
	margin: 0 0 8px;
	font-size: clamp(28px, 3vw, 42px);
	line-height: 0.98;
	letter-spacing: -0.03em;
	color: var(--chatnow-text);
}

.chatnow-popup__description {
	margin: 0 0 18px;
	max-width: 60ch;
	color: var(--chatnow-muted);
	font-size: 14px;
	line-height: 1.55;
}

.chatnow-popup__form {
	display: grid;
	gap: 12px;
}

.chatnow-popup__field {
	display: grid;
	gap: 6px;
}

.chatnow-popup__label {
	font-size: 12px;
	font-weight: 800;
	color: var(--chatnow-text);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.chatnow-popup__required {
	margin-left: 4px;
	color: var(--chatnow-accent);
}

.chatnow-popup__input {
	width: 100%;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid rgba(24, 21, 26, 0.08);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.84);
	font-size: 14px;
	color: var(--chatnow-text);
	box-sizing: border-box;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.chatnow-popup__input:focus {
	outline: 0;
	border-color: rgba(230, 85, 37, 0.42);
	box-shadow: 0 0 0 4px rgba(230, 85, 37, 0.09);
	background: #ffffff;
}

.chatnow-popup__select {
	appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--chatnow-text) 50%),
		linear-gradient(135deg, var(--chatnow-text) 50%, transparent 50%);
	background-position:
		calc(100% - 18px) calc(50% - 2px),
		calc(100% - 12px) calc(50% - 2px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 34px;
}

.chatnow-popup__error {
	font-size: 12px;
	color: var(--chatnow-accent-strong);
}

.chatnow-popup__submit,
.chatnow-popup__ghost,
.chatnow-popup__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.chatnow-popup__submit {
	border: 0;
	background: var(--chatnow-accent);
	color: #ffffff;
	box-shadow: 0 12px 24px rgba(230, 85, 37, 0.18);
	cursor: pointer;
}

.chatnow-popup__submit-content {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.chatnow-popup__submit:hover:not(:disabled),
.chatnow-popup__ghost:hover,
.chatnow-popup__link:hover {
	transform: translateY(-1px);
}

.chatnow-popup__submit:disabled {
	opacity: 0.42;
	cursor: not-allowed;
	box-shadow: none;
}

.chatnow-popup__ghost {
	border: 1px solid rgba(24, 21, 26, 0.09);
	background: rgba(255, 255, 255, 0.7);
	color: var(--chatnow-text);
	cursor: pointer;
}

.chatnow-popup__link {
	background: var(--chatnow-accent-soft);
	color: var(--chatnow-accent-strong);
}

.chatnow-meeting {
	display: grid;
	gap: 16px;
}

.chatnow-meeting__steps {
	display: flex;
}

.chatnow-meeting__steps-track {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: rgba(230, 85, 37, 0.08);
}

.chatnow-meeting__step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	color: var(--chatnow-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.chatnow-meeting__step.is-active {
	background: var(--chatnow-accent);
	color: #ffffff;
}

.chatnow-meeting__section {
	display: grid;
	gap: 14px;
}

.chatnow-meeting__section--form {
	max-width: 640px;
}

.chatnow-meeting__intro {
	display: grid;
	gap: 4px;
}

.chatnow-meeting__heading {
	margin: 0;
	font-size: 19px;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--chatnow-text);
}

.chatnow-meeting__copy {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--chatnow-muted);
}

.chatnow-meeting__form {
	gap: 14px;
}

.chatnow-meeting__fields-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.chatnow-meeting__fields-grid .chatnow-popup__field:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.chatnow-meeting__agents {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.chatnow-agent-card {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 12px;
	align-items: center;
	padding: 12px;
	border: 1px solid rgba(230, 85, 37, 0.12);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.82);
	text-align: left;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.chatnow-agent-card:hover {
	transform: translateY(-1px);
	border-color: rgba(230, 85, 37, 0.26);
	box-shadow: 0 12px 24px rgba(230, 85, 37, 0.08);
}

.chatnow-agent-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
}

.chatnow-agent-card__image,
.chatnow-agent-card__placeholder {
	width: 56px;
	height: 56px;
	border-radius: 999px;
	object-fit: cover;
}

.chatnow-agent-card__placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(230, 85, 37, 0.12);
	color: var(--chatnow-accent);
	font-size: 20px;
	font-weight: 800;
}

.chatnow-agent-card__body {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.chatnow-agent-card__name {
	font-size: 14px;
	line-height: 1.25;
	color: var(--chatnow-text);
}

.chatnow-agent-card__role {
	font-size: 12px;
	font-weight: 700;
	color: var(--chatnow-accent);
}

.chatnow-agent-card__desc {
	font-size: 12px;
	line-height: 1.45;
	color: var(--chatnow-muted);
}

.chatnow-meeting__summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	padding: 12px 14px;
	border-radius: 18px;
	background: rgba(230, 85, 37, 0.05);
	border: 1px solid rgba(230, 85, 37, 0.08);
}

.chatnow-meeting__summary span {
	display: block;
	margin-bottom: 3px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--chatnow-muted);
}

.chatnow-meeting__summary strong {
	font-size: 13px;
	line-height: 1.35;
	color: var(--chatnow-text);
}

.chatnow-meeting__calendar {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
	gap: 16px;
	align-items: start;
}

.chatnow-month {
	display: grid;
	gap: 8px;
	padding: 10px 12px 12px;
	border: 1px solid rgba(230, 85, 37, 0.08);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.82);
}

.chatnow-month__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.chatnow-month__title {
	padding: 0 2px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--chatnow-accent);
}

.chatnow-month__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(230, 85, 37, 0.08);
	color: var(--chatnow-accent);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.chatnow-month__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 6px;
}

.chatnow-date-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	width: 100%;
	min-height: 34px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 999px;
	background: rgba(230, 85, 37, 0.07);
	color: var(--chatnow-text);
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.chatnow-date-pill:hover {
	transform: translateY(-1px);
	background: rgba(230, 85, 37, 0.14);
}

.chatnow-date-pill.is-active {
	background: var(--chatnow-accent);
	color: #ffffff;
	box-shadow: 0 10px 22px rgba(230, 85, 37, 0.18);
}

.chatnow-date-pill--muted,
.chatnow-date-pill--empty {
	cursor: default;
}

.chatnow-date-pill--muted {
	background: rgba(24, 21, 26, 0.03);
	color: rgba(24, 21, 26, 0.22);
}

.chatnow-date-pill--empty {
	background: transparent;
}

.chatnow-date-pill__day {
	font-size: 12px;
	font-weight: 800;
}

.chatnow-meeting__slots-panel {
	display: grid;
	gap: 10px;
	padding: 14px;
	border: 1px solid rgba(230, 85, 37, 0.08);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.82);
}

.chatnow-meeting__slots-title {
	margin: 0;
	font-size: 15px;
	line-height: 1.25;
	color: var(--chatnow-text);
}

.chatnow-meeting__slots {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.chatnow-slot-pill {
	min-height: 38px;
	padding: 0 12px;
	border: 1px solid rgba(230, 85, 37, 0.12);
	border-radius: 14px;
	background: rgba(230, 85, 37, 0.06);
	color: var(--chatnow-text);
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.chatnow-slot-pill:hover {
	transform: translateY(-1px);
	background: rgba(230, 85, 37, 0.1);
}

.chatnow-slot-pill.is-active {
	background: var(--chatnow-accent);
	color: #ffffff;
}

.chatnow-meeting__inline-error {
	margin-top: -2px;
}

.chatnow-meeting__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.chatnow-meeting__actions--final {
	align-items: center;
}

.chatnow-meeting__actions--final .chatnow-popup__submit {
	margin-left: auto;
}

.chatnow-meeting__loading,
.chatnow-meeting__empty,
.chatnow-meeting__success {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: 24px 16px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(230, 85, 37, 0.08);
	text-align: center;
}

.chatnow-loader {
	width: 34px;
	height: 34px;
	border: 3px solid rgba(230, 85, 37, 0.14);
	border-top-color: var(--chatnow-accent);
	border-radius: 999px;
	animation: chatnow-spin 0.8s linear infinite;
}

.chatnow-loader--inline {
	width: 14px;
	height: 14px;
	border-width: 2px;
	border-color: rgba(255, 255, 255, 0.32);
	border-top-color: #ffffff;
}

.chatnow-meeting__success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 999px;
	background: rgba(230, 85, 37, 0.12);
	color: var(--chatnow-accent);
	font-size: 24px;
	font-weight: 800;
}

.chatnow-meeting__success-title {
	margin: 0;
	font-size: 22px;
	line-height: 1.08;
	color: var(--chatnow-text);
}

.chatnow-meeting__success-text {
	margin: 0;
	max-width: 44ch;
	font-size: 13px;
	line-height: 1.55;
	color: var(--chatnow-muted);
}

@keyframes chatnow-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 900px) {
	.chatnow-meeting__summary,
	.chatnow-meeting__calendar {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.chatnow-popup {
		padding: 12px;
	}

	.chatnow-popup__panel {
		width: 100%;
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		padding: 18px 14px;
		border-radius: 20px;
	}

	.chatnow-popup__header--with-aside {
		display: grid;
		gap: 10px;
	}

	.chatnow-meeting__fields-grid,
	.chatnow-meeting__summary,
	.chatnow-meeting__slots {
		grid-template-columns: 1fr;
	}

	.chatnow-meeting__agents {
		grid-template-columns: 1fr;
	}

	.chatnow-month__grid {
		gap: 5px;
	}

	.chatnow-date-pill {
		min-height: 32px;
	}
}
