﻿:root {
    --k-color-blueberry: #223048;
    --k-color-black: #000000;
}

::-webkit-scrollbar {
    width: 7px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #fff;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #efefef;
    border-radius: 5px;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #ccc;
    }

body {
    margin: 0;
    font-family: 'Roboto';
}

h2 {
    margin: 10px 0;
}

.hidden {
    display: none;
}

.conversation-box .row {
    width: fit-content;
    min-width: 100px;
    padding: 5px 7px;
    background-color: #efefef;
    clear: both;
    margin-bottom: 2px;
    max-width: 80%;
    overflow-wrap: break-word;
    font-size: 14px;
}

.conversation-box .image-attachment img, .conversation-box .row img {
    width: 100%;
}
.elm-middle {
    position: absolute;
    top: 50%;
    left: 50%;
}
.spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #c3080e;
    border-width: 2px 2px 0;
    -webkit-animation: spin .5s linear infinite;
    animation: spin .5s linear infinite;
}
.conversation-box .customer {
    text-align: right;
    float: right;
    border-radius: 5px 0 0 5px;
    background: linear-gradient(135deg, rgb(247, 39, 73), rgb(247, 131, 32));
    color: white;
    margin-left: auto;
}

.conversation-box .notification {
    clear: both;
    padding: 20px 0;
}
    .conversation-box .notification.fixed{
        order: 1;
    }

    .conversation-box .notification .button {
        display: block;
        color: white;
        background-color: #c3080e;
        font-size: 12px;
        margin-top: 10px;
        padding: 5px 15px;
        text-decoration: none;
        width: fit-content;
        border-radius: 5px;
    }
.conversation-box .bot ul{
    list-style: none;
    padding: 0;
    margin: 0
}
.conversation-box .bot .note{
    color: #555;
    font-size: 10px;
    margin: 8px 0 0;
}
.conversation-box .time{
    clear: both;
    font-size: 10px;
    color: #555;
    margin-bottom: 2px;
}
.conversation-box .customer + .time {
    text-align: right
}
.conversation-box .bot ul li:not(:last-child) {
    border-bottom: 1px solid #fff;
}
.conversation-box .chat-with-agent a {
    color: #CC2028;
    text-decoration: unset;
}
.conversation-box .bot ul li a {
    padding: 5px 0;
    display: block;
    color: #333;
    text-decoration: unset;
    transition: all .25s ease-in
}
.conversation-box .bot a:hover {
    color: #33508a;
}
.conversation-box .user, .conversation-box .bot {
    text-align: left;
    float: left;
    border-radius: 0 5px 5px 0;
}

.chat-header {
    background: linear-gradient(135deg, rgb(152, 3, 58) 0%, rgb(247, 79, 40) 100%);
    color: rgb(255, 255, 255);
    padding: 20px;
    position: relative;
}

    .chat-header .sub-title {
        font-size: 12px;
    }
        .chat-header .sub-title > div:not(:last-child) {
            margin-bottom: 10px;
        }
    .chat-header:after {
        content: "";
        position: absolute;
        width: 100%;
        bottom: -8px;
        left: 0;
        border-image-source: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNzIgMTUiPgogIDxwYXRoIGQ9Ik0zNDkuOCAxLjRDMzM0LjUuNCAzMTguNSAwIDMwMiAwaC0yLjVjLTkuMSAwLTE4LjQuMS0yNy44LjQtMzQuNSAxLTY4LjMgMy0xMDIuMyA0LjctMTQgLjUtMjggMS4yLTQxLjUgMS42Qzg0IDcuNyA0MS42IDUuMyAwIDIuMnY4LjRjNDEuNiAzIDg0IDUuMyAxMjguMiA0LjEgMTMuNS0uNCAyNy41LTEuMSA0MS41LTEuNiAzMy45LTEuNyA2Ny44LTMuNiAxMDIuMy00LjcgOS40LS4zIDE4LjctLjQgMjcuOC0uNGgyLjVjMTYuNSAwIDMyLjQuNCA0Ny44IDEuNCA4LjQuMyAxNS42LjcgMjIgMS4yVjIuMmMtNi41LS41LTEzLjgtLjUtMjIuMy0uOHoiIGZpbGw9IiNmZmYiLz4KPC9zdmc+Cg==);
        border-image-slice: 0 0 100%;
        border-image-width: 0 0 15px;
        border-image-repeat: stretch;
        border-bottom: 15px solid;
        border-top: 0px;
        border-left: 0px;
        border-right: 0px;
    }

#chat-form {
    margin: 20px;
}

form#chat-form input, form#chat-form select {
    width: 100%;
    margin-bottom: 20px;
    padding: 7px;
    border-radius: 0 5px;
    border: 1px solid #c3080e;
    outline: none;
}

    form#chat-form input:focus {
        border: 1px solid #c3080e;
    }

    form#chat-form input[type="submit"] {
        background: linear-gradient(135deg, rgb(152, 3, 58) 0%, rgb(247, 79, 40) 100%);
        color: rgb(255, 255, 255);
        padding: 10px;
        border-color: none;
        color: white;
        cursor: pointer;
    }
#send-text.loading button[type="submit"] svg {
    display: none;
}
#send-text.loading button[type="submit"]:after {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #c3080e;
    border-width: 2px 2px 0;
    -webkit-animation: spin .5s linear infinite; /* Safari */
    animation: spin .5s linear infinite;
}
#conversation .conversation-box {
    height: 280px;
    margin: 10px;
    padding: 10px 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

    #conversation .conversation-box .image-attachment {
        cursor: pointer;
    }

#conversation .message {
    position: fixed;
    bottom: 0;
    width: 100%;
}

    #conversation .message input {
        border: 0;
    }

#send-text {
    padding: 15px 5px;
    display: flex;
    border-top: 1px solid #ccc;
    margin: 0;
    background-color: #fff;
}

    #send-text input[name="sendtext"] {
        flex: auto;
        outline: none;
    }

    #send-text button {
        background-color: transparent;
        border: none;
        outline: none;
        cursor: pointer;
    }

.chat-header .logo {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

    .chat-header .logo img {
        max-width: 60%;
    }
.chat-header .nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}
    .chat-header .nav-icons .angle-down{
        font-size: 24px;
    }
    .chat-header .nav-icons > span {
        cursor: pointer;
    }

.main-menu {
    background-color: white;
    color: black;
    font-size: 13px;
    padding: 15px 10px;
    position: absolute;
    right: -15px;
    top: calc(100% + 15px);
    border: 1px solid red;
    z-index: 1;
}

    .main-menu ul {
        padding: 0;
        list-style: none;
        margin: 0;
    }

        .main-menu ul li { 
            padding: 10px;
            cursor: pointer;
        }

            .main-menu ul li:hover {
                background-color: #c3080e;
                color: white;
                border-radius: 5px;
            }

    .main-menu::after {
        content: "";
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid white;
        position: absolute;
        top: -6px;
        right: 15px;
    }

.rate-form {
    float: left;
    width: 100%;
    margin: 20px 0 5px;
    padding: 15px 0;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #efefef;
}

    .rate-form.rated {
        pointer-events: none;
        opacity: 0.7;
    }

    .rate-form .rate-title {
        font-size: 12px;
        margin: 0 0 10px;
        width: 100%;
        text-align: center;

    }

    .rate-form a {
        color: transparent;
        font-size: 20px;
        position: absolute;
        left: -10px;
        user-select: none;
    }

    .rate-form span {
        position: relative;
        width: 100px;
        height: 20px;
    }

    .rate-form a:after {
        font-family: 'fontawesome';
        color: #ccc;
    }

    .rate-form a:hover:after, .rate-form a.active:after {
        color: red;
    }

    .rate-form a:hover ~ a::after, .rate-form a.active ~ a:after {
        color: transparent;
    }

    .rate-form .star-5:after {
        content: '\f005\f005\f005\f005\f005';
    }

    .rate-form .star-4:after {
        content: '\f005\f005\f005\f005';
    }

    .rate-form .star-3:after {
        content: '\f005\f005\f005';
    }

    .rate-form .star-2:after {
        content: '\f005\f005';
    }

    .rate-form .star-1:after {
        content: '\f005';
    }

.rate-success {
    float: left;
    width: 100%;
    text-align: center;
    font-size: 10px;
    margin-bottom: 20px;
}

.rate-action button {
    border: none;
    flex: 1;
    margin: 0 10px;
    padding: 10px 0;
    outline: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.1s ease-in;
}

.rate-action {
    float: left;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin: 5px 0;
}

.action-end {
    background: linear-gradient(135deg,#98033a 0%,#f74f28 100%);
}

    .action-end:hover {
        opacity: 0.8;
    }

.action-cancel {
    background-color: #33508a;
}

    .action-cancel:hover {
        opacity: 0.8;
    }

.btn-uploadfile {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

input#btn-choose--attachment {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    opacity: 0;
}
#conversation .bot .disabled {
    cursor: not-allowed;
}
#conversation .conversation-box.loading{
    overflow: hidden;
}
    #conversation .conversation-box.loading:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        display: block;
        width: 100%;
        height: 100%;
        z-index: 1;
        background-color: #000;
        opacity: 0.1;
    }
/*.chat-wrapper .chat-header .logo img {
    max-width: 100%;
}*/
/* blueberry style */
.style--blueberry.chat-wrapper .chat-header .logo {
    align-items: center;
	padding: 16px 0;
}

.style--blueberry.chat-wrapper .chat-header .logo img {
    max-width: 40%;
}

.style--blueberry .chat-header {
    background: var(--k-color-blueberry);
}

.style--blueberry #chat-form input, .style--blueberry #chat-form select {
    border: 1px solid var(--k-color-blueberry);
}

    .style--blueberry #chat-form input[type=submit] {
        background: var(--k-color-blueberry);
        height: 37px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.style--blueberry .main-menu {
    border: 1px solid var(--k-color-blueberry);
}

    .style--blueberry .main-menu ul li:hover {
        background-color: var(--k-color-blueberry);
    }

.style--blueberry #conversation button[type=submit] svg {
    fill: var(--k-color-blueberry)
}

.style--blueberry .conversation-box .customer {
    background: var(--k-color-blueberry);
}

.style--blueberry #conversation .conversation-box {
    height: 225px
}

.style--blueberry #send-text {
    padding: 10px 5px;
}
    #queue i {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background-color: #34c300;
        display: inline-block;
    }
/* billyoh style */
.style--BillyOh .chat-wrapper .chat-header .logo {
    align-items: center
}

.style--BillyOh .chat-header {
    background: var(--k-color-black);
}

.style--BillyOh #chat-form input, .style--BillyOh #chat-form select {
    border: 1px solid var(--k-color-black);
}

    .style--BillyOh #chat-form input[type=submit] {
        background: var(--k-color-black);
        height: 37px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.style--BillyOh .main-menu {
    border: 1px solid var(--k-color-black);
}

    .style--BillyOh .main-menu ul li:hover {
        background-color: var(--k-color-black);
    }

.style--BillyOh #conversation button[type=submit] svg {
    fill: var(--k-color-black)
}

.style--BillyOh .conversation-box .customer {
    background: var(--k-color-black);
}

.style--BillyOh #conversation .conversation-box {
    height: 240px
}

.style--BillyOh #send-text {
    padding: 10px 5px;
}
.dot-bounce {
    display: flex;
    align-items: flex-end;
    font-size: 2rem;
    color: #CC2028;
    padding: 0 !important
}

    .dot-bounce span {
        display: inline-block;
        animation: bounce 0.6s infinite alternate;
    }

        .dot-bounce span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .dot-bounce span:nth-child(3) {
            animation-delay: 0.4s;
        }
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-15px);
    }
}