#fsw-widget {
	position: fixed;
	bottom: 20px;
	z-index: 999999;
	direction: rtl;
	font-family: Tahoma, Arial, sans-serif;
}
#fsw-widget.fsw-position-bottom-right { right: 20px; }
#fsw-widget.fsw-position-bottom-left { left: 20px; }

#fsw-toggle-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--fsw-color, #2271b1);
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	transition: transform .2s ease;
}
#fsw-toggle-btn:hover { transform: scale(1.06); }
#fsw-toggle-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
#fsw-toggle-btn .fsw-default-icon { font-size: 26px; }

#fsw-panel {
	position: absolute;
	bottom: 74px;
	width: 320px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0,0,0,.2);
	overflow: hidden;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
}
.fsw-position-bottom-right #fsw-panel { right: 0; }
.fsw-position-bottom-left #fsw-panel { left: 0; }

#fsw-panel.fsw-hidden, #fsw-message-box.fsw-hidden { display: none !important; }

.fsw-panel-header {
	background: var(--fsw-color, #2271b1);
	color: #fff;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: bold;
}
.fsw-panel-header .fsw-panel-logo { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.fsw-panel-header span { flex: 1; }
#fsw-close-btn {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
}

.fsw-panel-body { padding: 14px 16px; overflow-y: auto; }
.fsw-welcome-text { font-size: 13px; color: #555; margin: 0 0 10px; }

.fsw-field { margin-bottom: 10px; }
.fsw-field label { display: block; font-size: 13px; margin-bottom: 4px; color: #222; }
.fsw-field input, .fsw-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 13px;
	font-family: inherit;
}
.fsw-required { color: #d63638; }

.fsw-hp-field { position: absolute; left: -9999px; top: -9999px; }

#fsw-submit-btn {
	width: 100%;
	background: var(--fsw-color, #2271b1);
	color: #fff;
	border: none;
	padding: 10px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
}
#fsw-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

#fsw-message-box {
	padding: 10px 12px;
	border-radius: 6px;
	margin-bottom: 10px;
	font-size: 13px;
}
#fsw-message-box.fsw-success { background: #eafaf0; color: #1d7a45; border: 1px solid #b6e6c9; }
#fsw-message-box.fsw-error { background: #fdeaea; color: #c0292f; border: 1px solid #f3bcbc; }

@media (max-width: 480px) {
	#fsw-panel { width: calc(100vw - 40px); }
}
