@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');

#brand-online {
    position: fixed;
    bottom: 85px;
    right: 12px;
    font-family: 'Montserrat';
    background-color: white;
    color: black;
    padding: 7px 10px;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    z-index: 100000;
    animation: fadeIn .5s;
    font-size: 12px;
}

#brand-offline {
    position: fixed;
    bottom: 85px;
    right: 12px;
    font-family: 'Montserrat';
    background-color: white;
    color: black;
    padding: 7px 10px;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    z-index: 100000;
    animation: fadeIn .5s;
    font-size: 12px;
}

#visitor-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    background-color: gray;
    color: white;
    padding: 15px 20px;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    z-index: 100000;
    animation: fadeIn .5s;
    font-size: 20px;
}

#visitor-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 650px;
    background-color: #fff;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    z-index: 100000;
    color: #000000;
    animation: fadeIn .5s;
}

#visitor-chatbox-widget {
    width: 335px;
    height: 465px;
    overflow-y: scroll;
    padding: 2rem 2rem 5rem 2rem;
    display: flex;
    flex-direction: column;
}

.visitor-chat-btn {
    color: #fff;
    background-color: #2CAC40;
    border: 1px solid transparent;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease 0s;
}

.visitor-chat-btn:hover {
    color: #fff;
    background-color: #298B3F;
}

.visitor-form-control {
    display: block;
    width: 100%;
    height: 42px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    font-family: 'Montserrat';
    font-weight: 400;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.visitor-form-control:focus {
    border-color: #98cbe8;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(152, 203, 232, 0.6);
}

.visitor-hidden {
    display: none;
}

.icon {
    width: 21px;
    height: 21px;
    vertical-align: middle;
    fill: currentColor;
}

.header-chat-widget {
    display: flex;
    padding: 30px;
    position: relative;
    justify-content: center;
    align-items: center;
}

.chat-brandlogo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f2f2f2;
    margin-right: 10px;
}

.chat-brandlogo img {
    width: 60px;
    height: 60px;
    border-radius: 100%;
}

.chat-status {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.chat-details {
    display: flex;
    flex-direction: column;
}

.chat-brandname {
    font-weight: bold;
    font-size: 14px;
    margin: 0;
    font-family: 'Montserrat';
}

.chat-description {
    font-size: 12px;
    color: #757575;
    margin: 0;
    font-family: 'Montserrat';
}

.visitor-sender-messagecontainer {
    display: flex;
    margin-left: auto;
    max-width: 80%;
}

.visitor-recipient-messagecontainer {
    display: flex;
    margin-right: auto;
    max-width: 80%;
}

.visitor-sender-message {
    background-color: #e1ffc1;
    border-radius: 10px 10px 0 10px;
    text-align: left;
    display: table;
    color: black;
    padding: 15px;
    font-family: 'Montserrat';
    font-weight: 400;
    margin-bottom: 20px;
}

.visitor-recipient-message {
    background-color: #f0f0f0;
    border-radius: 10px 10px 10px 0;
    text-align: left;
    display: table;
    color: black;
    padding: 15px;
    font-family: 'Montserrat';
    font-weight: 400;
    margin-bottom: 20px;
}

.namemsgln {
    color: white;
    font-size: 10px;
    font-family: 'Montserrat';
    font-weight: 800;  
    margin-bottom: 5px;
    color: var(--text-color);
}

.chat-profileimage {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.visitor-close {
    float: right;
    font-size: 21px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.2;
}

.visitor-close:hover, .visitor-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.5;
}

button.visitor-close {
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-appearance: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(0, -25%);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes TooglefadeInFadeOut {
    0% { 
        background-color: #008000; /* Dark green */
    }
    50% {
        background-color: #00ff00; /* Light green */
    }
    100% { 
        background-color: #008000; /* Dark green */
    }
}