/* شخصیت‌های شاپو — یک آواتار پویا */

.shopo-char-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    pointer-events: none;
    user-select: none;
}

.shopo-char-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

/* ─── هدر چت ─── */
.chat-panel-header,
.chat-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    flex-shrink: 0;
}

.shopo-char-header-text {
    flex: 1;
    min-width: 0;
}

.shopo-char-header-text h3,
.chat-panel-header h3,
.chat-header h3 {
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    margin: 0 0 3px !important;
    line-height: 1.35 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shopo-char-header-text p,
.chat-panel-header p,
.chat-header p {
    font-size: 0.7rem !important;
    opacity: 0.9 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.shopo-char-online-dot {
    color: #86EFAC;
    font-size: 0.65rem;
}

.shopo-char-slot--header,
.chat-panel-header .chat-head-icon.shopo-char-wrap,
.chat-header .chat-avatar.shopo-char-wrap {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 2px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.shopo-char-head {
    width: 52px;
    height: 52px;
}

.chat-panel-close,
.chat-close {
    margin-right: auto !important;
    flex-shrink: 0;
}

/* ─── دکمه شناور FAB ─── */
.chat-widget-btn .shopo-char-slot--fab,
.chat-widget-btn #shopo-char-fab {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.shopo-char-fab-face {
    width: 46px;
    height: 46px;
}

.chat-widget-btn {
    gap: 8px !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* ─── حباب راهنما ─── */
.shopo-char-nudge.shopo-char-wrap,
.sl-nudge-icon.shopo-char-wrap {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.shopo-char-nudge-img {
    width: 52px;
    height: 52px;
}

/* LiveMaster FAB */
#shopo-livemaster-root .chat-widget-btn {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(79, 142, 247, 0.45);
}

#shopo-livemaster-root .shopo-char-slot--fab,
#shopo-livemaster-root #shopo-char-fab {
    width: 52px;
    height: 52px;
    border: none;
    background: transparent;
    box-shadow: none;
}

#shopo-livemaster-root .shopo-char-fab-face {
    width: 52px;
    height: 52px;
}

#shopo-livemaster-root .chat-panel-header {
    background: linear-gradient(135deg, rgba(79, 142, 247, 0.15), rgba(123, 94, 248, 0.12));
    border-bottom: 1px solid rgba(123, 94, 248, 0.2);
    padding: 12px 14px !important;
}

#shopo-livemaster-root .chat-panel-header .shopo-char-slot--header {
    background: rgba(123, 94, 248, 0.12) !important;
    border-color: rgba(123, 94, 248, 0.25) !important;
}

#shopo-livemaster-root .shopo-char-header-text h3,
#shopo-livemaster-root .chat-panel-header h3 {
    color: var(--txt1);
    font-size: 0.85rem !important;
}

#shopo-livemaster-root .shopo-char-header-text p,
#shopo-livemaster-root .chat-panel-header p {
    color: var(--txt2);
    font-size: 0.68rem !important;
}

#shopo-livemaster-root .shopo-char-online-dot {
    color: #22D3A5;
}

/* راهنمای قدم‌به‌قدم — تور، spotlight، gate */
.shopo-guide-head {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
    text-align: right;
}

.shopo-guide-head--compact {
    margin-bottom: 8px;
}

.shopo-guide-head-text {
    flex: 1;
    min-width: 0;
}

.shopo-guide-title {
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.4;
    color: #fff;
}

.shopo-guide-subtitle {
    font-size: 0.72rem;
    opacity: 0.88;
    margin-top: 3px;
    line-height: 1.45;
    color: #E9E0FF;
}

.shopo-guide-step {
    font-size: 0.7rem;
    color: #FDE68A;
    margin-bottom: 4px;
    font-weight: 700;
}

.shopo-char-slot--guide {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 2px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    flex-shrink: 0;
}

.shopo-char-guide-img {
    width: 56px;
    height: 56px;
}

.shopo-guide-box {
    text-align: right;
}

.shopo-guide-body {
    text-align: right;
}

.shopo-guide-content {
    font-size: 0.84rem;
    line-height: 1.7;
    color: #F3F0FF;
}

.shopo-tour-bubble .shopo-guide-head {
    margin-bottom: 10px;
}

.shopo-coach-tip .shopo-guide-head {
    margin-bottom: 10px;
}

.shopo-coach-tip .shopo-guide-title {
    color: #FDE68A;
}

.shopo-suggest.shopo-tour-followup .shopo-guide-head {
    margin-bottom: 8px;
}

.shopo-suggest.shopo-tour-followup .shopo-char-slot--guide {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
}

.shopo-suggest.shopo-tour-followup .shopo-char-guide-img {
    width: 44px;
    height: 44px;
}

.shopo-guide-followup-msg {
    margin-bottom: 10px;
    line-height: 1.65;
    color: #E9E0FF;
}

@media (max-width: 480px) {
    .shopo-char-slot--header,
    .shopo-char-head {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
    }
}
