/* แชทสอบถามผู้จัด (ผู้สมัคร) — _lib/chat.php mc_chat_widget() · สีอิงตัวแปรใน _lib/ui.php */
.mcchat { position: fixed; right: 16px; bottom: 16px; z-index: 1050; font-size: .95rem; }
.mcchat-fab {
    border: 0; border-radius: 999px; padding: .65rem 1.1rem; color: #fff; font-weight: 600;
    background: linear-gradient(90deg, var(--mc-magenta, #fa05a0), var(--mc-orange, #fc8322));
    box-shadow: 0 6px 22px rgba(250, 5, 160, .45);
}
.mcchat-fab .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--mc-yellow, #fdde04); margin-left: 4px; }
.mcchat-panel {
    position: absolute; right: 0; bottom: 58px; width: min(360px, calc(100vw - 32px));
    height: min(520px, calc(100vh - 110px)); display: flex; flex-direction: column;
    background: #120a24; color: var(--mc-text, #eae6f5); border: 1px solid rgba(2, 191, 252, .45);
    border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, .55);
}
.mcchat-panel[hidden] { display: none; }
.mcchat-head {
    display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem;
    background: linear-gradient(90deg, rgba(2, 127, 252, .35), rgba(250, 5, 160, .35));
}
.mcchat-x { border: 0; background: none; color: inherit; font-size: 1.5rem; line-height: 1; }
.mcchat-who { padding: .9rem; }
.mcchat-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.mcchat-body[hidden], .mcchat-who[hidden] { display: none; }
.mcchat-log { flex: 1; overflow-y: auto; padding: .7rem; display: flex; flex-direction: column; gap: .4rem; }
.mcchat-msg { max-width: 82%; padding: .45rem .7rem; border-radius: 12px; white-space: pre-wrap; word-break: break-word; }
.mcchat-msg.me { align-self: flex-end; background: var(--mc-blue, #027ffc); color: #fff; border-bottom-right-radius: 4px; }
.mcchat-msg.staff { align-self: flex-start; background: #2a1d46; border-bottom-left-radius: 4px; }
.mcchat-msg .who { display: block; font-size: .72rem; opacity: .75; }
.mcchat-sys { align-self: center; font-size: .78rem; color: var(--mc-muted, #bbb); text-align: center; }
.mcchat-msg.bot { align-self: flex-start; background: #1f2a4a; border-bottom-left-radius: 4px; }
.mcchat-chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 .7rem .5rem; }
.mcchat-chips:empty { display: none; }
.mcchat-chip {
    border: 1px solid rgba(2, 191, 252, .55); background: transparent; color: var(--mc-cyan, #02bffc);
    border-radius: 999px; padding: .2rem .7rem; font-size: .8rem;
}
.mcchat-chip.staff { border-color: var(--mc-magenta, #fa05a0); color: #fff; background: rgba(250, 5, 160, .25); }
.mcchat-back { color: var(--mc-muted, #bbb); }
.mcchat-send { display: flex; gap: .4rem; padding: .55rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.mcchat-note { padding: 0 .7rem .5rem; color: var(--mc-muted, #bbb); }
.mcchat-note a { color: var(--mc-cyan, #02bffc); }
@media (max-width: 480px) {
    .mcchat-fab span { display: none; }
}
