#salem-ai-chatbot {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 999999;
    right: auto;
}

#salem-chat-toggle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    background: #111827;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

#salem-chat-window {
    display: none;
    width: 370px;
    max-width: calc(100vw - 30px);
    height: 580px;
    max-height: calc(100vh - 110px);
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.25);
    position: absolute;
    left: 0;
    bottom: 80px;
}

.salem-chat-header {
    background: #111827;
    color: #ffffff;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.salem-chat-header span {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 3px;
}

#salem-chat-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
}

#salem-chat-messages {
    height: 310px;
    padding: 15px;
    overflow-y: auto;
    background: #f9fafb;
}

.salem-message {
    margin-bottom: 12px;
    padding: 11px 13px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 85%;
}

.salem-bot {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.salem-user {
    background: #111827;
    color: #ffffff;
    margin-left: auto;
}

#salem-chat-options {
    padding: 10px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-height: 95px;
    overflow-y: auto;
}

.salem-option-btn {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    border-radius: 20px;
    padding: 7px 11px;
    font-size: 13px;
    cursor: pointer;
}

.salem-option-btn:hover {
    background: #111827;
    color: #ffffff;
}

#salem-turnstile-box {
    padding: 8px 10px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    min-height: 55px;
}

.salem-chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

#salem-user-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 9px 12px;
    font-size: 13px;
    outline: none;
}

#salem-send-btn {
    margin-left: 7px;
    background: #111827;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 9px 13px;
    cursor: pointer;
    font-size: 13px;
}

@media (max-width: 480px) {
    #salem-ai-chatbot {
        right: 16px;
        bottom: 16px;
    }

    #salem-chat-window {
        width: calc(100vw - 24px);
        right: -10px;
        bottom: 75px;
        height: 560px;
    }

    #salem-chat-messages {
        height: 295px;
    }
}