/* WhatsApp Widget Styles */
.wa-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    font-family: 'Heebo', sans-serif;
}

.wa-bubble {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: none;
    outline: none;
}

.wa-bubble:hover {
    transform: scale(1.1);
}

.wa-bubble i {
    color: white;
    font-size: 32px;
}

.wa-bubble::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Chat Box */
.wa-chat-box {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 320px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: none;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.wa-chat-box.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.wa-header {
    background: #004a6e;
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #25D366;
    overflow: hidden;
    background: white;
}

.wa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wa-header-info h6 {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.wa-header-info span {
    font-size: 12px;
    opacity: 0.8;
}

.wa-body {
    padding: 20px;
    background: url('../img/wa-bg.png');
    background-size: contain;
    min-height: 100px;
}

.wa-msg {
    background: white;
    padding: 12px 15px;
    border-radius: 0 15px 15px 15px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    max-width: 90%;
    opacity: 0;
    transform: translateX(-10px);
}

.wa-msg.show {
    animation: slideIn 0.3s forwards;
    opacity: 1;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

.wa-footer {
    padding: 15px 20px 20px;
    background: white;
}

.wa-input-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 30px;
    padding: 5px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.wa-smiley {
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.wa-input-container input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #334155;
    background: transparent;
    padding: 8px 0;
}

.wa-input-container input::placeholder {
    color: #94a3b8;
}

.wa-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #cbd5e1;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
    font-size: 16px;
}

.wa-send-btn:hover {
    background: #25D366;
    transform: scale(1.05);
}

.wa-send-btn.active {
    background: #25D366;
}

.wa-send-btn i {
    transform: translate(-1px, 1px);
}

/* Typing Indicator */
.typing {
    display: flex;
    gap: 4px;
    padding: 10px;
}

.typing span {
    width: 6px;
    height: 6px;
    background: #aaa;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-4px);
    }
}