﻿.wc-history li.wc-local:before,
.wc-history li:not(.wc-local):before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    border-bottom: 12px solid transparent;
}

#chat .wc-webchat {
    display: none !important;
}

.wc-webchat {
    width: 440px;
    max-width: 100%;
    right: 0;
    background: #26557f !important;
    z-index: 10000;
}

.wc-email-input,
.wc-error,
.wc-message,
.wc-name-input {
    background-color: #fff;
}

@media (min-width: 768px) {
    .wc-webchat {
        right: 20px;
    }
}

.wc-webchat .wc-ctistatus {
    font: status-bar;
    font-size: 11px;
    display: block;
    line-height: 0;
}

.wc-chatbox {
    height: 380px;
    max-height: 80vh;
    padding: 8px 20px;
    margin-right: 55px;
}

.wc-webchat > header {
    height: auto !important;
    background-color: transparent !important;
    color: #fff;
    margin-left: 0 !important;
    text-indent: 0 !important;
    line-height: 45px !important;
    border-left-width: 10px;
    border-left-style: solid;
    padding-left: 10px;
    cursor: default;
    font-size: large;
}

.wc-webchat .wc-title {
    font-size: 24px;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: 400;
    position: relative;
    top: 3px;
}


header .wc-buttons-ico {
    float: right;
    text-align: center;
    margin-right: 8px;
    width: 47px;
    margin-top: 8px;
}

header .wc-buttons-ico a.wc-terminate-ico,
header .wc-buttons-ico a.wc-minimise{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

header .wc-buttons-ico a.wc-minimise{
    margin-top: 5px;
}

.wc-buttons-ico .wc-minimise,
.wc-buttons-ico .wc-terminate-ico,
.wc-error-label.wc-show,
.wc-initiating .wc-terminate-ico.wc-show {
    display: block;
}

.wc-buttons-ico a,
.wc-buttons-ico a:visited {
    padding: 4px 2px;
    color: #fff;
    text-decoration: none;
    font-size: 33px;
    line-height: 20px;
    float: right;
    width: 32px;
}

.wc-buttons-ico a.wc-minimise span {
    display: block;
    transform: scaleY(-1);
    position: relative;
    top: -4px;
}

.wc-buttons-ico a:hover {
    background-color: #4dbce0;
}

.wc-buttons-ico a.wc-minimise.closed {
    transform: rotate(180deg);
}

.wc-status {
    text-align: left;
    color: white !important;
    padding: 0 !important;
    background-color: rgb(0 55 104) !important;
    border-color: rgb(0 55 104) !important;
}

.wc-error {
    color: #a60000;
    border: 1px solid #a60000;
    padding: 8px !important;
}

.wc-chatting textarea {
    width: 100%;
    display: block;
}

.wc-history {
    list-style-type: none;
    overflow-y: auto;
    height: 256px;
    margin: 8px 0;
    padding: 12px 16px 32px;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
    background: #fff;
}

    .wc-history li {
        padding: 10px;
        margin: 0 0 20px;
        color: #000;
        border-radius: 2px;
        background: #caeff5;
        position: relative;
        line-height: 1.4;
        width: 90%;
    }

        .wc-history li:not(.wc-local):before {
            left: -10px;
            border-right: 12px solid #caeff5;
        }

        .wc-history li.wc-local + li.wc-local,
        .wc-history li:not(.wc-local) + li:not(.wc-local) {
            padding: 0 10px 10px;
            margin-top: -22px;
            margin-bottom: 20px;
        }

            .wc-history li:not(.wc-local) + li:not(.wc-local):before {
                border-right-color: transparent;
            }

        .wc-history li.wc-local {
            margin-left: 10%;
            background-color: #eee;
            color: #000;
        }

            .wc-history li.wc-local:before {
                right: -10px;
                border-left: 12px solid #eee;
            }

            .wc-history li.wc-local + li.wc-local:before {
                border-left-color: transparent;
            }

        .wc-history li,
        .wc-history li a {
            word-wrap: break-word;
            -ms-word-wrap: break-word;
        }

.wc-name:after {
    content: ":";
}

.wc-history li .wc-name {
    display: block;
    color: #000 !important;
    font-weight: 700;
    font-size: 15.2px;
    margin-bottom: 6px;
}

    .wc-chatting .wc-terminate-ico.wc-show,
    .wc-history li .wc-name.wc-consecutive,
    .wc-webchat legend,
    .wc-terminate.wc-hide{
        display: none !important;
    }

input.wc-initiate.wc-hide{
    display: none;
}

.wc-dots,
.wc-typing {
    display: inline-block;
}

.wc-feedback {
    height: 32px;
    padding: 6px 16px 6px 10px;
    background: #fff;
    top: -40px;
    margin-bottom: -40px;
    position: relative;
    width: 95%;
}

    .wc-feedback.on {
        visibility: visible;
    }

.wc-typing[aria-hidden="true"] ~ .wc-dots {
    display: none;
}

.wc-typing[aria-hidden="true"] {
    display: none;
}

.wc-typing {
    background: #fff;
    border-width: 0 !important;
    padding: 0 8px 0 0 !important;
    color: #333;
    font-style: italic;
    width: auto;
}

.wc-message {
    width: 270px;
    height: 60px;
    border: 1px solid #4cbde0;
    margin: 8px 0 0;
}

    .wc-message::placeholder {
        opacity: 0.7;
    }

    .wc-message:-ms-input-placeholder {
        opacity: 0.7;
    }

.wc-webchat fieldset {
    margin: 0;
    border: 0;
    padding: 0;
}

.wc-webchat input {
    margin-top: 8px;
    margin-bottom: 8px;
}

.wc-email-input[disabled],
.wc-message[disabled],
.wc-name-input[disabled] {
    background-color: #c6c6c6;
}

.wc-initiate,
.wc-minimise,
.wc-terminate,
.wc-terminate-ico {
    height: 32px;
    font-weight: 400;
    font-size: 16px;
    border-radius: 6px;
    display: inline-block;
    color: #fff;
    background-color: #003768 !important;
    padding: 3px 12px 5px;
    min-height: 34px;
    line-height: 1.4;
    border: 0;
}

.wc-initiate,
.wc-terminate-ico,
.wc-terminate {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 18px;
}

    .wc-initiate:disabled,
    .wc-terminate-ico:disabled {
        color: gray;
    }

    .wc-initiate:enabled:hover,
    .wc-terminate-ico:enabled:hover {
        background-color: #4cbde0;
    }

.wc-initiating p {
    margin-right: 22px;
}

.wc-transcript {
    float: left;
    font-size: 80%;
    color: #fff;
    line-height: 28px;
    text-decoration: none;
    cursor: pointer;
}

a.wc-transcript:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: underline;
}

.wc-error-label {
    font-style: normal;
    font-size: 80%;
    margin-top: 4px;
    margin-bottom: 4px;
    background-color: #cc181e;
    color: #fff;
    border: 1px solid #fff;
    padding: 4px 8px;
}

input.wc-invalid {
    border: 1px solid #cc181e;
    background-color: #ffe2e2;
    color: #cc181e;
}

.wc-initiating form {
    margin-bottom: 40px;
}

.wc-email-input,
.wc-name-input {
    width: 100% !important;
    height: auto !important;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.wc-announcement,
.wc-progress,
.wc-welcome,
.wc-eta {
    font-size: 15.2px;
    color: white !important;
    margin: 0;
    padding: 0;
    background-color: rgb(0 55 104) !important;
    border-color: rgb(0 55 104) !important;
    margin-bottom: 5px;
}

.wc-eta {
    color: #fff;
    margin: 0;
    padding: 0;
}

.wc-dots {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 2px;
    background: #333;
    animation: 1.2s linear infinite wave;
}

    .wc-dots:nth-child(2) {
        animation-delay: -1.1s;
    }

    .wc-dots:nth-child(3) {
        animation-delay: -0.9s;
    }

@keyframes wave {
    0%, 100%, 60% {
        transform: initial;
    }

    30% {
        transform: translateY(-6px);
    }
}

.z-dialog-welcome {
    color: #fff;
}