/* eXcelisys Blog Conversion. Colors are the site's Avada palette (primary #4ca5ff, accent #105378, links #006eb4). */
:root {
	--exbc-primary: #4ca5ff;
	--exbc-accent: #105378;
	--exbc-link: #006eb4;
	--exbc-tint: #eef6ff;
	--exbc-text: #333333;
	--exbc-sticky-top: 24px;
}

/* ---------- Phase 1: sticky sidebar ---------- */
.exbc-on #sidebar {
	position: -webkit-sticky;
	position: sticky;
	top: var(--exbc-sticky-top);
	align-self: flex-start;
}
/* Clear Avada's 86px sticky header (desktop only; it's off on tablet/mobile) and the admin bar. */
.exbc-on.fusion-sticky-header {
	--exbc-sticky-top: 110px;
}
.exbc-on.fusion-sticky-header.admin-bar {
	--exbc-sticky-top: 142px;
}
.exbc-expert {
	background: var(--exbc-tint);
	border-top: 4px solid var(--exbc-primary);
	border-radius: 6px;
	padding: 22px 20px 18px;
	text-align: center;
}
.exbc-faces {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}
.exbc-faces img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 3px solid #fff;
	object-fit: cover;
	margin-left: -12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.exbc-faces img:first-child {
	margin-left: 0;
}
.exbc-expert__title {
	font-family: "Roboto Slab", Arial, Helvetica, sans-serif;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 400;
	color: var(--exbc-text);
	margin: 0 0 6px;
}
.exbc-expert__sub {
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 14px;
}
.exbc-expert__phone,
.exbc-expert__chat {
	font-size: 14px;
	margin: 10px 0 0;
}
.exbc-expert__phone a {
	font-weight: 600;
	white-space: nowrap;
}

/* Gravity Forms inside the sidebar and pop-up: compact, full-width fields and button. */
.exbc-form {
	text-align: left;
}
.exbc-form .gform_wrapper,
.exbc-form .gform_wrapper form {
	margin: 0 !important;
	padding: 0 !important;
}
.exbc-form .gform_wrapper .gform_fields {
	row-gap: 10px !important;
}
.exbc-form .gform_wrapper .gfield_label {
	font-size: 13px !important;
	margin-bottom: 4px !important;
}
.exbc-form .gform_wrapper input[type="text"],
.exbc-form .gform_wrapper input[type="email"] {
	width: 100% !important;
	box-sizing: border-box;
}
.exbc-form .gform_wrapper .gform_footer {
	margin: 12px 0 0 !important;
	padding: 0 !important;
}
.exbc-form .gform_wrapper .gform_footer input[type="submit"],
.exbc-form .gform_wrapper .gform_footer button {
	width: 100% !important;
	margin: 0 !important;
}
.exbc-form .gform_confirmation_message {
	font-size: 14px;
	color: var(--exbc-text);
}
.exbc-form--fallback {
	text-align: center;
	margin: 0;
}
.exbc-btn.fusion-button {
	display: inline-block;
	text-decoration: none;
}
.exbc-form--fallback .exbc-btn {
	width: 100%;
	box-sizing: border-box;
}

/* ---------- Phase 4: category header banner ---------- */
.ex-post-banner {
	background: var(--exbc-tint);
	border-left: 4px solid var(--exbc-primary);
	padding: 14px 20px;
	border-radius: 4px;
	margin-bottom: 28px;
	font-size: 0.95rem;
	line-height: 1.5;
}
.ex-post-banner p {
	margin: 0 !important;
	color: var(--exbc-text);
}
.ex-post-banner__cta {
	font-weight: 600;
	color: var(--exbc-link);
	text-decoration: none;
	white-space: nowrap;
}
.ex-post-banner__cta:hover {
	text-decoration: underline;
}

/* ---------- Phase 3: mid-post callout ---------- */
.exbc-callout {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: var(--exbc-tint);
	border-left: 4px solid var(--exbc-primary);
	border-radius: 6px;
	padding: 24px;
	margin: 32px 0;
	clear: both;
}
.exbc-callout__icon {
	flex: 0 0 auto;
	color: var(--exbc-accent);
	margin-top: 2px;
}
.exbc-callout__body p {
	margin: 0 !important;
	color: var(--exbc-text);
}
.exbc-callout__body strong {
	color: var(--exbc-accent);
}
.exbc-callout__body .exbc-callout__action {
	margin-top: 14px !important;
}

/* ---------- Phase 2: exit-intent pop-up ---------- */
.exbc-modal[hidden] {
	display: none !important;
}
.exbc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.exbc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 30, 40, 0.55);
}
.exbc-modal__box {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	box-sizing: border-box;
	background: #fff;
	border-top: 5px solid var(--exbc-primary);
	border-radius: 6px;
	padding: 28px 28px 20px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	outline: none;
}
.exbc-modal__title {
	font-family: "Roboto Slab", Arial, Helvetica, sans-serif;
	font-size: 26px;
	line-height: 1.3;
	color: var(--exbc-text);
	margin: 0 0 10px;
}
.exbc-modal__body {
	margin: 0 0 16px;
}
.exbc-modal__dismiss {
	text-align: center;
	margin: 14px 0 0;
	font-size: 14px;
}
.exbc-modal__dismiss a {
	color: #747474;
	text-decoration: underline;
}
html.exbc-modal-open {
	overflow: hidden;
}

/* ---------- Mobile: hide sidebar, show bottom bar ---------- */
.exbc-bar {
	display: none;
}
@media (max-width: 800px) {
	.exbc-on #sidebar {
		display: none !important;
	}
	.exbc-on .exbc-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 99990;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: var(--exbc-accent);
		color: #fff;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	}
	.exbc-bar__text {
		font-weight: 600;
		font-size: 15px;
		line-height: 1.3;
	}
	.exbc-bar__btn {
		flex: 0 0 auto;
		background: var(--exbc-primary);
		color: #fff !important;
		font-weight: 700;
		font-size: 14px;
		text-decoration: none;
		padding: 9px 14px;
		border-radius: 4px;
		white-space: nowrap;
	}
	.exbc-on {
		padding-bottom: 64px;
	}
	/* Keep the cookie notice and the Olark launcher above the bar. */
	.exbc-on #cookie-law-info-bar {
		bottom: 64px !important;
	}
	.exbc-on #olark-wrapper .olark-launch-button,
	.exbc-on #olark-wrapper .olark-button-container {
		bottom: 72px !important;
	}
	.exbc-callout {
		padding: 18px;
		gap: 12px;
	}
}
