@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.osc-widget {
	position: fixed;
	font-family: 'Vazirmatn', 'IRANSans', Tahoma, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
	direction: rtl;
}

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

.osc-widget[data-osc-container] {
	position: fixed;
}

.osc-launcher {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	color: #fff;
	background: var(--osc-color);
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border: none;
	padding: 0;
	line-height: 1;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.osc-launcher svg {
	width: 28px;
	height: 28px;
	flex: 0 0 auto;
}

.osc-launcher-img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	border-radius: 6px;
}

.osc-launcher:hover,
.osc-launcher:focus-visible {
	transform: translateY(-3px) scale(1.04);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	outline: none;
}

@keyframes osc-pulse {
	0% { box-shadow: 0 0 0 0 rgba(31, 122, 77, 0.45); }
	70% { box-shadow: 0 0 0 16px rgba(31, 122, 77, 0); }
	100% { box-shadow: 0 0 0 0 rgba(31, 122, 77, 0); }
}

@keyframes osc-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

@keyframes osc-shake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-4px); }
	40%, 80% { transform: translateX(4px); }
}

@keyframes osc-wiggle {
	0%, 100% { transform: rotate(0deg); }
	25% { transform: rotate(-6deg); }
	75% { transform: rotate(6deg); }
}

.osc-launcher.osc-anim-pulse { animation: osc-pulse 2s infinite; }
.osc-launcher.osc-anim-bounce { animation: osc-bounce 1.8s ease-in-out infinite; }
.osc-launcher.osc-anim-shake { animation: osc-shake 0.8s ease-in-out infinite; }
.osc-launcher.osc-anim-wiggle { animation: osc-wiggle 1.6s ease-in-out infinite; }

.osc-widget.osc-inactive .osc-launcher {
	opacity: 0.9;
}

@media (max-width: 767px) {
	.osc-launcher {
		width: 56px;
		height: 56px;
	}
	.osc-launcher svg {
		width: 26px;
		height: 26px;
	}
}

.osc-panel {
	position: absolute;
	bottom: calc(100% + 14px);
	width: 320px;
	max-width: calc(100vw - 24px);
	background: #fff;
	color: #263238;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px) scale(0.97);
	transform-origin: bottom center;
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.osc-widget.osc-open .osc-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.osc-panel-close {
	position: absolute;
	top: 8px;
	inset-inline-start: 8px;
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.osc-panel-close:hover {
	background: rgba(255, 255, 255, 0.4);
}

.osc-panel-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 18px 16px;
	color: #fff;
}

.osc-avatar {
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	display: flex;
	align-items: center;
	justify-content: center;
}

.osc-panel-title {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.osc-panel-title strong {
	font-size: 15px;
	font-weight: 700;
}

.osc-status {
	font-size: 12px;
	opacity: 0.92;
}

.osc-panel-body {
	padding: 16px 18px 20px;
	max-height: 50vh;
	overflow-y: auto;
}

.osc-panel-text {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.8;
	color: #546e7a;
}

.osc-channels {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

.osc-channel {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #fff;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.osc-channel:hover {
	opacity: 0.92;
	transform: translateX(2px);
	color: #fff;
}

.osc-channel-img {
	width: 22px;
	height: 22px;
	object-fit: contain;
	flex: 0 0 auto;
}

.osc-avatar-img {
	width: 30px;
	height: 30px;
	object-fit: contain;
	border-radius: 8px;
}

.osc-phones h4 {
	margin: 0 0 8px;
	font-size: 13px;
	color: #37474f;
	border-bottom: 1px solid #eceff1;
	padding-bottom: 6px;
}

.osc-phones ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.osc-phones li a {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #37474f;
	font-size: 14px;
	padding: 6px 2px;
	border-radius: 6px;
	transition: background 0.2s ease;
}

.osc-phone-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.osc-phone-icon svg {
	width: 17px;
	height: 17px;
}

.osc-phones li a:hover {
	background: #f5f7f8;
}

.osc-offline-msg {
	padding: 20px 18px;
	font-size: 13px;
	line-height: 1.9;
	color: #546e7a;
	background: #fff8e1;
	border-top: 1px solid #ffe082;
}

@media (max-width: 767px) {
	.osc-panel {
		width: min(320px, calc(100vw - 24px));
	}
}
