/* گفتگوی دستیار داخلی و پاسخ‌های قابل تنظیم فروشگاه */
.support-intro { display: flex; align-items: center; gap: 14px; padding: 19px 22px; border-radius: 20px; margin-bottom: 18px; border: 1px solid #e3edf9; background: linear-gradient(135deg, #f1f8ff, #faf8ff); }
.support-intro-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 17px; flex: none; color: #347aba; background: #ffffffbd; box-shadow: inset 0 1px 0 #fff; }
.support-intro h3 { font-size: 16px; color: #34516f; font-weight: 900; margin-bottom: 3px; }
.support-intro p { color: #71849b; font-size: 12px; line-height: 1.9; }
.support-quicks, .support-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.support-quicks { padding: 5px 20px 16px; }
.support-quick, .support-action { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-radius: 12px; font-size: 11px; font-weight: 700; text-align: center; line-height: 1.7; white-space: normal; }
.support-action.product-link { display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 180px; text-align: right; padding: 11px 13px; }
.support-action.product-link b { font-size: 12px; color: #334a6d; }
.support-action.product-link span { font-size: 11px; color: #497eb4; font-weight: 800; }
.support-action .ui-icon { width: 15px; height: 15px; }
.support-actions { white-space: normal; margin-top: 14px; padding-top: 12px; border-top: 1px solid #d5e3f080; }
.support-status { display: flex; align-items: center; gap: 7px; color: #6c849c; font-size: 11px; }
.support-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #72a0cc; }
.support-status[data-human="true"] .support-status-dot { background: #d39a46; }
.support-handoff { margin-top: 11px; }
.msg.bot .bubble { background: linear-gradient(135deg, #f2f8ffc9, #faf7ffd9); color: #36516f; border-color: #dbe9f7; }
.msg.user .bubble { box-shadow: 0 5px 17px #4f83b219; border: 1px solid #d2e7f4; background: linear-gradient(135deg, #eaf5ffb5, #e5efffcc); color: #274c72; border-color: #d2e7f4; }
.msg[data-msg-id] { overflow-wrap: anywhere; }
.bubble { white-space: pre-wrap; }
.chat-box { scroll-behavior: smooth; }
.chat-typing-label { font-size: 10px; color: #8aa0b8; margin-inline-end: 4px; }
.support-settings { display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 22px; align-items: start; }
.support-settings .card { border-radius: 22px; }
.support-settings-main { padding: 25px; }
.support-settings-main > h3 { color: #36516f; font-size: 17px; font-weight: 900; margin-bottom: 16px; }
.support-settings-main label { display: block; margin-bottom: 18px; font-size: 12px; font-weight: 700; color: #627992; }
.support-settings-main .input { margin-top: 8px; font-size: 13px; }
.support-settings-aside { position: sticky; top: 100px; padding: 23px; background: linear-gradient(140deg, #f3f8ff, #faf8ff); }
.support-settings-aside h4 { font-size: 15px; color: #36516f; margin-bottom: 10px; }
.support-settings-aside p { font-size: 12px; color: #7a8ba1; line-height: 2; margin-bottom: 12px; }
.support-capabilities { display: grid; gap: 10px; }
.support-capabilities span { font-size: 11px; color: #647e98; line-height: 1.8; display: flex; gap: 7px; align-items: flex-start; }
.support-capabilities .ui-icon { width: 16px; height: 16px; color: #6797c0; margin-top: 2px; }
.support-faq-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 24px 0 16px; }
.support-faq-head h4 { color: #4b6684; font-size: 15px; }
.support-faq-row { position: relative; border: 1px solid #e1eaf6; border-radius: 18px; padding: 17px; background: #f9fbffb5; margin-bottom: 15px; }
.support-faq-row label { margin-bottom: 12px; }
.support-faq-row .faq-remove { float: left; border-radius: 9px; width: 31px; height: 31px; margin-bottom: 8px; }
.support-faq-empty { color: #91a0b4; font-size: 12px; padding: 22px; border: 1px dashed #d5e0ec; border-radius: 15px; line-height: 1.9; text-align: center; }
.support-save-actions { display: flex; justify-content: flex-start; margin-top: 18px; }
.human-request-label { color: #a16e2c; background: #fff5df; font-size: 10px; border-radius: 8px; padding: 4px 8px; }
@media (max-width: 920px) { .support-settings { grid-template-columns: 1fr; } .support-settings-aside { position: static; } }
@media (max-width: 530px) {
  .support-intro { padding: 17px; align-items: flex-start; }
  .support-intro h3 { font-size: 14px; }
  .support-intro p { font-size: 11px; }
  .support-quicks { padding-left: 14px; padding-right: 14px; gap: 7px; }
  .support-quick, .support-action { padding: 8px 10px; font-size: 10px; }
  .support-settings-main { padding: 19px; }
  .support-faq-row { padding: 14px; }
  .support-actions .product-link { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .chat-box { scroll-behavior: auto; } }

.switch-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #65809b; }
button.switch { display: inline-block; width: 44px; height: 26px; padding: 0; border-radius: 30px; flex: none; vertical-align: middle; }
.switch .knob { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px #47618d30; transition: transform .4s var(--motion-smooth), background .4s; }
.switch.on .knob { transform: translateX(-17px); background: #548dca; }
.support-settings-main label.check { display: flex; align-items: center; gap: 8px; }
