/* =========================================================================
   Live Chat Pro — Widget Styles (Front-end)
   ========================================================================= */

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

/* بازنشانی قوی استایل دکمه‌ها و فیلدهای ورودی داخل ویجت، تا استایل پیش‌فرض/سراسری
   قالب سایت میزبان (مثلاً border یا background پیش‌فرض روی <button>) روی المان‌های
   ویجت اثر نگذارد. از :where() استفاده شده تا specificity صفر داشته باشد و تمام
   کلاس‌های اختصاصی (مثل .lcp-toggle-btn) بدون نیاز به !important آن را override کنند. */
:where(#lcp-widget-root button) {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-family: inherit;
}
:where(#lcp-widget-root input, #lcp-widget-root textarea) {
	box-sizing: border-box;
	font-family: inherit;
	appearance: none;
	-webkit-appearance: none;
}

#lcp-widget-root {
	--lcp-primary: #6366f1;
	--lcp-secondary: #0ea5e9;
	--lcp-text: #1e2433;
	--lcp-text-light: #6b7280;
	--lcp-bg: #ffffff;
	--lcp-bg-soft: #f5f6fa;
	--lcp-border: #e5e7eb;
	--lcp-radius: 16px;
	--lcp-shadow: 0 10px 40px rgba(20, 20, 43, 0.18);

	position: fixed;
	z-index: 999999;
	font-family: 'Vazirmatn', 'IRANSans', Tahoma, 'Segoe UI', sans-serif;
	direction: rtl;
	line-height: 1.6;
}

#lcp-widget-root.lcp-pos-left  { left: var(--lcp-offset-x, 22px); }
#lcp-widget-root.lcp-pos-right { right: var(--lcp-offset-x, 22px); }
#lcp-widget-root.lcp-vpos-bottom { bottom: var(--lcp-offset-y, 22px); }
#lcp-widget-root.lcp-vpos-top    { top: var(--lcp-offset-y, 22px); }

/* ---------- دکمه شناور ---------- */
.lcp-toggle-btn {
	width: var(--lcp-toggle-size, 58px);
	height: var(--lcp-toggle-size, 58px);
	border-radius: var(--lcp-toggle-radius, 50%) !important;
	border: none !important;
	cursor: pointer;
	background: var(--lcp-toggle-bg, var(--lcp-primary)) !important;
	box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-radius 0.2s ease;
	overflow: hidden;
	flex-shrink: 0;
	padding: 0;
}
.lcp-toggle-btn:hover {
	transform: scale(1.06);
	box-shadow: 0 8px 28px rgba(99, 102, 241, 0.5);
}
.lcp-toggle-btn:active { transform: scale(0.97); }

/* تقدم بالا برای پس‌زمینه‌ی دکمه شناور تا هم قالب‌ها را شکست دهد و هم با حالت روشن/تیره قابل تعویض بماند */
#lcp-widget-root .lcp-toggle-btn {
	background: var(--lcp-toggle-bg, var(--lcp-primary)) !important;
}

/* حذف سایه‌ی دکمه شناور */
#lcp-widget-root.lcp-no-shadow .lcp-toggle-btn,
#lcp-widget-root.lcp-no-shadow .lcp-toggle-btn:hover { box-shadow: none; }

.lcp-toggle-custom-img {
	object-fit: contain;
	border-radius: inherit;
}

/* آیکن پیش‌فرض SVG: بزرگ‌تر و متناسب با اندازه دکمه */
.lcp-toggle-btn > svg.lcp-icon-chat {
	width: var(--lcp-toggle-icon-size, 26px);
	height: var(--lcp-toggle-icon-size, 26px);
}

.lcp-toggle-badge {
	position: absolute;
	top: -4px;
	inset-inline-end: -4px;
	background: #ef4444;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	min-width: 20px;
	height: 20px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	border: 2px solid #fff;
}

/* ---------- پنجره چت ---------- */
.lcp-chat-window {
	position: absolute;
	bottom: calc(var(--lcp-toggle-size, 58px) + 16px);
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 540px;
	max-height: calc(100vh - 140px);
	background: var(--lcp-bg);
	border-radius: var(--lcp-radius);
	box-shadow: var(--lcp-shadow);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: lcp-pop-in 0.22s ease;
}
/* اگر دکمه به بالای صفحه لنگر شده باشد، پنجره رو به پایین باز شود */
#lcp-widget-root.lcp-vpos-top .lcp-chat-window {
	bottom: auto;
	top: calc(var(--lcp-toggle-size, 58px) + 16px);
}

/* ---------- افکت شیشه‌ای (Glassmorphism) - فقط وقتی رنگ‌ها شفافیت دارند و بلور فعال است ---------- */
#lcp-widget-root.lcp-glass-enabled .lcp-chat-window,
#lcp-widget-root.lcp-glass-enabled .lcp-toggle-btn {
	-webkit-backdrop-filter: blur(var(--lcp-glass-blur, 0px));
	backdrop-filter: blur(var(--lcp-glass-blur, 0px));
	/* در برخی نسخه‌های Chrome، وقتی محتوای داخلی عنصر دارای backdrop-filter عوض می‌شود
	   (مثلاً تغییر از فرم شروع به صفحه پیام‌ها)، مرورگر بدون این راهنماها گاهی بلور را
	   به‌درستی دوباره محاسبه نمی‌کند و پس‌زمینه به‌اشتباه مات/سفید به‌نظر می‌رسد.
	   این سه خط یک لایه‌ی کامپوزیت مستقل و پایدار برای عنصر می‌سازند تا این مشکل رفع شود. */
	will-change: backdrop-filter;
	transform: translateZ(0);
	isolation: isolate;
}
#lcp-widget-root.lcp-pos-left  .lcp-chat-window { left: 0; }
#lcp-widget-root.lcp-pos-right .lcp-chat-window { right: 0; }

@keyframes lcp-pop-in {
	from { opacity: 0; transform: translateY(12px) scale(0.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- هدر ---------- */
.lcp-window-header {
	background: var(--lcp-header-bg, linear-gradient(120deg, var(--lcp-primary), var(--lcp-secondary)));
	color: var(--lcp-header-text, #fff);
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}
.lcp-header-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255,255,255,0.22);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
}
.lcp-header-text { flex: 1; min-width: 0; }
.lcp-header-text strong { display: block; font-size: 14.5px; }
.lcp-header-text small { font-size: 12px; opacity: 0.9; display: flex; align-items: center; gap: 5px; }

.lcp-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #9ca3af;
	display: inline-block;
	flex-shrink: 0;
}
.lcp-status-dot.lcp-online  { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,0.3); }
.lcp-status-dot.lcp-offline { background: #f59e0b; }

.lcp-window-close-btn {
	background: rgba(255,255,255,0.15);
	border: none;
	color: var(--lcp-header-text, #fff);
	width: var(--lcp-close-btn-size, 30px);
	height: var(--lcp-close-btn-size, 30px);
	border-radius: 50%;
	cursor: pointer;
	font-size: 14px;
	flex-shrink: 0;
	transition: background 0.15s;
}
.lcp-window-close-btn:hover { background: rgba(255,255,255,0.3); }

/* ---------- فرم شروع گفتگو ---------- */
.lcp-start-screen {
	flex: 1;
	overflow-y: auto;
	padding: 18px 16px;
	display: flex;
	flex-direction: column;
}
.lcp-welcome-msg {
	background: var(--lcp-bg-soft);
	border-radius: 14px;
	padding: 12px 14px;
	font-size: 13.5px;
	color: var(--lcp-text);
	margin-bottom: 16px;
}
.lcp-start-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.lcp-text-input, .lcp-textarea-input, .lcp-select-input {
	width: 100%;
	border: var(--lcp-field-border-w, 1.5px) solid var(--lcp-field-border, var(--lcp-border));
	border-radius: var(--lcp-field-radius, 10px);
	padding: 10px 12px;
	font-size: 13.5px;
	font-family: inherit;
	background: var(--lcp-field-bg, #fff);
	color: var(--lcp-field-text, var(--lcp-text));
	outline: none;
	transition: border-color 0.15s;
	resize: none;
}
.lcp-text-input::placeholder, .lcp-textarea-input::placeholder {
	color: var(--lcp-field-text, var(--lcp-text));
	opacity: 0.55;
}
.lcp-text-input:focus, .lcp-textarea-input:focus, .lcp-select-input:focus {
	border-color: var(--lcp-field-focus, var(--lcp-primary));
}
.lcp-select-input {
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 12px center;
	padding-left: 32px;
}
.lcp-select-input:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.lcp-start-btn {
	background: linear-gradient(120deg, var(--lcp-primary), var(--lcp-secondary));
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 11px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	margin-top: 4px;
	transition: opacity 0.15s;
}
.lcp-start-btn:hover { opacity: 0.92; }
.lcp-form-error {
	color: #dc2626;
	font-size: 12.5px;
	margin-top: -4px;
}

/* ---------- محتوای گفتگو ---------- */
.lcp-messages-screen {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.lcp-messages-list {
	flex: 1;
	overflow-y: auto;
	padding: 16px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: transparent;
}

.lcp-msg-row { display: flex; flex-direction: column; max-width: 80%; }
.lcp-msg-row.lcp-from-visitor { align-self: flex-end; align-items: flex-end; }
.lcp-msg-row.lcp-from-operator { align-self: flex-start; align-items: flex-start; }
.lcp-msg-row.lcp-system { align-self: center; max-width: 95%; align-items: center; }

.lcp-msg-bubble {
	padding: 9px 13px;
	border-radius: 14px;
	font-size: 13.5px;
	word-wrap: break-word;
	white-space: pre-wrap;
}
.lcp-from-visitor .lcp-msg-bubble {
	background: var(--lcp-visitor-bg, var(--lcp-primary));
	color: var(--lcp-visitor-text, #fff);
	border-bottom-left-radius: 4px;
}
.lcp-from-operator .lcp-msg-bubble {
	background: var(--lcp-operator-bg, #fff);
	color: var(--lcp-operator-text, var(--lcp-text));
	border: 1px solid var(--lcp-border);
	border-bottom-right-radius: 4px;
}
.lcp-system .lcp-msg-bubble {
	background: transparent;
	color: var(--lcp-text-light);
	font-size: 12px;
	text-align: center;
}

.lcp-msg-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 3px;
	padding: 0 4px;
}
.lcp-from-visitor .lcp-msg-meta { flex-direction: row-reverse; }
.lcp-msg-time {
	font-size: 10.5px;
	color: var(--lcp-text-light);
}
.lcp-msg-edited {
	font-size: 10px;
	color: var(--lcp-text-light);
	opacity: 0.85;
}
.lcp-msg-edited::before { content: '· '; }

/* دکمه‌های ویرایش/حذف پیام */
.lcp-msg-actions {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	opacity: 0;
	transition: opacity 0.15s;
}
.lcp-msg-row:hover .lcp-msg-actions,
.lcp-msg-row:focus-within .lcp-msg-actions { opacity: 1; }
.lcp-msg-edit,
.lcp-msg-delete {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px; height: 22px;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: var(--lcp-text-light);
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}
.lcp-msg-edit:hover { background: rgba(0,0,0,0.06); color: var(--lcp-text); }
.lcp-msg-delete:hover { background: rgba(220,38,38,0.1); color: #dc2626; }

/* حالت پیام حذف‌شده */
.lcp-msg-bubble.lcp-msg-deleted {
	background: transparent !important;
	border: 1px dashed var(--lcp-border) !important;
	color: var(--lcp-text-light) !important;
	font-style: italic;
	font-size: 12.5px;
}

/* ویرایش درون‌خطی */
.lcp-msg-edit-box {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	min-width: 210px;
}
.lcp-msg-edit-input {
	width: 100%;
	border: 1.5px solid var(--lcp-primary);
	border-radius: 10px;
	padding: 8px 11px;
	font-family: inherit;
	font-size: 13px;
	color: var(--lcp-text);
	background: #fff;
	resize: vertical;
	min-height: 42px;
	outline: none;
}
.lcp-msg-edit-actions { display: flex; gap: 6px; }
.lcp-msg-edit-save,
.lcp-msg-edit-cancel {
	border: none;
	border-radius: 8px;
	padding: 5px 14px;
	font-size: 12px;
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
}
.lcp-msg-edit-save { background: var(--lcp-primary); color: #fff; }
.lcp-msg-edit-cancel { background: rgba(0,0,0,0.06); color: var(--lcp-text); }
.lcp-msg-edit-save:hover { opacity: 0.92; }
.lcp-msg-edit-cancel:hover { background: rgba(0,0,0,0.1); }

.lcp-msg-attachment {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
}
.lcp-msg-attachment img {
	max-width: 180px;
	border-radius: 10px;
	display: block;
}
.lcp-msg-attachment a {
	color: inherit;
	text-decoration: underline;
}

/* ---------- نوار ورودی ---------- */
.lcp-input-row {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 10px 12px;
	background: var(--lcp-bg);
	border-top: 1px solid var(--lcp-border);
	flex-shrink: 0;
}
.lcp-message-input {
	flex: 1;
	border: none;
	outline: none;
	resize: none;
	font-family: inherit;
	font-size: 13.5px;
	max-height: 90px;
	padding: 9px 0;
	color: var(--lcp-text);
}
.lcp-attach-btn, .lcp-send-btn {
	border: none;
	background: var(--lcp-bg-soft);
	color: var(--lcp-text-light);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s, color 0.15s;
}
.lcp-send-btn {
	background: var(--lcp-primary);
	color: #fff;
	transform: rotate(0deg);
}
.lcp-attach-btn:hover { background: #eceef5; }
.lcp-send-btn:hover { opacity: 0.9; }
.lcp-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- وضعیت تایپینگ/آپلود ---------- */
.lcp-uploading-indicator {
	font-size: 12px;
	color: var(--lcp-text-light);
	padding: 4px 14px;
}

/* ---------- فرم امتیازدهی ---------- */
.lcp-rating-wrap {
	background: var(--lcp-rating-card-bg, #fff);
	color: var(--lcp-rating-card-text, var(--lcp-text));
	border: 1px solid var(--lcp-border);
	border-radius: 14px;
	padding: 14px 16px;
	margin: 6px auto 4px;
	max-width: 92%;
	text-align: center;
	align-self: center;
}
.lcp-rating-title {
	font-size: 13px;
	color: var(--lcp-rating-card-text, var(--lcp-text));
	margin-bottom: 10px;
	font-weight: 600;
}
.lcp-rating-stars {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-bottom: 10px;
}
.lcp-star-btn {
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: var(--lcp-rating-star, #d1d5db);
	cursor: pointer;
	padding: 2px;
	transition: color 0.12s, transform 0.12s;
}
.lcp-star-btn:hover { transform: scale(1.12); }
.lcp-star-btn.active { color: var(--lcp-rating-star-active, #fbbf24); }

.lcp-rating-comment {
	width: 100%;
	border: 1.5px solid var(--lcp-border);
	border-radius: 10px;
	padding: 8px 10px;
	font-size: 12.5px;
	font-family: inherit;
	background: transparent;
	color: var(--lcp-rating-card-text, var(--lcp-text));
	resize: none;
	margin-bottom: 10px;
	direction: rtl;
}
.lcp-rating-comment::placeholder { color: currentColor; opacity: 0.55; }
.lcp-rating-comment:focus { outline: none; border-color: var(--lcp-primary); }

.lcp-rating-submit {
	background: linear-gradient(120deg, var(--lcp-primary), var(--lcp-secondary));
	color: #fff;
	border: none;
	border-radius: 9px;
	padding: 8px 18px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}
.lcp-rating-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.lcp-rating-thanks {
	font-size: 13px;
	color: var(--lcp-rating-card-text, var(--lcp-text));
	padding: 6px 0;
}

/* ---------- موبایل ---------- */
@media (max-width: 480px) {
	#lcp-widget-root.lcp-pos-left,
	#lcp-widget-root.lcp-pos-right {
		left: 12px;
		right: 12px;
		bottom: 12px;
	}
	.lcp-chat-window {
		width: 100%;
		max-width: 100%;
		height: calc(100vh - 100px);
		bottom: 70px;
		left: 0 !important;
		right: 0 !important;
	}
	.lcp-toggle-btn { margin-inline-start: auto; }
}

/* ---------- دسترسی‌پذیری: focus ---------- */
.lcp-toggle-btn:focus-visible,
.lcp-window-close-btn:focus-visible,
.lcp-start-btn:focus-visible,
.lcp-send-btn:focus-visible,
.lcp-attach-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.lcp-chat-window { animation: none; }
	.lcp-toggle-btn { transition: none; }
}

/* =====================================================================
   نشانگر «در حال نوشتن…» و «دیده شد» (نسخه 2.0.0)
   ===================================================================== */
.lcp-typing-bubble {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
	padding: 12px 14px !important;
}
.lcp-typing-bubble span {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.4;
	animation: lcp-typing 1.2s infinite ease-in-out;
}
.lcp-typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.lcp-typing-bubble span:nth-child(3) { animation-delay: 0.4s; }
@keyframes lcp-typing {
	0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
	30% { opacity: 1; transform: translateY(-3px); }
}
.lcp-from-operator .lcp-typing-bubble { color: var(--lcp-text-light); }

.lcp-seen {
	font-size: 10px;
	color: var(--lcp-text-light);
	font-weight: 600;
}
.lcp-seen::before { content: '· '; }

/* =====================================================================
   دراپ‌داون سفارشی فرم شروع گفتگو (نسخه 2.2.0)
   جایگزین منوی بومی select برای هماهنگی کامل با تم ویجت.
   ===================================================================== */
.lcp-native-select-hidden { display: none !important; }

#lcp-widget-root .lcp-dropdown { position: relative; width: 100%; }

#lcp-widget-root .lcp-dropdown-trigger {
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 8px !important;
	border: var(--lcp-field-border-w, 1.5px) solid var(--lcp-field-border, var(--lcp-border)) !important;
	border-radius: var(--lcp-field-radius, 10px) !important;
	padding: 10px 12px !important;
	margin: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	line-height: 1.5 !important;
	font-size: 13.5px !important;
	font-family: inherit !important;
	font-weight: 400 !important;
	background: var(--lcp-field-bg, #fff) !important;
	color: var(--lcp-field-text, var(--lcp-text)) !important;
	box-shadow: none !important;
	text-shadow: none !important;
	outline: none !important;
	cursor: pointer !important;
	text-align: start !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	transition: border-color 0.15s !important;
}
#lcp-widget-root .lcp-dropdown-trigger:hover,
#lcp-widget-root .lcp-dropdown-trigger:focus,
#lcp-widget-root .lcp-dropdown-trigger:focus-visible,
#lcp-widget-root .lcp-dropdown-trigger:active {
	background: var(--lcp-field-bg, #fff) !important;
	color: var(--lcp-field-text, var(--lcp-text)) !important;
	box-shadow: none !important;
	outline: none !important;
}
#lcp-widget-root .lcp-dropdown.open .lcp-dropdown-trigger { border-color: var(--lcp-field-focus, var(--lcp-primary)) !important; }
#lcp-widget-root .lcp-dropdown-value {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: start;
	color: inherit !important;
}
#lcp-widget-root .lcp-dropdown.is-placeholder .lcp-dropdown-value { opacity: 0.55; }
#lcp-widget-root .lcp-dropdown-caret {
	flex-shrink: 0;
	color: var(--lcp-field-text, var(--lcp-text)) !important;
	opacity: 0.6;
	transition: transform 0.2s ease;
}
#lcp-widget-root .lcp-dropdown.open .lcp-dropdown-caret { transform: rotate(180deg); }

#lcp-widget-root .lcp-dropdown.is-disabled .lcp-dropdown-trigger {
	opacity: 0.55 !important;
	cursor: not-allowed !important;
	border-color: var(--lcp-field-border, var(--lcp-border)) !important;
}

/* منوی درون‌خطی (در جریان عادی باز می‌شود تا در ناحیه‌ی اسکرول بریده نشود) */
#lcp-widget-root .lcp-dropdown-menu {
	display: none;
	margin-top: 6px !important;
	border: 1px solid var(--lcp-field-border, var(--lcp-border)) !important;
	border-radius: var(--lcp-field-radius, 10px) !important;
	background: var(--lcp-field-bg, #fff) !important;
	overflow: hidden auto !important;
	max-height: 190px !important;
	box-shadow: 0 6px 20px rgba(20, 20, 43, 0.12) !important;
	animation: lcp-dd-in 0.16s ease;
	list-style: none !important;
	padding: 0 !important;
}
#lcp-widget-root .lcp-dropdown.open .lcp-dropdown-menu { display: block; }
@keyframes lcp-dd-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}

#lcp-widget-root .lcp-dropdown-option {
	padding: 10px 13px !important;
	margin: 0 !important;
	font-size: 13.5px !important;
	font-family: inherit !important;
	color: var(--lcp-field-text, var(--lcp-text)) !important;
	background: transparent !important;
	cursor: pointer !important;
	transition: background 0.12s !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: start !important;
}
#lcp-widget-root .lcp-dropdown-option:hover { background: rgba(127, 127, 127, 0.14) !important; }
#lcp-widget-root .lcp-dropdown-option.selected {
	background: var(--lcp-primary) !important;
	color: #fff !important;
	font-weight: 600 !important;
}
#lcp-widget-root .lcp-dropdown-option.selected:hover { background: var(--lcp-primary) !important; }

/* =====================================================================
   نوتیفیکیشن «پاسخ گرفتی» برای کاربر بازگشته (نسخه 2.7.0)
   ===================================================================== */
.lcp-reply-toast {
	position: absolute;
	bottom: calc(var(--lcp-toggle-size, 58px) + 14px);
	display: none;
	align-items: center;
	gap: 8px;
	width: 250px;
	max-width: calc(100vw - 40px);
	background: var(--lcp-bg, #fff);
	color: var(--lcp-text, #1e2433);
	border: 1px solid var(--lcp-border, #e5e7eb);
	border-radius: 14px;
	padding: 12px 14px;
	box-shadow: 0 8px 30px rgba(20, 20, 43, 0.18);
	cursor: pointer;
	z-index: 5;
}
/* لنگر افقی toast مطابق موقعیت دکمه */
#lcp-widget-root.lcp-pos-left  .lcp-reply-toast { left: 0; }
#lcp-widget-root.lcp-pos-right .lcp-reply-toast { right: 0; }
/* اگر دکمه بالای صفحه لنگر شده، toast زیر دکمه باز شود */
#lcp-widget-root.lcp-vpos-top .lcp-reply-toast {
	bottom: auto;
	top: calc(var(--lcp-toggle-size, 58px) + 14px);
}
.lcp-reply-toast.lcp-toast-in { animation: lcp-toast-pop 0.28s cubic-bezier(0.18, 0.89, 0.32, 1.28); }
@keyframes lcp-toast-pop {
	from { opacity: 0; transform: translateY(10px) scale(0.96); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}
.lcp-reply-toast-body { display: flex; align-items: center; gap: 10px; }
.lcp-reply-toast-icon {
	flex-shrink: 0;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: var(--lcp-primary, #6366f1);
	display: flex; align-items: center; justify-content: center;
	font-size: 19px;
}
.lcp-reply-toast-title { font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.lcp-reply-toast-text { font-size: 11.5px; opacity: 0.75; line-height: 1.5; margin-top: 2px; }
.lcp-reply-toast-close {
	position: absolute;
	top: 6px;
	inset-inline-start: 8px;
	background: none;
	border: none;
	color: var(--lcp-text-light, #9ca3af);
	font-size: 12px;
	cursor: pointer;
	padding: 2px;
	line-height: 1;
}
.lcp-reply-toast-close:hover { color: var(--lcp-text, #1e2433); }

/* انیمیشن جلب‌توجه دکمه شناور */
.lcp-toggle-btn.lcp-attention { animation: lcp-attention 1.4s ease-in-out infinite; }
@keyframes lcp-attention {
	0%, 100% { transform: scale(1); }
	10%, 30% { transform: scale(1.08) rotate(-6deg); }
	20%, 40% { transform: scale(1.08) rotate(6deg); }
	50%      { transform: scale(1) rotate(0); }
}

/* =====================================================================
   حالت تصویری دکمه شناور (نسخه 2.8.0)
   وقتی تصویر اختصاصی بارگذاری شده باشد: تصویر تمام دکمه را پر می‌کند و
   رنگ زمینه و آیکن پیش‌فرض غیرفعال می‌شوند.
   ===================================================================== */
#lcp-widget-root.lcp-toggle-image-mode .lcp-toggle-btn {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	padding: 0 !important;
	overflow: hidden;
	box-shadow: none !important;
}
#lcp-widget-root.lcp-toggle-image-mode .lcp-toggle-custom-img {
	width: var(--lcp-toggle-img-scale, 100%) !important;
	height: var(--lcp-toggle-img-scale, 100%) !important;
	object-fit: cover;
	display: block;
	border-radius: inherit;
	margin: auto;
	/* حفظ کیفیت هنگام مقیاس‌گذاری روی نمایشگرهای معمولی و رتینا */
	image-rendering: auto;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	transform: translateZ(0);
}
/* در حالت تصویری، دکمه بسته‌شدن روی تصویر خوانا بماند */
#lcp-widget-root.lcp-toggle-image-mode .lcp-icon-close {
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
}
