/*Chat bot styling*/

/*Chat bot initiate styling*/

#chat-initiate {
    position: fixed;
    right: 20px;
    bottom: 10px;
    z-index: 99;
    transition: 500ms;
    display: grid;
    grid-template-columns: auto;
    cursor: pointer;
}

#chat-initiate div:nth-child(1) {
    display: inline-block;
    background-color: #fff;
    color: #444;
    font-size: .8em;
    border-radius: 5px;
    box-shadow: 2px 2px 5px #888;
}

#chat-initiate div:nth-child(1) span {
    display: block;
    padding: 5px;
    text-align: center;
    font-weight: 600;
}

#chat-initiate div:nth-child(1) span:nth-child(1) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

#chat-initiate div:nth-child(1) span:nth-child(2) {
    color: #0d47a1;
}

#chat-initiate :nth-child(2) {
    margin-top: 5px;
    text-align: right;
}

/*Chat bot initiate styling*/

/*Chat bot interaction styling*/

#chat-interaction {
    position: fixed;
    right: 20px;
    bottom: 10px;
    z-index: 99;
    background-color: white;
    height: 500px;
    width: 400px;
    box-shadow: 2px 2px 5px #888;
    border-radius: 4px;
    display: none;
    grid-template-rows: 50px auto 50px;
    grid-template-columns: auto;
}

#chat-header {
    background-color: #039be5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    color: white;
    font-weight: 600;
}

#chat-header div:nth-child(1) {
    font-size: .75em;
}

#chat-header div:nth-child(1) span {
    display: block;
}

#chat-header div:nth-child(1) span:nth-child(1) {
    font-size: 1.25em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 1px #000;
}

#chat-header div:nth-child(1) span:nth-child(2) {
    font-size: .85em;
}

#close-chat {
    cursor: pointer;
}

#chat-content {
    overflow-y: auto;
}

#chat-content .sales-chat {
    display: grid;
    grid-template-columns: 70%;
    justify-content: start;
    pointer-events: none;
}

#chat-content .sales-chat p {
    margin: 5px 0 5px 15px;

}

#chat-content .sales-chat span {
    background-color: #eee;
    color: #000;
    font-size: .9em;
    display: inline-block;
    padding: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

#chat-content .sales-chat small {
    color: #888;
    margin-left: 15px;
    margin-top: 15px;
    display: flex;
    align-items: center;
}

#chat-content .sales-chat button {
    background-color: transparent;
    color: #0d47a1;
    border: 1px solid #0d47a1;
    border-top-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 5px;
    margin: 5px 0;
    cursor: pointer;
    pointer-events: auto;
}

#chat-content .sales-chat button:hover {
    background-color: #0d47a1;
    color: white;
}

#chat-content .sales-chat form {
    width: 100%;
    background-color: #eee;
    padding: 10px 5px;
    margin: 0 0 5px 15px;
    pointer-events: auto;
}

#chat-content .sales-chat form small {
    margin: 0;
    font-weight: 600;
}

#chat-content .sales-chat form input, #chat-content .sales-chat form select {
    width: 100%;
    height: 30px;
    background-color: white;
    border: 1px solid #000;
    margin: 5px 0;
    padding: 0 .1rem;
    border-radius: 2px;
}

#chat-content .sales-chat form select {
    width: 20%;
}

#chat-content .sales-chat form input[type="tel"] {
    width: 78%;
}

#chat-content .sales-chat form input[type="submit"] {
    background-color: #1a237e;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

#chat-content .lead-chat {
    display: grid;
    grid-template-columns: 70%;
    justify-content: end;
    text-align: right;
}

#chat-content .lead-chat small {
    color: #888;
    margin-right: 15px;
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#chat-content .lead-chat p {
    margin: 5px 15px 5px 0;

}

#chat-content .lead-chat span {
    background-color: #0d47a1;
    color: white;
    font-size: .9em;
    display: inline-block;
    padding: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 5px;
    font-weight: 600;
}

#typing-delay {
    display: none;
}

#typing-delay small {
    margin: 15px 0 15px 15px;
    display: flex;
    align-items: center;
    color: #888;
    font-weight: 600;
}

#chat-footer {
    background-color: #039be5;
}

#chat-footer form {
    height: 100%;
    display: grid;
    grid-template-columns: auto 40px;
}

#chat-footer form input {
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 2px 5px;
    color: white;
}

#chat-footer form button {
    background-color: transparent;
    border: 0;
}

/*Chat bot interaction styling*/

@media only screen and (max-width: 992px) {
    #chat-initiate, #chat-interaction {
        display: none;
    }
}

/*Chat bot styling*/