/* Bright Addons: Floating Contact Buttons */
.bafe-fc {
	--bafe-fc-x: 24px;
	--bafe-fc-y: 24px;
	--bafe-fc-size: 56px;
	--bafe-fc-icon: 26px;
	--bafe-fc-gap: 12px;
	--bafe-fc-radius: 50%;
	--bafe-fc-text: #fff;
	position: fixed;
	right: var(--bafe-fc-x);
	bottom: calc(var(--bafe-fc-y) + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--bafe-fc-gap);
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.bafe-fc--left .bafe-fc {
	right: auto;
	left: var(--bafe-fc-x);
	align-items: flex-start;
}

.bafe-fc .bafe-fc__list {
	display: flex;
	flex-direction: column;
	align-items: inherit;
	gap: var(--bafe-fc-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bafe-fc .bafe-fc__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bafe-fc .bafe-fc__item::before,
.bafe-fc .bafe-fc__item::marker {
	content: none;
}

/* Buttons (links and the main button). The main button is a <button>, so its reset uses 3 classes. */
.bafe-fc .bafe-fc__button,
.bafe-fc .bafe-fc__main.bafe-fc__button {
	appearance: none;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--bafe-fc-size);
	height: var(--bafe-fc-size);
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--bafe-fc-radius);
	background-color: var(--bafe-fc-color, var(--bafe-fc-brand, #5b4bff));
	box-shadow: 0 8px 22px rgba(20, 16, 60, 0.22);
	color: var(--bafe-fc-text);
	font-family: inherit;
	font-size: 1rem;
	letter-spacing: normal;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.bafe-fc .bafe-fc__main.bafe-fc__button {
	--bafe-fc-brand: #5b4bff;
}

.bafe-fc .bafe-fc__button:hover,
.bafe-fc .bafe-fc__button:focus-visible {
	background-color: var(--bafe-fc-color, var(--bafe-fc-brand, #5b4bff));
	color: var(--bafe-fc-text);
	filter: brightness(1.06);
	transform: translateY(-2px);
}

.bafe-fc .bafe-fc__button:focus-visible {
	outline: 3px solid var(--bafe-fc-color, var(--bafe-fc-brand, #5b4bff));
	outline-offset: 3px;
}

.bafe-fc__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: var(--bafe-fc-icon);
	line-height: 1;
}

.bafe-fc__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.bafe-fc__icon i {
	color: inherit;
	font-size: inherit;
}

.bafe-fc__icon--close {
	display: none;
	font-size: calc(var(--bafe-fc-icon) * 0.85);
}

.bafe-fc.is-open .bafe-fc__icon--open {
	display: none;
}

.bafe-fc.is-open .bafe-fc__icon--close {
	display: inline-flex;
}

/* Labels */
.bafe-fc .bafe-fc__label {
	position: absolute;
	top: 50%;
	right: calc(100% + 12px);
	padding: 7px 12px;
	border-radius: 8px;
	background-color: #fff;
	box-shadow: 0 4px 16px rgba(20, 16, 60, 0.16);
	color: #1d1b36;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
	transform: translateY(-50%);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.bafe-fc--left .bafe-fc .bafe-fc__label {
	right: auto;
	left: calc(100% + 12px);
}

.bafe-fc--labels-hover .bafe-fc .bafe-fc__label {
	opacity: 0;
	transform: translate(6px, -50%);
}

.bafe-fc--labels-hover.bafe-fc--left .bafe-fc .bafe-fc__label {
	transform: translate(-6px, -50%);
}

.bafe-fc--labels-hover .bafe-fc .bafe-fc__button:hover .bafe-fc__label,
.bafe-fc--labels-hover .bafe-fc .bafe-fc__button:focus-visible .bafe-fc__label {
	opacity: 1;
	transform: translate(0, -50%);
}

.bafe-fc--labels-never .bafe-fc .bafe-fc__label,
.bafe-fc.is-open .bafe-fc__main .bafe-fc__label {
	display: none;
}

/* Toggle mode: the list opens above the main button. Hidden only once the script is ready. */
.bafe-fc__list {
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.bafe-fc--mode-toggle.is-ready:not(.is-open) .bafe-fc__list {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
}

.bafe-fc--mode-toggle:not(.is-ready) .bafe-fc__main {
	display: none;
}

/* Appear after a delay (only once the script is ready). */
.bafe-fc.is-ready.is-waiting {
	visibility: hidden;
	opacity: 0;
	transform: translateY(12px);
}

/* Pulse ring around the first button. */
.bafe-fc--pulse-yes .bafe-fc--mode-toggle .bafe-fc__main::after,
.bafe-fc--pulse-yes .bafe-fc--mode-stack .bafe-fc__item:first-child .bafe-fc__button::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 var(--bafe-fc-color, var(--bafe-fc-brand, #5b4bff));
	animation: bafe-fc-pulse 2.4s ease-out infinite;
	pointer-events: none;
}

.bafe-fc--pulse-yes .bafe-fc.is-open .bafe-fc__main::after {
	animation: none;
}

@keyframes bafe-fc-pulse {
	0% {
		box-shadow: 0 0 0 0 var(--bafe-fc-color, var(--bafe-fc-brand, #5b4bff));
		opacity: 0.55;
	}

	70% {
		box-shadow: 0 0 0 16px var(--bafe-fc-color, var(--bafe-fc-brand, #5b4bff));
		opacity: 0;
	}

	100% {
		box-shadow: 0 0 0 0 var(--bafe-fc-color, var(--bafe-fc-brand, #5b4bff));
		opacity: 0;
	}
}

/* Editor: show in place so the widget can be selected. */
.elementor-editor-active .bafe-fc {
	position: relative;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
	z-index: 1;
	padding: 4px 0;
}

.elementor-editor-active .bafe-fc--right .bafe-fc {
	align-items: flex-end;
}

@media (prefers-reduced-motion: reduce) {
	.bafe-fc,
	.bafe-fc__list,
	.bafe-fc .bafe-fc__button,
	.bafe-fc .bafe-fc__label {
		transition: none;
	}

	.bafe-fc--pulse-yes .bafe-fc .bafe-fc__button::after {
		animation: none;
		content: none;
	}
}

@media print {
	.bafe-fc {
		display: none;
	}
}

.bafe-fc [hidden] {
	display: none !important;
}
