.ai-chat-btn {
    position: fixed;
    bottom: 75px;
    right: -30px;
    width: 155px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ai-chat {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-chat-box {
    position: fixed;
    right: 22px;
    bottom: 95px;
    width: 360px;
    max-width: calc(100% - 30px);
    height: 520px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    z-index: 99999;
    display: none;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    font-family: Arial, sans-serif;
}

.ai-chat-header {
    background: #0b2c5f;
    color: #fff;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-header small {
    display: block;
    font-size: 12px;
    opacity: 0.85;
}

.ai-chat-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

.ai-chat-messages {
    height: 340px;
    overflow-y: auto;
    padding: 14px;
    background: #f6f8fb;
}

.bot-message,
.user-message {
    max-width: 85%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    clear: both;
}

.bot-message {
    background: #fff;
    color: #222;
    float: left;
    border: 1px solid #e5e5e5;
}

.user-message {
    background: #0b2c5f;
    color: #fff;
    float: right;
}

.ai-chat-quick {
    padding: 8px 12px;
    background: #fff;
    border-top: 1px solid #eee;
    min-height: 42px;
}

.ai-chat-quick button {
    background: #f2a900;
    color: #111;
    border: none;
    padding: 7px 10px;
    margin: 3px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
}

.ai-chat-input-area {
    display: flex;
    padding: 10px;
    gap: 8px;
    border-top: 1px solid #eee;
    background: #fff;
}

.ai-chat-input-area input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 11px 14px;
    outline: none;
    font-size: 14px;
}

.ai-chat-input-area button {
    background: #0b2c5f;
    color: #fff;
    border: none;
    padding: 0 16px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 480px) {
    .ai-chat-box {
        right: 15px;
        bottom: 85px;
        width: calc(100% - 30px);
        height: 520px;
    }
}


.ai-chat-box {
    position: fixed;
    right: 22px;
    bottom: 85px;
    width: 360px;
    max-width: calc(100% - 30px);
    max-height: 88vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    z-index: 99999;
    display: none;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    font-family: Arial, sans-serif;
}

.ai-chat-messages {
    height: auto !important;
    max-height: 260px;
    overflow-y: auto;
    padding: 14px;
    background: #f6f8fb;
}

.ai-chat-quick {
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #eee;
    max-height: 170px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ai-chat-quick button {
    background: #f2a900;
    color: #111;
    border: none;
    padding: 8px 11px;
    margin: 0;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
}

.ai-chat-input-area {
    display: flex;
    padding: 10px;
    gap: 8px;
    border-top: 1px solid #eee;
    background: #fff;
}

@media (max-width: 480px) {
    .ai-chat-box {
        right: 10px;
        bottom: 75px;
        width: calc(100% - 20px);
        max-height: 88vh;
    }

    .ai-chat-messages {
        max-height: 220px;
    }

    .ai-chat-quick {
        max-height: 150px;
    }
}
