/* ---- WSC Chat Widget ---- */
.wsc-widget {
	--wsc-color: #0073aa;
	direction: rtl;
	font-family: Tahoma, "Segoe UI", sans-serif;
	position: fixed;
	bottom: 24px;
	z-index: 999999;
}

.wsc-widget.wsc-pos-right { right: 24px; }
.wsc-widget.wsc-pos-left  { left: 24px; }

.wsc-widget.wsc-inline {
	position: static;
	max-width: 420px;
	margin: 20px 0;
}

.wsc-toggle-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--wsc-color);
	color: #fff;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
	font-size: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .2s ease;
}
.wsc-toggle-btn:hover { transform: scale(1.06); }
.wsc-icon-close { display: none; }
.wsc-widget.wsc-open .wsc-icon-chat { display: none; }
.wsc-widget.wsc-open .wsc-icon-close { display: inline; }

.wsc-panel {
	display: none;
	flex-direction: column;
	position: absolute;
	bottom: 74px;
	width: 340px;
	max-width: 90vw;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0,0,0,.2);
	overflow: hidden;
}
.wsc-widget.wsc-pos-right .wsc-panel { right: 0; }
.wsc-widget.wsc-pos-left  .wsc-panel { left: 0; }
.wsc-widget.wsc-open .wsc-panel { display: flex; }
.wsc-panel.wsc-panel-open { display: flex; position: static; width: 100%; box-shadow: 0 2px 12px rgba(0,0,0,.12); }

.wsc-panel-header {
	background: var(--wsc-color);
	color: #fff;
	padding: 16px 18px;
}
.wsc-panel-header h3 { margin: 0 0 4px; font-size: 16px; }
.wsc-panel-header p { margin: 0; font-size: 12.5px; opacity: .9; }

.wsc-tabs { display: flex; border-bottom: 1px solid #eee; }
.wsc-tab-btn {
	flex: 1;
	padding: 10px 6px;
	background: #f7f7f7;
	border: none;
	cursor: pointer;
	font-size: 13px;
	color: #555;
}
.wsc-tab-btn.active { background: #fff; color: var(--wsc-color); font-weight: bold; border-bottom: 2px solid var(--wsc-color); }

.wsc-tab-content { display: none; padding: 16px; max-height: 380px; overflow-y: auto; }
.wsc-tab-content.active { display: block; }

.wsc-welcome-msg { font-size: 13px; color: #666; margin-top: 0; }

.wsc-form input,
.wsc-form select,
.wsc-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 10px;
	margin-bottom: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-family: inherit;
	font-size: 13px;
}
.wsc-form textarea { resize: vertical; }

.wsc-submit-btn {
	width: 100%;
	padding: 10px;
	background: var(--wsc-color);
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
}
.wsc-submit-btn:hover { opacity: .9; }
.wsc-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

.wsc-form-result { margin-top: 10px; font-size: 13px; }
.wsc-form-result.success { color: #1a7f37; }
.wsc-form-result.error { color: #c0392b; }

@media (max-width: 480px) {
	.wsc-panel { width: 92vw; }
}
