@charset "UTF-8";


#sca-chat-root {
    z-index: 9999;
}

.sca-chat-container {
    position: fixed;
    bottom: 16px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sca-position-right {
    right: 16px;
}

.sca-position-left {
    left: 16px;
}

.sca-chat-toggle {
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sca-chat-toggle-label {
    white-space: nowrap;
}

.sca-chat-window {
    position: absolute;
    bottom: 52px;
    right: 0;
    width: 320px;
    max-height: 480px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.sca-position-left .sca-chat-window {
    right: auto;
    left: 0;
}

.sca-chat-window.sca-open {
    display: flex;
}

.sca-chat-header {
    padding: 8px 12px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sca-chat-title {
    font-size: 14px;
    font-weight: bold;
}

.sca-chat-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.sca-chat-messages {
    padding: 8px;
    flex: 1;
    overflow-y: auto;
    background: #f7fafc;
}

.sca-msg {
    margin-bottom: 6px;
    display: flex;
}

.sca-msg-user {
    justify-content: flex-end;
}

.sca-msg-assistant {
    justify-content: flex-start;
}

.sca-msg-bubble {
    max-width: 80%;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.sca-msg-user .sca-msg-bubble {
    background: #3182ce;
    color: #fff;
    border-bottom-right-radius: 2px;
}

.sca-msg-assistant .sca-msg-bubble {
    background: #e2e8f0;
    color: #1a202c;
    border-bottom-left-radius: 2px;
}

.sca-chat-form {
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 6px;
    background: #fff;
}

.sca-chat-input {
    width: 100%;
    resize: none;
    font-size: 13px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #cbd5e0;
    margin-bottom: 4px;
}

.sca-chat-send {
    align-self: flex-end;
    border: none;
    border-radius: 999px;
    font-size: 12px;
    padding: 6px 12px;
    background: #2d3748;
    color: #fff;
    cursor: pointer;
}
