/* Reset */
#wpp-fix, #wpp-fix *, #wpp-fix *:after, #wpp-fix *:before {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.material-symbols-sharp {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 40;
}

.hidden { display: none; }

@keyframes 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 pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.6); }
	100% { transform: scale(1.7); opacity: 0; }
}

#wpp-fix {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}

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

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

#wpp-fix .wpp-link:hover {
    transform: scale(1.05);
    background: #1ba052; /* darken 10% */
}

#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 .wpp-link + .form-wpp {
    transition: all .3s ease-in-out;
    position: absolute;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.12);
    border-radius: 3px;
    bottom: 0;
    left: 0px;
    opacity: 0;
    overflow: hidden;
    transform: scale(0.2);
    border-radius: 50%;
    z-index: 1;
    visibility: hidden;
    transform-origin: bottom left;
    width: 100%;
    max-width: 300px;
    min-width: 350px;
}

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

#wpp-fix .form-wpp .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: url(https://www.davidsonsilva.com.br/wp-content/uploads/2023/04/bg-whatsapp.png);
}

#wpp-fix .form-wpp .buss-msg {
    background-color: #fff;
    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 .form-wpp .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-wpp form {
    width: calc(300px - 30px);
    transition: all .3s ease-in-out;
    float: right;
    position: initial;
}

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

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

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

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

#wpp-fix .form-wpp form .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 .form-wpp form input[type="text"],
#wpp-fix .form-wpp form input[type="tel"],
#wpp-fix .form-wpp form input[type="email"] {
    border-radius: 4px 0 4px 4px;
    width: 100%;
    padding: 10px;
    background: #e7ffe7;
    border: 1px solid #e7ffe7;
    font-size: 1rem;
}

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

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

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

#wpp-fix .form-wpp form .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 .form-wpp form .btn button:hover {
    border-color: #08433b;
    background-color: #08433b;
    box-shadow: 0 1px 4px 0 rgba(12, 97, 86, 0.52);
}

#wpp-fix .form-wpp form .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-wpp form::after {
    transition: all .3s ease-in-out;
    content: '';
    position: absolute;
    width: calc(100% + 4px);
    height: calc(100% + 15px);
    background: rgba(255, 255, 255, 0.93);
    left: -2px;
    top: -9px;
    z-index: 5;
    background-image: url(https://www.davidsonsilva.com.br/wp-content/uploads/2023/04/load.gif);
    background-size: 70px;
    background-repeat: no-repeat;
    background-position: 50%;
    opacity: 0;
    visibility: hidden;
}

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

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

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

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

#wpp-fix .form-wpp .head-wpp img {
    margin-right: 8px;
    width: 50px;
    border-radius: 50%;
}

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

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

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

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



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

@media (max-width: 767px) {
    #wpp-fix { bottom: 15px; }
    #wpp-fix svg { height: 30px; }
    #wpp-fix .wpp-link + .form-wpp form { width: calc(300px - 40px); }
    #wpp-fix .wpp-link + .form-wpp form input[type="text"],
    #wpp-fix .wpp-link + .form-wpp form input[type="email"] { font-size: .875rem; }
    #wpp-fix .wpp-link + .form-wpp form .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; }
}
