.wa-chatbot {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Work Sans', sans-serif;
    background: #fff;
}

.wa-chatbot.wa-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #000;
    color: #fff;
}

.wa-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wa-avatar img {
    height: 26px;
    width: auto;
}

.wa-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wa-header-logo {
    height: 18px;
    width: auto;
}

.wa-status {
    font-size: 11px;
    color: rgb(255 255 255);
}

.wa-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.wa-close-btn:hover {
    opacity: 1;
}

.wa-chatbot-body {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    background: #e5ddd5;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9c3ba' fill-opacity='0.12'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.wa-chat-date {
    text-align: center;
    margin-bottom: 12px;
}

.wa-chat-date span {
    background: #d1e7dd;
    color: #333;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 500;
}

.wa-message {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.wa-msg-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 250px;
}

.wa-msg-bubble {
    background: #fff;
    border-radius: 0 10px 10px 10px;
    padding: 8px 12px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
    position: relative;
}

.wa-msg-green {
    background: #dcf8c6;
    border-radius: 0 10px 10px 10px;
    padding-bottom: 6px;
}

.wa-msg-bubble p {
    margin: 0 0 6px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #303030;
}

.wa-msg-bold {
    font-weight: 600;
}

.wa-msg-time {
    display: block;
    font-size: 10px;
    color: #888;
    text-align: right;
    margin-top: -2px;
}

.wa-chatbot-footer {
    padding: 8px 10px;
    background: #f0f0f0;
    border-top: 1px solid #e0e0e0;
}

.wa-input-area {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border-radius: 24px;
    padding: 6px 6px 6px 14px;
    border: 1px solid #e0e0e0;
}

.wa-input-area i {
    color: #000;
    font-size: 18px;
    cursor: pointer;
}

.wa-input-area input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    background: transparent;
    color: #666;
}

.wa-send-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #25d366;
    color: #000;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.wa-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    border: none;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 3px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: waBounce 2s infinite;
}

.wa-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
}

@keyframes waBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .wa-chatbot {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .wa-fab {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .wa-msg-content {
        max-width: 280px;
    }
}