#chatbot-btn {
    position: fixed;
    bottom: 70px;
    right: 20px;
    cursor: pointer;
    z-index: 9999;
    animation: float 2s ease-in-out infinite;
}

#chatbot-btn img {
  width: 160px;
  height: 123px;
  object-fit: contain;
  top: 0px;
  position: relative;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

#chatbot-container {
    position: fixed;
    bottom: 105px;
    right: 20px;
    width: 340px;
    height: 275px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

#chatbot-header {
    background: #ff6b00;
    color: #ffffff;
    padding: 14px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-header button {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

#chatbot-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: #f9f9f9;
}

.message {
    margin: 6px 0;
    padding: 10px 12px;
    border-radius: 12px;
    max-width: 75%;
    font-size: 14px;
    line-height: 1.4;
}

.bot {
    background: #eaeaea;
    color: #111;
}

.user {
    background: #ff6b00;
    color: #fff;
    margin-left: auto;
}

#chatbot-input {
    display: flex;
    border-top: 1px solid #ddd;
    background: #fff;
}

#user-input {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 14px;
    outline: none;
}

#send-btn {
    background: #ff6b00;
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 500;
}

#send-btn:hover {
    background: #e65c00;
}

/* responsiveness */

@media (max-width: 480px) {
    #chatbot-btn {
        bottom: 10px;
        right: 10px;
    }
    #chatbot-btn img {
        width: 100px;
        height: auto;
       
    }
    #chatbot-container {
        width: 90%;
        right: 5%;
        bottom: 80px;
        height: 380px;
    }
}

@media (max-width: 360px) {
    #chatbot-container {
        height: 320px;
    }
    .message {
        font-size: 13px;
    }
}

@media (min-width: 1600px) {
    #chatbot-btn img {
        width: 180px;
    }
    #chatbot-container {
        width: 400px;
        height: 450px;
        bottom: 140px;
    }
    .message {
        font-size: 16px;
    }
}

@media (min-width: 2560px) {
    #chatbot-btn {
        bottom: 50px;
        right: 50px;
    }
    #chatbot-btn img {
        width: 240px;
    }
    #chatbot-container {
        width: 600px;
        height: 700px;
        bottom: 220px;
        right: 50px;
        border-radius: 20px;
    }
    #chatbot-header {
        padding: 25px;
        font-size: 24px;
    }
    .message {
        font-size: 20px;
        max-width: 85%;
        margin: 10px 0;
    }
    #user-input, #send-btn {
        padding: 20px;
        font-size: 20px;
    }
}

@media (min-width: 3840px) {
    #chatbot-btn img {
        width: 320px;
    }
    #chatbot-container {
        width: 800px;
        height: 900px;
        bottom: 300px;
    }
    .message {
        font-size: 28px;
    }
    #chatbot-header {
        font-size: 32px;
    }
}

body.no-scroll {
    overflow: hidden;
}

/* FULL PAGE OVERLAY */
#chatbot-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    display: none;
}
html, body {
  overscroll-behavior: none; /* stops rubber-band / scroll chaining */
}

/* while chat is open */
body.chat-lock {
  overflow: hidden; /* extra safety */
}