/* Floating Button Container */
.wa-bot-wrapper {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 15px;
}

.wa-bot-float {
    background-color: #25D366;
    color: #fff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-green 2s infinite;
    transition: all 0.3s ease;
}

.wa-bot-float:hover {
    animation: none;
    transform: scale(1.1);
}

.wa-bot-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #FF3B30;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.wa-bot-label {
    background: #fff;
    color: #0f172a;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: absolute;
    left: 80px;
    /* Text to the right */
    white-space: nowrap;
    opacity: 0;
    animation: slideInLeft 0.5s 1.5s forwards;
    /* Delayed appearance */
    pointer-events: none;
    border: 1px solid #f1f5f9;
}

.wa-bot-label::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Chat Window */
.wa-chat-window {
    position: fixed;
    bottom: 110px;
    left: 30px;
    width: 360px;
    max-width: 90vw;
    height: 550px;
    max-height: 75vh;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    animation: slideUp 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wa-chat-header {
    background: #075E54;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.wa-avatar {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #075E54;
    font-size: 20px;
}

.wa-header-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.wa-header-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.wa-close-btn {
    margin-left: auto;
    cursor: pointer;
    font-size: 20px;
    opacity: 0.7;
}

/* Chat Body */
.wa-chat-body {
    flex: 1;
    background: #E5DDD5;
    padding: 20px;
    overflow-y: auto;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Messages */
.wa-msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wa-msg.bot {
    align-self: flex-start;
    background: #fff;
    border-top-left-radius: 0;
}

.wa-msg.user {
    align-self: flex-end;
    background: #DCF8C6;
    border-top-right-radius: 0;
}

.wa-time {
    font-size: 10px;
    color: #999;
    float: right;
    margin-top: 5px;
    margin-left: 10px;
}

/* Options / Inputs */
.wa-input-area {
    background: #f0f0f0;
    padding: 10px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.wa-opt-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: #075E54;
    font-weight: 500;
}

.wa-opt-btn:hover {
    background: #DCF8C6;
    border-color: #25D366;
}

.wa-text-input-wrapper {
    display: flex;
    width: 100%;
    gap: 10px;
}

.wa-text-input {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ddd;
    outline: none;
}

.wa-send-btn {
    background: #075E54;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
.typing-indicator {
    display: flex;
    gap: 3px;
    padding: 5px 0;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #aaa;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}