#sac-widget {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999999;
    font-family: Arial, sans-serif;
}

#sac-chat-button {
    width: 60px;
    height: 60px;
    background: #111827;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 26px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

#sac-chat-box {
    width: 360px;
    height: 520px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
}

#sac-chat-header {
    background: #111827;
    color: #ffffff;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sac-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
}

#sac-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9fafb;
}

.sac-msg {
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 85%;
    clear: both;
}

.sac-bot {
    background: #e5e7eb;
    color: #111827;
    float: left;
}

.sac-user {
    background: #2563eb;
    color: #ffffff;
    float: right;
}

#sac-chat-input-area {
    display: flex;
    border-top: 1px solid #e5e7eb;
}

#sac-input {
    flex: 1;
    border: none;
    padding: 14px;
    font-size: 14px;
    outline: none;
}

#sac-send {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0 18px;
    cursor: pointer;
}

#sac-show-lead {
    border: none;
    background: #10b981;
    color: #ffffff;
    padding: 12px;
    cursor: pointer;
    font-weight: bold;
}

#sac-lead-form {
    padding: 12px;
    border-top: 1px solid #ddd;
    background: #ffffff;
}

#sac-lead-form input,
#sac-lead-form textarea {
    width: 100%;
    margin-bottom: 8px;
    padding: 9px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
}

#sac-lead-form textarea {
    height: 60px;
}

#sac-submit-lead {
    width: 100%;
    background: #111827;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}

@media(max-width: 480px) {
    #sac-chat-box {
        width: 92vw;
        height: 75vh;
    }

    #sac-widget {
        right: 12px;
        bottom: 12px;
    }
}