
:root {
	--fxw6-primary: #d62828;
	--fxw6-secondary: #f77f00;
	--fxw6-icon: #ffffff;
	--fxw6-ripple: #d62828;
}

#fxw6-root,
#fxw6-root * {
	box-sizing: border-box;
}

.fxw6-floating-button {
	position: fixed !important;
	z-index: 2147483000 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: var(--fxw6-size, 64px) !important;
	height: var(--fxw6-size, 64px) !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: linear-gradient(135deg, var(--fxw6-primary), var(--fxw6-secondary)) !important;
	box-shadow: 0 14px 34px rgba(214, 40, 40, .28), 0 5px 14px rgba(0, 0, 0, .18) !important;
	cursor: pointer !important;
	opacity: 1 !important;
	visibility: visible !important;
	overflow: visible !important;
	animation: fxw6Float 3.4s ease-in-out infinite;
	transition: transform .22s ease, box-shadow .22s ease !important;
	-webkit-tap-highlight-color: transparent;
}

.fxw6-floating-button:hover,
.fxw6-floating-button:focus {
	transform: translateY(-4px) scale(1.05) !important;
	box-shadow: 0 18px 42px rgba(214, 40, 40, .34), 0 6px 16px rgba(0, 0, 0, .2) !important;
	outline: none !important;
}

.fxw6-floating-button svg {
	position: relative;
	z-index: 3;
	display: block;
	width: 56%;
	height: 56%;
	fill: var(--fxw6-icon);
}

.fxw6-ring {
	position: absolute;
	inset: -6px;
	border: 2px solid var(--fxw6-ripple);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}

.fxw6-ring-one {
	animation: fxw6Ripple 2.8s ease-out infinite;
}

.fxw6-ring-two {
	animation: fxw6Ripple 2.8s ease-out 1.4s infinite;
}

.fxw6-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	display: none;
	align-items: center;
	justify-content: center;
	padding: clamp(12px, 3vw, 24px);
	background: rgba(8, 8, 8, .68);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
}

.fxw6-overlay.fxw6-open {
	display: flex;
	animation: fxw6Fade .2s ease both;
}

.fxw6-modal {
	position: relative;
	width: min(100%, 510px);
	max-height: min(92dvh, 780px);
	overflow: auto;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 28px 90px rgba(0, 0, 0, .36);
	animation: fxw6ModalIn .28s ease both;
	overscroll-behavior: contain;
}

.fxw6-header {
	position: relative;
	padding: 22px 58px 20px 24px;
	color: #fff;
	background: linear-gradient(135deg, var(--fxw6-primary), var(--fxw6-secondary));
}

[dir="rtl"] .fxw6-header {
	padding: 22px 24px 20px 58px;
}

.fxw6-brand-logo {
	display: block;
	width: min(100%, 245px);
	height: auto;
	max-height: 74px;
	object-fit: contain;
	object-position: left center;
	padding: 7px 10px;
	margin: 0 0 14px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .94);
}

[dir="rtl"] .fxw6-brand-logo {
	object-position: right center;
}

.fxw6-title {
	margin: 0 0 6px;
	color: #fff;
	font-size: clamp(20px, 4.5vw, 24px);
	font-weight: 800;
	line-height: 1.35;
}

.fxw6-subtitle {
	margin: 0;
	color: rgba(255, 255, 255, .94);
	font-size: 14px;
	line-height: 1.7;
}

.fxw6-close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font: 400 25px/1 Arial, sans-serif;
	cursor: pointer;
}

[dir="rtl"] .fxw6-close {
	right: auto;
	left: 14px;
}

.fxw6-body {
	padding: clamp(18px, 4vw, 25px);
}

.fxw6-section-title {
	margin: 0 0 13px;
	color: #171717;
	font-size: 15px;
	font-weight: 800;
}

.fxw6-contact-list {
	display: grid;
	gap: 11px;
	margin-bottom: 19px;
}

.fxw6-contact-card {
	display: flex;
	align-items: center;
	gap: 13px;
	width: 100%;
	padding: 13px;
	border: 1px solid #e4e6e9;
	border-radius: 15px;
	background: #fff;
	text-align: inherit;
	cursor: pointer;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.fxw6-contact-card:hover {
	transform: translateY(-2px);
	border-color: var(--fxw6-secondary);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.fxw6-contact-card.fxw6-selected {
	border-color: var(--fxw6-secondary);
	background: #fff8f0;
	box-shadow: 0 0 0 3px rgba(247, 127, 0, .12);
}

.fxw6-avatar {
	flex: 0 0 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--fxw6-primary), var(--fxw6-secondary));
	color: #fff;
	font-size: 17px;
	font-weight: 900;
	box-shadow: 0 8px 18px rgba(214, 40, 40, .18);
}

.fxw6-contact-info {
	flex: 1;
	min-width: 0;
}

.fxw6-contact-name {
	display: block;
	margin-bottom: 3px;
	overflow: hidden;
	color: #171717;
	font-size: 15px;
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fxw6-contact-role {
	display: block;
	color: #6b7280;
	font-size: 13px;
	font-weight: 600;
}

.fxw6-check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: 2px solid #d1d5db;
	border-radius: 50%;
	color: #fff;
	font-size: 13px;
	font-weight: 900;
}

.fxw6-selected .fxw6-check {
	border-color: var(--fxw6-secondary);
	background: var(--fxw6-secondary);
}

.fxw6-message-wrap {
	display: none;
}

.fxw6-message-wrap.fxw6-visible {
	display: block;
	animation: fxw6Fade .2s ease both;
}

.fxw6-label {
	display: block;
	margin-bottom: 8px;
	color: #171717;
	font-size: 14px;
	font-weight: 800;
}

.fxw6-message {
	width: 100%;
	min-height: 125px;
	padding: 13px 14px;
	resize: vertical;
	border: 1px solid #ddd;
	border-radius: 13px;
	background: #fafafa;
	color: #202020;
	font: inherit;
	line-height: 1.65;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.fxw6-message:focus {
	border-color: var(--fxw6-secondary);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(247, 127, 0, .13);
}

.fxw6-error {
	display: none;
	margin-top: 8px;
	color: #b42318;
	font-size: 13px;
	font-weight: 700;
}

.fxw6-error.fxw6-visible {
	display: block;
}

.fxw6-actions {
	display: flex;
	gap: 10px;
	margin-top: 18px;
}

.fxw6-send,
.fxw6-cancel {
	min-height: 48px;
	padding: 11px 18px;
	border-radius: 12px;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.fxw6-send {
	flex: 1;
	border: 0;
	background: linear-gradient(135deg, var(--fxw6-primary), var(--fxw6-secondary));
	color: #fff;
	box-shadow: 0 9px 22px rgba(214, 40, 40, .23);
}

.fxw6-send:disabled {
	opacity: .55;
	cursor: not-allowed;
	box-shadow: none;
}

.fxw6-cancel {
	border: 1px solid #ddd;
	background: #f6f6f6;
	color: #333;
}

body.fxw6-no-scroll {
	overflow: hidden !important;
}

@keyframes fxw6Float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

@keyframes fxw6Ripple {
	0% { transform: scale(.88); opacity: .58; }
	70%, 100% { transform: scale(1.5); opacity: 0; }
}

@keyframes fxw6Fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes fxw6ModalIn {
	from { opacity: 0; transform: translateY(18px) scale(.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 767px) {
	.fxw6-modal {
		width: 100%;
		max-height: 94dvh;
		border-radius: 17px;
	}

	.fxw6-header {
		padding-top: 19px;
	}

	.fxw6-actions {
		flex-direction: column;
	}

	.fxw6-cancel {
		order: 2;
	}

	.fxw6-brand-logo {
		width: min(100%, 220px);
	}

	.fxw6-contact-card {
		padding: 12px;
	}

	.fxw6-avatar {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}
}

@media (max-width: 380px) {
	.fxw6-overlay {
		padding: 8px;
	}

	.fxw6-body {
		padding: 15px;
	}

	.fxw6-header {
		padding-inline-start: 17px;
	}

	.fxw6-contact-name {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fxw6-floating-button,
	.fxw6-ring-one,
	.fxw6-ring-two,
	.fxw6-overlay.fxw6-open,
	.fxw6-modal {
		animation: none !important;
	}
}
