.acesol-whatsapp-widget {
    width: 100%;
    max-width: 550px;
    font-family: inherit;
}

.acesol-whatsapp-live-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.acesol-whatsapp-live-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    background: #25D366;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.acesol-whatsapp-live-dot::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    width: 15px;
    height: 15px;
    border: 1px solid rgba(37, 211, 102, .4);
    border-radius: 50%;
    animation: acesol-whatsapp-pulse 1.8s infinite;
}

@keyframes acesol-whatsapp-pulse {
    0% {
        transform: scale(.8);
        opacity: .8;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.acesol-whatsapp-open-button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    max-width: 100%;
    padding: 13px 22px;
    background: #25D366 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 5px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}

.acesol-whatsapp-open-button:hover {
    background: #128C7E !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, .25);
}

.acesol-whatsapp-open-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, .25);
}

.acesol-whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
}

.acesol-whatsapp-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.acesol-whatsapp-arrow {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    transition: transform .3s ease;
}

.acesol-whatsapp-open-button:hover .acesol-whatsapp-arrow {
    transform: translateX(4px);
}

/* =================================================
   MODAL
================================================= */

.acesol-whatsapp-modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2147483647 !important;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, .68);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.acesol-whatsapp-modal-box {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 35px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .30);
    animation: acesol-whatsapp-modal-animation .25s ease;
}

@keyframes acesol-whatsapp-modal-animation {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =================================================
   CLOSE
================================================= */

.acesol-whatsapp-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555;
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    z-index: 5;
}

.acesol-whatsapp-close:hover {
    color: #25D366;
}

/* =================================================
   HEADER
================================================= */

.acesol-whatsapp-modal-header {
    margin: 0 25px 25px 0;
    text-align: center;
}

.acesol-whatsapp-modal-header h3 {
    margin: 0 0 8px;
    color: #222;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
}

.acesol-whatsapp-modal-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* =================================================
   CF7
================================================= */

.acesol-whatsapp-cf7-form {
    width: 100%;
}

.acesol-whatsapp-cf7-form .wpcf7 {
    width: 100%;
}

.acesol-whatsapp-cf7-form .uacf7-row {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.acesol-whatsapp-cf7-form .uacf7-col {
    box-sizing: border-box;
}

/* =================================================
   LABELS
================================================= */

.acesol-whatsapp-cf7-form label {
    display: block;
    margin: 0 0 6px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* =================================================
   INPUTS
================================================= */

.acesol-whatsapp-cf7-form input[type="text"],
.acesol-whatsapp-cf7-form input[type="tel"],
.acesol-whatsapp-cf7-form input[type="email"],
.acesol-whatsapp-cf7-form select,
.acesol-whatsapp-cf7-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 6px 12px;
    margin: 0 0 10px;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.acesol-whatsapp-cf7-form select {
    min-height: 38px;
    cursor: pointer;
}

.acesol-whatsapp-cf7-form textarea {
    height: 90px;
    resize: vertical;
}

.acesol-whatsapp-cf7-form .wpcf7 form .wpcf7-response-output {
    color: #000 !important;
}

/* =================================================
   FOCUS
================================================= */

.acesol-whatsapp-cf7-form input:focus,
.acesol-whatsapp-cf7-form select:focus,
.acesol-whatsapp-cf7-form textarea:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, .10);
}

/* =================================================
   SUBMIT
================================================= */

.acesol-whatsapp-cf7-form input[type="submit"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    margin: 8px 0 0;
    background: #25D366 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 5px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition: background .3s ease, transform .3s ease;
}

.acesol-whatsapp-cf7-form input[type="submit"]:hover {
    background: #128C7E !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* =================================================
   VALIDATION
================================================= */

.acesol-whatsapp-cf7-form .wpcf7-not-valid {
    border-color: #dc3232 !important;
}

.acesol-whatsapp-cf7-form .wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 12px;
    margin-top: -6px;
    margin-bottom: 8px;
}

/* =================================================
   CF7 RESPONSE
================================================= */

.acesol-whatsapp-cf7-form .wpcf7-response-output {
    margin: 15px 0 0 !important;
    padding: 12px 14px !important;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
}

.acesol-whatsapp-cf7-form .wpcf7-spinner {
    display: none !important;
}

/* =================================================
   MOBILE
================================================= */

@media (max-width: 600px) {

    .acesol-whatsapp-modal {
        padding: 12px;
    }

    .acesol-whatsapp-modal-box {
        max-height: calc(100vh - 24px);
        padding: 30px 20px 25px;
        border-radius: 10px;
    }

    .acesol-whatsapp-modal-header h3 {
        font-size: 22px;
    }

    .acesol-whatsapp-open-button {
        width: 100%;
        max-width: 100%;
    }

}

@media (max-width: 380px) {

    .acesol-whatsapp-modal-box {
        padding: 28px 16px 20px;
    }

    .acesol-whatsapp-modal-header h3 {
        font-size: 20px;
    }

}
