#atalantic-chatbot {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    z-index: 999999 !important;
    font-family: Arial, sans-serif;
}

#atalantic-chat-toggle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg,#750006,#ff4d27);
    color: #fff;
    font-size: 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

#atalantic-chat-toggle.is-hidden {
    display: none !important;
}

#atalantic-chat-window {
    position: fixed !important;
    right: 24px !important;
    bottom: 100px !important;
    width: 420px;
    height: 680px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.28);
}

#atalantic-chat-window.is-open {
    display: flex !important;
}

.atalantic-header {
    background: linear-gradient(135deg,#750006,#ff4d27);
    color: #fff;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.atalantic-header strong {
    font-size: 17px;
}

.atalantic-header span {
    display: block;
    font-size: 13px;
    opacity: .85;
    margin-top: 4px;
}

#atalantic-close {
    background: rgba(255,255,255,.18);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#atalantic-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f5f6f8;
}

.atalantic-message {
    margin-bottom: 14px;
    padding: 13px 15px;
    border-radius: 16px;
    max-width: 86%;
    line-height: 1.45;
    font-size: 15px;
    word-break: break-word;
}

.atalantic-message.bot {
    background: #fff;
    color: #1f2937;
    border-bottom-left-radius: 5px;
}

.atalantic-message.user {
    background: #ff4d27;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.atalantic-message.thinking {
    opacity: .7;
    font-style: italic;
}

.atalantic-input-wrapper {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

#atalantic-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 15px;
    outline: none;
}

#atalantic-send {
    border: none;
    background: #ff4d27;
    color: #fff;
    border-radius: 14px;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 700;
}

@media (max-width: 768px) {

    #atalantic-chatbot {
        right: 10px !important;
        bottom: 10px !important;
    }

    #atalantic-chat-window {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
    }

    .atalantic-header {
        padding-top: calc(16px + env(safe-area-inset-top));
        min-height: 70px;
    }

    #atalantic-close {
        flex-shrink: 0;
        z-index: 2;
    }

    #atalantic-messages {
        padding: 16px;
    }

    .atalantic-input-wrapper {
        padding-bottom: calc(15px + env(safe-area-inset-bottom));
    }

}