/**
 * NTM Advisor Call-back — floating button, panel and the "Advisor button" widget.
 * Everything is scoped under .ntm-ac / .ntm-ac-btn; colors, fonts and position come
 * from CSS variables set in NTM Addons → Advisor call-back.
 */
.ntm-ac {
	--ntm-ac-accent: #6EB8BB;
	--ntm-ac-accent-dark: color-mix(in srgb, var(--ntm-ac-accent) 86%, #000);
	--ntm-ac-navy: #00355E;
	--ntm-ac-head-end: #274C5B;
	--ntm-ac-text: #4A4A44;
	--ntm-ac-off: #9FBCC5;
	--ntm-ac-radius: 18px;
	--ntm-ac-x: 20px;
	--ntm-ac-y: 20px;
	--ntm-ac-z: 9990;
	--ntm-ac-font: "Source Serif 4", "Source Serif Pro", Georgia, serif;
	--ntm-ac-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	position: fixed;
	right: var(--ntm-ac-x);
	bottom: var(--ntm-ac-y);
	z-index: var(--ntm-ac-z);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	font-family: var(--ntm-ac-ui);
	-webkit-font-smoothing: antialiased;
}
.ntm-ac--left { right: auto; left: var(--ntm-ac-x); align-items: flex-start; }
.ntm-ac *, .ntm-ac *::before, .ntm-ac *::after { box-sizing: border-box; }
.ntm-ac [hidden] { display: none !important; }
.ntm-ac p { margin: 0; padding: 0; }
.ntm-ac .ntm-ac__icon { display: block; width: 16px; height: 16px; flex: 0 0 auto; }
.ntm-ac .ntm-ac__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* ---------- Floating button (teal) → "× Close" (navy) while open ---------- */
.ntm-ac .ntm-ac__launcher {
	display: inline-flex;
	align-items: center;
	height: var(--ntm-ac-l-h, 56px);
	margin: 0;
	padding: 0 25px;
	border: 0;
	border-radius: 999px;
	background: var(--ntm-ac-l-bg, var(--ntm-ac-accent));
	color: var(--ntm-ac-l-color, #FFFFFF);
	font-family: var(--ntm-ac-ui);
	font-size: var(--ntm-ac-l-fs, 14.5px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.2px;
	text-transform: none;
	box-shadow: 0 14px 30px -10px rgba(0, 53, 94, 0.45);
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.ntm-ac .ntm-ac__launcher:hover { background: var(--ntm-ac-l-hover, var(--ntm-ac-accent-dark)); color: var(--ntm-ac-l-color, #FFFFFF); }
.ntm-ac .ntm-ac__launcher:focus-visible { outline: 2px solid var(--ntm-ac-navy); outline-offset: 3px; }
.ntm-ac .ntm-ac__open,
.ntm-ac .ntm-ac__close { display: inline-flex; align-items: center; gap: 10px; }
.ntm-ac .ntm-ac__close { display: none; }
.ntm-ac.is-open .ntm-ac__launcher { background: var(--ntm-ac-navy); padding: 0 24px 0 22px; }
.ntm-ac.is-open .ntm-ac__launcher:hover { background: var(--ntm-ac-navy); opacity: .92; }
.ntm-ac.is-open .ntm-ac__open { display: none; }
.ntm-ac.is-open .ntm-ac__close { display: inline-flex; }
.ntm-ac--no-launcher:not(.is-open) .ntm-ac__launcher { display: none; }

/* ---------- Panel ---------- */
.ntm-ac .ntm-ac__panel {
	width: var(--ntm-ac-p-w, 338px);
	max-width: calc(100vw - 2 * var(--ntm-ac-x));
	max-height: calc(100vh - var(--ntm-ac-y) - 90px);
	max-height: calc(100dvh - var(--ntm-ac-y) - 90px);
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: var(--ntm-ac-radius);
	background: var(--ntm-ac-p-bg, #FFFFFF);
	box-shadow: 0 28px 60px -22px rgba(0, 30, 60, 0.42), 0 2px 10px rgba(0, 30, 60, 0.08);
	animation: ntm-ac-in .22s cubic-bezier(.22, 1, .36, 1);
}
@keyframes ntm-ac-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ntm-ac .ntm-ac__panel { animation: none; } }

.ntm-ac .ntm-ac__head {
	padding: 18px 22px 18px;
	background: linear-gradient(115deg, var(--ntm-ac-navy) 0%, var(--ntm-ac-head-end) 100%);
}
.ntm-ac .ntm-ac__eyebrow {
	font-family: var(--ntm-ac-ui);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--ntm-ac-eyebrow, #B6D9DC);
}
.ntm-ac .ntm-ac__title {
	margin-top: 11px;
	font-family: var(--ntm-ac-font);
	font-size: var(--ntm-ac-title-fs, 19px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.2px;
	color: var(--ntm-ac-title-color, #FFFFFF);
}

.ntm-ac .ntm-ac__body { padding: 22px 22px 22px; }
.ntm-ac .ntm-ac__intro {
	font-family: var(--ntm-ac-font);
	font-size: var(--ntm-ac-intro-fs, 15px);
	line-height: 1.67;
	color: var(--ntm-ac-text);
}
.ntm-ac .ntm-ac__call,
.ntm-ac .ntm-ac__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: var(--ntm-ac-b-h, 52px);
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: var(--ntm-ac-b-radius, 999px);
	background: var(--ntm-ac-accent);
	color: var(--ntm-ac-b-color, #FFFFFF);
	font-family: var(--ntm-ac-ui);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.2px;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .2s ease;
}
.ntm-ac .ntm-ac__call { margin-top: 16px; }
.ntm-ac .ntm-ac__call:hover,
.ntm-ac .ntm-ac__call:focus-visible,
.ntm-ac .ntm-ac__submit:not([disabled]):hover,
.ntm-ac .ntm-ac__submit:not([disabled]):focus-visible { background: var(--ntm-ac-accent-dark); color: var(--ntm-ac-b-color, #FFFFFF); }
.ntm-ac .ntm-ac__call:focus-visible,
.ntm-ac .ntm-ac__submit:focus-visible,
.ntm-ac .ntm-ac__input:focus-visible { outline: 2px solid var(--ntm-ac-navy); outline-offset: 2px; }

.ntm-ac .ntm-ac__or {
	margin: 15px 0 16px;
	font-family: var(--ntm-ac-ui);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 1.8px;
	text-align: center;
	text-transform: uppercase;
	color: #8A8A84;
}
.ntm-ac .ntm-ac__form { position: relative; margin: 0; }
.ntm-ac .ntm-ac__input {
	display: block;
	width: 100%;
	height: var(--ntm-ac-b-h, 52px);
	margin: 0;
	padding: 0 17px;
	border: 1px solid var(--ntm-ac-i-border, #C9D6DA);
	border-radius: var(--ntm-ac-i-radius, 14px);
	background: #FFFFFF;
	color: #2B2B2B;
	font-family: var(--ntm-ac-ui);
	font-size: 16px; /* 16px: phones don't zoom in on focus */
	font-weight: 400;
	line-height: 1.2;
	box-shadow: none;
}
.ntm-ac .ntm-ac__input::placeholder { color: #8B8B8B; opacity: 1; }
.ntm-ac .ntm-ac__input:focus { border-color: var(--ntm-ac-accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ntm-ac-accent) 25%, transparent); }
.ntm-ac .ntm-ac__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ntm-ac .ntm-ac__submit { margin-top: 10px; }
.ntm-ac .ntm-ac__submit[disabled] { background: var(--ntm-ac-off); cursor: default; }
.ntm-ac .ntm-ac__submit.is-busy { opacity: .7; cursor: progress; }
.ntm-ac .ntm-ac__msg { margin-top: 10px; font-family: var(--ntm-ac-ui); font-size: 13px; line-height: 1.4; color: #B3261E; text-align: center; }

/* ---------- Thank-you ---------- */
.ntm-ac .ntm-ac__done { padding: 5px 4px 6px; text-align: center; }
.ntm-ac .ntm-ac__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ntm-ac-accent);
	color: #FFFFFF;
}
.ntm-ac .ntm-ac__check svg { width: 30px; height: 30px; }
.ntm-ac .ntm-ac__close .ntm-ac__icon { width: 17px; height: 17px; }
.ntm-ac .ntm-ac__done-text {
	margin-top: 13px;
	font-family: var(--ntm-ac-font);
	font-size: 15px;
	line-height: 1.73;
	color: #3A3A36;
}
.ntm-ac .ntm-ac__done-text strong { font-weight: 700; color: inherit; }

/* ---------- Look options (NTM Addons → Advisor call-back → Look) ---------- */
/* Floating button shapes */
.ntm-ac.ntm-ac--shape-rounded .ntm-ac__launcher { border-radius: 14px; }
.ntm-ac.ntm-ac--shape-square .ntm-ac__launcher { border-radius: 4px; }
.ntm-ac.ntm-ac--shape-circle:not(.is-open) .ntm-ac__launcher { width: var(--ntm-ac-l-h, 56px); padding: 0; justify-content: center; border-radius: 50%; }
.ntm-ac.ntm-ac--shape-circle:not(.is-open) .ntm-ac__open > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.ntm-ac.ntm-ac--shape-circle:not(.is-open) .ntm-ac__open .ntm-ac__icon { width: 22px; height: 22px; }
/* Shadows off */
.ntm-ac.ntm-ac--no-lshadow .ntm-ac__launcher { box-shadow: none; }
.ntm-ac.ntm-ac--no-pshadow .ntm-ac__panel { box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
/* Solid header */
.ntm-ac.ntm-ac--head-solid .ntm-ac__head { background: var(--ntm-ac-navy); }
/* Panel animation */
.ntm-ac.ntm-ac--anim-fade .ntm-ac__panel { animation-name: ntm-ac-fade; }
.ntm-ac.ntm-ac--anim-scale .ntm-ac__panel { animation-name: ntm-ac-scale; transform-origin: bottom right; }
.ntm-ac.ntm-ac--left.ntm-ac--anim-scale .ntm-ac__panel { transform-origin: bottom left; }
.ntm-ac.ntm-ac--anim-none .ntm-ac__panel { animation: none; }
@keyframes ntm-ac-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ntm-ac-scale { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
/* Attention effect on the floating button until it has been opened once */
.ntm-ac.ntm-ac--attn-pulse:not(.is-open):not(.was-opened) .ntm-ac__launcher { animation: ntm-ac-pulse 2.4s ease-out infinite; }
.ntm-ac.ntm-ac--attn-bounce:not(.is-open):not(.was-opened) .ntm-ac__launcher { animation: ntm-ac-bounce 3s ease-in-out infinite; }
.ntm-ac.ntm-ac--attn-wiggle:not(.is-open):not(.was-opened) .ntm-ac__launcher { animation: ntm-ac-wiggle 4s ease-in-out infinite; }
@keyframes ntm-ac-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ntm-ac-l-bg, var(--ntm-ac-accent)) 55%, transparent); } 70% { box-shadow: 0 0 0 16px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes ntm-ac-bounce { 0%, 20%, 100% { transform: none; } 8% { transform: translateY(-8px); } 14% { transform: translateY(-3px); } }
@keyframes ntm-ac-wiggle { 0%, 12%, 100% { transform: none; } 3% { transform: rotate(-6deg); } 6% { transform: rotate(6deg); } 9% { transform: rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) {
	.ntm-ac .ntm-ac__launcher { animation: none !important; }
}
/* Phones: panel across the whole width */
@media (max-width: 767px) {
	.ntm-ac.ntm-ac--m-full .ntm-ac__panel { width: calc(100vw - 2 * var(--ntm-ac-x)); }
}

/* ---------- Devices ---------- */
@media (max-width: 767px) { .ntm-ac.ntm-ac--hide-mobile { display: none; } }
@media (min-width: 768px) { .ntm-ac.ntm-ac--hide-desktop { display: none; } }

/* ---------- "Advisor button (NTM)" widget ---------- */
.ntm-ac-btn-wrap { display: flex; }
.ntm-ac-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 25px;
	border: 1px solid #6EB8BB;
	border-radius: 999px;
	background: #6EB8BB;
	color: #FFFFFF;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ntm-ac-btn .ntm-ac__icon { display: block; width: 16px; height: 16px; flex: 0 0 auto; }
.ntm-ac-btn:hover, .ntm-ac-btn:focus-visible { background: #5AA7AA; border-color: #5AA7AA; color: #FFFFFF; }
.ntm-ac-btn--navy { background: #00355E; border-color: #00355E; }
.ntm-ac-btn--navy:hover, .ntm-ac-btn--navy:focus-visible { background: #0B4A80; border-color: #0B4A80; }
.ntm-ac-btn--outline { background: transparent; color: #00355E; border-color: #6EB8BB; }
.ntm-ac-btn--outline:hover, .ntm-ac-btn--outline:focus-visible { background: #6EB8BB; color: #FFFFFF; }
