﻿:root {
    --primary-color: #ff6600;
}

.button {
    position: fixed;
    bottom: 5em;
    right: 2em;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3d9b3d;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
}

/* .button:before,
.button:after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #3d9b3d;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
}

.button:before {
    animation: button 2s ease-out infinite;
}

.button:after {
    animation: button 2s 1s ease-out infinite;
} */

@keyframes shake {
    0% {
        transform: rotate(-5deg);
    }

    25% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-2deg);
    }
}

.animation-btn {
    animation: shake 0.8s ease-in-out infinite;
}

@keyframes button {
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.button:hover {
    cursor: pointer;
}

    .button:hover i {
        transform: scale(1.4);
    }

.button i {
    font-size: 1.7rem;
    color: white;
    transition: transform 0.3s ease;
}

.popup {
    position: fixed;
    bottom: 15em;
    right: 4em;
    background-color: #fff;
    padding: 8px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
    display: none;
    border-radius: 8px;
    transform-origin: calc(100% - 10px) bottom;
    animation: header__notify-fadeIn ease-in 0.3s;
    width: 350px;
    height: 465px;
    z-index: 999999;
}

.infor-form {
    position: fixed;
    bottom: 6em;
    right: 2em;
    background-color: #fff;
    padding: 20px 20px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
    display: none;
    border-radius: 20px;
    /* transform-origin: calc(100% - 10px) bottom; */
    animation: header__notify-fadeIn ease-in 0.2s;
    width: 350px;
    height: 250px;
    z-index: 9999;
}

.popup-content {
    background-color: #3d9b3d;
    width: 230px;
    min-height: 62px;
    border-radius: 20px 20px 20px 0;
    padding: 10px;
    position: relative;
}

.message-wrapper .popup-content::before {
    position: absolute;
    display: block;
    content: "";
    width: 14px;
    height: 14px;
    background-color: green;
    border-radius: 50%;
    bottom: 2px;
    left: -26px;
    border: 2px solid #fff;
}

@keyframes header__notify-fadeIn {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hidden {
    display: none !important;
    visibility: hidden !important;
}

.visible {
    display: flex;
    justify-content: center;
}

.popup-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-header h3 {
    text-align: center;
    margin: 0;
    font-size: 1.1rem;
}

.popup-content p {
    margin: 0;
    font-size: 0.9rem;
    color: white;
}

.chat-content {
    background-color: white;
    height: 300px;
    width: 100%;
    border-radius: 8px;
    overflow-y: auto;
    scrollbar-width: thin;
    border: 1px solid #dee2e6;
}

.hidden-div {
    flex-direction: column;
    align-items: center;
}

    .hidden-div .message-wrapper {
        align-items: flex-end;
    }

.chat-content .message-wrapper {
    margin-bottom: -16px;
}

.hidden-div .form-control {
    margin-bottom: 10px;
    border-color: #3333338a;
}

.hidden-div .card-body {
    margin-left: 46px;
    padding: 0;
    /* border: 1px solid #adb5bd; */
    border-radius: 5px;
    width: 230px;
    /* position: absolute;
    top: 100%;
    right: 21px;*/
}

.message-wrapper {
    border-radius: 20px;
    padding: 15px 15px 10px 0px;
    align-items: flex-end;
}

    .message-wrapper .image {
        width: 50px;
        height: 50px;
        margin: 10px 12px 0 0;
        border-radius: 50%;
        position: relative;
        object-fit: cover;
    }

.change-color {
    background-color: #184d99;
}

.change-height {
    height: 375px;
}

.chat-box {
    flex-direction: column;
}

/*.popup .btn {
    width: 140px;
    height: 40px;
    border-radius: 3px;
    font-size: 1.2rem;
    bottom: 5px;
    background-color: #ff6600;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    color: white;
}*/

.popup .btn {
    background: linear-gradient(45deg, rgba(232, 26, 26, 1) 20%, rgba(255, 132, 1) 60%);
    text-transform: uppercase;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    border-radius: 15px;
    box-shadow: 2px -2px 8px rgba(255, 255, 255, 0.75), -2px 2px 8px rgba(40, 40, 40, 0.75);
    padding: 10px 25px;
    bottom: 30px;
    overflow: hidden
}

    .popup .btn:hover {
        opacity: 0.8;
    }

    .popup .btn:active {
        background-color: var(--primary-color);
    }

@keyframes shine {
    0% {
        transform: skew(-45deg);
    }

    100% {
        transform: skew(-45deg) translateX(1000px);
    }
}

.popup .btn::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 20%;
    background: white;
    top: 0;
    left: -10%;
    transform: skew(-45deg);
    opacity: 0.3;
    animation: shine 2s ease infinite;
}

.btn-send {
    padding: 5px 10px;
    border: 0;
    border-radius: 5px;
    background-color: #ef4d12;
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    transition: transform 0.1s ease;
}

    .btn-send:hover {
        opacity: 0.6;
        cursor: pointer;
    }

    .btn-send:focus {
        outline: none
    }

    .btn-send:active {
        transform: scale(0.9);
    }

.card-body .form {
    padding-bottom: 10px;
}

.popup-header {
}

    .popup-header i {
        background-color: #e0e5e5;
        padding: 8px 8px 8px 9px;
        margin-left: 8px;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        transition: transform 0.1s ease;
    }

.popup-wrapper .close-btn:hover {
    cursor: pointer;
    opacity: 0.8;
    transform: scale(1.2);
}

.popup-mini {
    height: 385px;
}

.disable-btn {
    cursor: none;
    opacity: 0.8;
}



.typing {
    background-color: transparent;
    width: 230px;
    min-height: 62px;
    border-radius: 20px 20px 20px 0;
    position: relative;
}


/*
    .typing-anim:before {
        position: absolute;
        display: block;
        content: "";
        width: 14px;
        height: 14px;
        background-color: green;
        border-radius: 50%;
        bottom: 7px;
        left: -26px;
        border: 2px solid #fff;
    }*/


/*----typing-animation----*/
.chat-bubble {
    -webkit-border-radius: 20px;
    -webkit-border-bottom-left-radius: 2px;
    -moz-border-radius: 20px;
    -moz-border-radius-bottomleft: 2px;
    border-radius: 20px;
    border-bottom-left-radius: 2px;
    display: inline-block;
}

    .chat-bubble:before {
        position: absolute;
        display: block;
        content: "";
        width: 14px;
        height: 14px;
        background-color: green;
        border-radius: 50%;
        bottom: 2px;
        left: -26px;
        border: 2px solid #fff;
    }

.typing {
    align-items: flex-end;
    display: flex;
    height: 17px;
    margin-bottom: 5px;
}

    .typing .dot {
        animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
        background-color: #6CAD96;
      
        border-radius: 50%;
        height: 7px;
        margin-right: 4px;
        vertical-align: middle;
        width: 7px;
        display: inline-block;
    }

        .typing .dot:nth-child(1) {
            animation-delay: 200ms;
        }

        .typing .dot:nth-child(2) {
            animation-delay: 300ms;
        }

        .typing .dot:nth-child(3) {
            animation-delay: 400ms;
        }

        .typing .dot:last-child {
            margin-right: 0;
        }

@keyframes mercuryTypingAnimation {
    0% {
        transform: translateY(0px);
        background-color: #6CAD96;
        
    }

    28% {
        transform: translateY(-7px);
        background-color: #9ECAB9;
        
    }

    44% {
        transform: translateY(0px);
        background-color: #B5D9CB;
        
    }
}

@media (max-width: 767.98px) {
    .button {
        right: 1em;
        bottom: 5em;
    }

    .popup {
        right: 3em;
    }

    .grecaptcha-badge {
        bottom: 5em !important;
    }

    
}

@media only screen and (max-width : 390px) {
    .popup {
        width: 92%;
        right: 1em !important;
    }
    .message-wrapper{
        padding-left:10px;
    }
}
