/* WhatsApp widget — estrutura baseada no CodePen tamanaco/KwMGWrV, escopada para o site. */
.material-symbols-sharp {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 40;
}

#wpp-fix,
#wpp-fix *,
#wpp-fix *::before,
#wpp-fix *::after {
    box-sizing: border-box;
}

#wpp-fix .hidden {
    display: none;
}

@keyframes wpp-wiggle {
    0% { transform: rotate(-3deg); }
    20% { transform: rotate(20deg); }
    40% { transform: rotate(-15deg); }
    60% { transform: rotate(5deg); }
    90% { transform: rotate(-1deg); }
    100% { transform: rotate(0); }
}

@keyframes wpp-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.6); }
    100% { transform: scale(1.7); opacity: 0; }
}

#wpp-fix {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1090;
    font-family: Ubuntu, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#wpp-fix .wpp-link {
    transition: all .3s ease-in-out;
    background: #21c063;
    display: flex;
    z-index: 2;
    position: relative;
    padding: 15px;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(33, 192, 99, .56);
    transform: scale(1);
}

#wpp-fix .wpp-link > span {
    display: none;
}

#wpp-fix .wpp-link:hover,
#wpp-fix .wpp-link:focus {
    transform: scale(1.05);
    background: #1a9950;
    outline: none;
}

#wpp-fix .wpp-link.hide-this {
    opacity: 0;
    visibility: hidden;
    transform: scale(.5);
}

#wpp-fix .wpp-link.hide-this + .form-wpp {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    border-radius: 1%;
}

#wpp-fix .wpp-link.hide-this + .form-wpp + .mask {
    opacity: 1;
    visibility: visible;
}

#wpp-fix .form-wpp {
    transition: all .3s ease-in-out;
    position: absolute;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .12);
    bottom: 0;
    right: 0;
    opacity: 0;
    overflow: hidden;
    transform: scale(.2);
    border-radius: 50%;
    z-index: 1;
    visibility: hidden;
    transform-origin: bottom right;
    width: 100%;
    max-width: 300px;
    min-width: 350px;
}

#wpp-fix .mask {
    transition: all .3s ease-in-out;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .8);
    opacity: 0;
    visibility: hidden;
    z-index: 0;
}

#wpp-fix .form-content {
    transition: all .3s ease-in-out;
    padding: 15px;
    float: left;
    position: relative;
    width: 100%;
    background-color: #e9e0d7;
    background-position: 50%;
    background-size: cover;
    background-image:
        radial-gradient(circle at 12px 12px, rgba(255,255,255,.32) 2px, transparent 2px),
        linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,0));
    background-size: 34px 34px, cover;
}

#wpp-fix .buss-msg {
    background-color: #fff;
    color: #1f2933;
    padding: 10px;
    border-radius: 0 4px 4px 4px;
    line-height: 1.3;
    font-size: 15px;
    max-width: 270px;
    margin: 0 0 10px;
    position: relative;
}

#wpp-fix .buss-msg::before {
    content: "";
    position: absolute;
    border-top: 5px solid #fff;
    border-right: 5px solid #fff;
    border-bottom: 5px solid transparent;
    border-left: 5px solid transparent;
    left: -10px;
    top: 0;
}

#wpp-fix form {
    width: calc(300px - 30px);
    transition: all .3s ease-in-out;
    float: right;
    position: initial;
    margin: 0;
}

#wpp-fix form label {
    line-height: 1;
    margin-bottom: 0;
}

#wpp-fix form label.error {
    font-size: 10px;
    padding: 0 5px;
    position: absolute;
    right: 0;
    bottom: 3px;
}

#wpp-fix form .campo {
    position: relative;
    float: left;
    width: 100%;
    margin-bottom: 5px;
}

#wpp-fix .form-control-wrap {
    float: left;
    width: 100%;
    position: relative;
}

#wpp-fix .form-control-wrap::after {
    content: "";
    position: absolute;
    border-top: 5px solid #e7ffe7;
    border-right: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #e7ffe7;
    right: -10px;
    top: 0;
}

#wpp-fix input[type="text"],
#wpp-fix input[type="tel"],
#wpp-fix input[type="email"],
#wpp-fix select {
    border-radius: 4px 0 4px 4px;
    width: 100%;
    padding: 10px;
    background: #e7ffe7;
    border: 1px solid #e7ffe7;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.25;
    min-height: 42px;
}

#wpp-fix input.error,
#wpp-fix input.not-valid {
    border-color: #f44336;
}

#wpp-fix input + .not-valid-tip {
    font-size: 10px;
    padding: 0 5px;
    position: absolute;
    right: 0;
    bottom: 0;
}

#wpp-fix .btn {
    float: right;
    margin-top: 5px;
    padding: 0;
    border: 0;
}

#wpp-fix .btn button {
    transition: all .3s ease-in-out;
    background-color: #0c6156;
    border: 1px solid #0c6156;
    text-transform: initial;
    cursor: pointer;
    padding: 8px 12px;
    color: #fff;
    border-radius: 4px;
    font-size: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#wpp-fix .btn button:hover,
#wpp-fix .btn button:focus {
    border-color: #073c35;
    background-color: #073c35;
    box-shadow: 0 1px 4px 0 rgba(12, 97, 86, .52);
}

#wpp-fix .response-output {
    font-size: .9rem;
    line-height: 1.2;
    float: left;
    margin: 0;
    width: 100%;
    display: none;
    opacity: 0;
    transition: all .3s ease-in-out;
}

#wpp-fix form::after {
    transition: all .3s ease-in-out;
    content: "";
    position: absolute;
    width: calc(100% + 4px);
    height: calc(100% + 15px);
    background: rgba(255, 255, 255, .93);
    left: -2px;
    top: -9px;
    z-index: 5;
    background-image:
        radial-gradient(circle, #21c063 0 7px, transparent 8px),
        radial-gradient(circle, rgba(33,192,99,.25) 0 22px, transparent 23px);
    background-size: 70px 70px;
    background-repeat: no-repeat;
    background-position: 50%;
    opacity: 0;
    visibility: hidden;
}

#wpp-fix form.submitting::after {
    opacity: 1;
    visibility: visible;
}

#wpp-fix form.sent {
    height: 50px;
}

#wpp-fix form.sent .response-output {
    position: absolute;
    width: 100%;
    height: calc(100% + 15px);
    background: #fff;
    color: #1f2933;
    opacity: 1;
    left: 0;
    font-size: 1.18rem;
    text-align: center;
    top: 0;
    align-items: center;
    display: flex;
    padding: 10px;
    z-index: 7;
}

#wpp-fix form.sent .response-output p {
    margin: 0 auto;
}

#wpp-fix .head-wpp {
    width: 100%;
    padding: 12px 8px;
    background: #0c6156;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    z-index: 6;
}

#wpp-fix .head-wpp img {
    margin-right: 8px;
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
}

#wpp-fix .head-wpp h3 {
    word-break: keep-all;
    padding-right: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin: 0 0 0 10px;
    line-height: 1.2;
    max-width: 235px;
}

#wpp-fix .close {
    color: #fff;
    position: absolute;
    cursor: pointer;
    right: 0;
    top: 0;
    padding: 7px 8px;
    font-size: 1.375rem;
    line-height: 1;
}

#wpp-fix svg {
    width: initial;
    display: block;
    height: 30px;
}

#wpp-fix svg path {
    fill: #fff;
}

#wpp-fix.shake .wpp-link::before {
    transition: all .3s ease-in-out;
    background: rgba(33, 192, 99, .6);
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    top: 0;
    right: 0;
    animation: wpp-pulse 2s infinite;
}

#wpp-fix.shake svg {
    animation: 1s wpp-wiggle ease infinite;
}

@media (max-width: 767px) {
    #wpp-fix {
        bottom: 15px;
    }

    #wpp-fix svg {
        height: 30px;
    }

    #wpp-fix .wpp-link {
        padding: 10px;
    }

    #wpp-fix .wpp-link + .form-wpp form {
        width: calc(300px - 40px);
    }

    #wpp-fix input[type="text"],
    #wpp-fix input[type="email"],
    #wpp-fix select,
    #wpp-fix .btn button {
        font-size: .875rem;
    }
}

@media (max-width: 395px) {
    #wpp-fix .wpp-link + .form-wpp {
        min-width: 290px;
    }

    #wpp-fix .wpp-link + .form-wpp .head-wpp img {
        width: 40px;
        height: 40px;
    }
}
