/*
 * Floating WhatsApp Widget CSS
 * Version: 1.0.0
 */

.floating-wpp {
    position: fixed;
    bottom: 175px;
    right: 0;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

.floating-wpp.right {
    left: auto;
    right: 20px;
}

.floating-wpp-button {
    width: 40px;
    height: 38px;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    /* padding: 5px; */
    opacity: 1;
}

.floating-wpp-button:hover {
    transform: scale(1.4);
    opacity: 1;
}

.floating-wpp-button img {
    width: 35px;
    height: 35px;
}

.floating-wpp-popup {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.floating-wpp.right .floating-wpp-popup {
    left: auto;
    right: 0;
}

.floating-wpp-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-wpp-head {
    /* background-color: #128c7e; */
    color: #fff;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-wpp-head span {
    font-weight: 600;
    font-size: 14px;
}

.floating-wpp-head .close {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    font-weight: 300;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.floating-wpp-head .close:hover {
    opacity: 1;
}

.floating-wpp-message {
    padding: 15px;
    background-color: #f0f0f0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.floating-wpp-input-message {
    padding: 15px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.floating-wpp-input-message textarea {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    resize: none;
    height: 40px;
    font-family: Arial, sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.floating-wpp-input-message textarea:focus {
    /* border-color: #25d366; */
}

.floating-wpp-btn-send {
    width: 40px;
    height: 40px;
    /* background-color: #25d366; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.floating-wpp-btn-send:hover {
    background-color: #20ba5a;
    transform: scale(1.05);
}

.floating-wpp-btn-send svg {
    width: 20px;
    height: 20px;
}

.floating-wpp-btn-send svg path {
    fill: #fff !important;
}

/* Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.floating-wpp-button.pulse {
    animation: pulse 2s infinite;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    /* .floating-wpp {
        bottom: 15px;
        right: 15px;
    } */

    .floating-wpp.right {
        right: 15px;
    }

    .floating-wpp-button {
        width: 40px;
        height: 40px;
    }

    .floating-wpp-button img {
        width: 28px;
        height: 28px;
    }

    .floating-wpp-popup {
        width: calc(100vw - 30px);
        max-width: 300px;
    }
}