/* StayHelp marketing live chat widget */
.sh-chat-launcher {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform 0.15s ease;
}
.sh-chat-launcher:hover { transform: scale(1.06); }
.sh-chat-launcher.hidden { display: none; }

.sh-chat-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 380px;
    max-width: calc(100vw - 24px);
    height: 560px;
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    font-family: inherit;
}
.sh-chat-panel.hidden { display: none; }

.sh-chat-header {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sh-chat-header h4 { margin: 0; font-size: 15px; font-weight: 600; }
.sh-chat-header p  { margin: 0; font-size: 12px; opacity: 0.85; }
.sh-chat-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
}

.sh-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sh-chat-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.sh-chat-msg.bot  { background: #fff; color: #111827; border: 1px solid #e5e7eb; align-self: flex-start; border-bottom-left-radius: 4px; }
.sh-chat-msg.user { background: #7c3aed; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.sh-chat-msg.typing { color: #6b7280; font-style: italic; font-size: 13px; }

.sh-chat-input {
    border-top: 1px solid #e5e7eb;
    padding: 10px;
    display: flex;
    gap: 6px;
    background: #fff;
}
.sh-chat-input textarea {
    flex: 1;
    resize: none;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    font-family: inherit;
    max-height: 100px;
    min-height: 36px;
    outline: none;
}
.sh-chat-input textarea:focus { border-color: #7c3aed; box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15); }
.sh-chat-input button {
    background: #7c3aed;
    color: #fff;
    border: none;
    padding: 0 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.sh-chat-input button:disabled { opacity: 0.5; cursor: not-allowed; }

.sh-chat-name {
    padding: 16px;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}
.sh-chat-name p { font-size: 14px; color: #374151; margin: 0; }
.sh-chat-name input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
.sh-chat-name input:focus { border-color: #7c3aed; }
.sh-chat-name button {
    background: #7c3aed;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
