/* The booking assistant on a guru's profile page: a round icon at the bottom right that opens a chat panel */
.mcp-chat-launcher {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1050;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: #f06a1a;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(15, 30, 61, .3);
    cursor: pointer;
}
.mcp-chat-launcher:hover { background: #d95a10; }
.mcp-chat.is-open .mcp-chat-launcher { display: none; }

.mcp-chat-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1051;
    width: 468px;
    max-width: calc(100vw - 24px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(15, 30, 61, .3);
    overflow: hidden;
}
.mcp-chat-panel[hidden] { display: none; }

.mcp-chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 12px 14px; background: #0f1e3d; color: #fff; }
.mcp-chat-head strong { display: block; font-size: 15px; }
.mcp-chat-head span { display: block; font-size: 12px; opacity: .8; }
.mcp-chat-head span i { color: #f9a15c; }
.mcp-chat-close { background: transparent; border: 0; color: #fff; font-size: 16px; padding: 2px 4px; cursor: pointer; }

.mcp-chat-panel .mcp-chat-form { padding: 0 12px 12px; }

.mcp-chat-log {
    height: 360px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mcp-chat-msg {
    max-width: 88%;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.mcp-chat-msg a { color: inherit; text-decoration: underline; font-weight: 600; }
.mcp-chat-msg p { margin: 0; }
.mcp-chat-msg p + p, .mcp-chat-msg p + ul, .mcp-chat-msg p + ol, .mcp-chat-msg ul + p, .mcp-chat-msg ol + p { margin-top: 8px; }
.mcp-chat-msg ul, .mcp-chat-msg ol { margin: 0; padding-left: 20px; }
.mcp-chat-msg li { margin: 3px 0; padding-left: 2px; }
.mcp-chat-msg strong { font-weight: 700; }
.mcp-chat-msg.is-assistant { align-self: flex-start; background: #f1f3f7; color: #0f1e3d; border-bottom-left-radius: 4px; }
.mcp-chat-msg.is-visitor   { align-self: flex-end;   background: #0f1e3d; color: #fff;    border-bottom-right-radius: 4px; }
.mcp-chat-msg.is-notice    { align-self: center; background: transparent; color: #6b7280; font-size: 12.5px; text-align: center; }

.mcp-chat-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 10px 14px; background: #f1f3f7; border-radius: 14px; border-bottom-left-radius: 4px; }
.mcp-chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: #9aa3b5; animation: mcpChatDot 1.2s infinite ease-in-out; }
.mcp-chat-typing span:nth-child(2) { animation-delay: .15s; }
.mcp-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes mcpChatDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.mcp-chat-form { display: flex; gap: 8px; margin-top: 4px; }
.mcp-chat-form input { flex: 1; min-width: 0; font-size: 16px; }   /* under 16px iOS zooms the page on focus */
.mcp-chat-form button { flex-shrink: 0; }
.mcp-chat-form button:disabled { opacity: .6; }
