/* Float Contacts – middle of screen (vertical), left or right side */

.fc {
	--fc-size: 56px;
	--fc-action-size: 48px;
	--fc-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
	--fc-z: 999998;
	--fc-side-offset: 20px;
	position: fixed;
	top: 50%;
	bottom: auto;
	transform: translateY(-50%);
	z-index: var(--fc-z);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 16px;
	line-height: 1.4;
	box-sizing: border-box;
}

.fc *,
.fc *::before,
.fc *::after {
	box-sizing: border-box;
}

.fc--right {
	right: var(--fc-side-offset);
	left: auto;
}

.fc--left {
	left: var(--fc-side-offset);
	right: auto;
}

.fc__bar {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.fc--left .fc__bar {
	justify-content: flex-start;
}

.fc__actions {
	display: none !important;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.fc__actions.is-visible {
	display: flex !important;
	animation: fc-slide-in 0.25s ease;
}

/* Right side: options expand left toward screen center */
.fc--right .fc__actions {
	order: 1;
}

.fc--right .fc__toggle {
	order: 2;
}

/* Left side: options expand right toward screen center */
.fc--left .fc__actions {
	order: 2;
}

.fc--left .fc__toggle {
	order: 1;
}

.fc__toggle {
	flex-shrink: 0;
	width: var(--fc-size);
	height: var(--fc-size);
	border: none;
	border-radius: 50%;
	background: var(--fc-primary, #2563eb);
	color: #fff;
	cursor: pointer;
	box-shadow: var(--fc-shadow);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
	position: relative;
	z-index: 2;
}

.fc__toggle:hover,
.fc__toggle:focus-visible {
	background: var(--fc-primary-dark, #1d4ed8);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.fc__toggle-icon {
	font-size: 1.35rem;
	line-height: 1;
	font-weight: 600;
}

.fc__toggle-icon--close {
	display: none;
	font-size: 1.75rem;
	font-weight: 400;
}

.fc.is-open .fc__toggle-icon--open {
	display: none;
}

.fc.is-open .fc__toggle-icon--close {
	display: block;
}

.fc__action {
	flex-shrink: 0;
	width: var(--fc-action-size);
	height: var(--fc-action-size);
	padding: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--fc-primary, #2563eb);
	text-decoration: none;
	border: none;
	cursor: pointer;
	box-shadow: var(--fc-shadow);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.fc__action:hover,
.fc__action:focus-visible {
	background: var(--fc-primary, #2563eb);
	color: #fff;
	outline: none;
	transform: scale(1.06);
}

.fc__svg {
	display: block;
	flex-shrink: 0;
}

/* Modal */

.fc__modal {
	--fc-modal-z: 999999;
	position: fixed;
	inset: 0;
	z-index: var(--fc-modal-z);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.fc__modal.is-visible {
	display: flex !important;
}

.fc__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
}

.fc__modal-panel {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 12px;
	max-width: 520px;
	width: 100%;
	max-height: min(90vh, 640px);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: fc-modal-in 0.25s ease;
}

.fc__modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #e5e7eb;
	flex-shrink: 0;
}

.fc__modal-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: #111827;
}

.fc__modal-close {
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
	border-radius: 8px;
}

.fc__modal-close:hover,
.fc__modal-close:focus-visible {
	background: #f3f4f6;
	color: #111827;
}

.fc__modal-body {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
	-webkit-overflow-scrolling: touch;
}

.fc__modal-body .wpcf7 {
	margin: 0;
}

body.fc-modal-open {
	overflow: hidden;
}

@keyframes fc-slide-in {
	from {
		opacity: 0;
		transform: translateX(12px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.fc--left .fc__actions.is-visible {
	animation-name: fc-slide-in-left;
}

@keyframes fc-slide-in-left {
	from {
		opacity: 0;
		transform: translateX(-12px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fc-modal-in {
	from {
		opacity: 0;
		transform: scale(0.96) translateY(8px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@media (max-width: 480px) {
	.fc {
		--fc-side-offset: 12px;
	}

	.fc__modal-panel {
		max-height: 92vh;
		border-radius: 12px 12px 0 0;
		align-self: flex-end;
	}

	.fc__modal.is-visible {
		align-items: flex-end;
		padding: 0;
	}
}
