﻿/*#region fonts*/

@font-face {
    font-family: 'Barlow';
    font-weight: 900;
    src: url('barlow/Barlow-Black.ttf') format('truetype');
}

@font-face {
    font-family: 'Barlow';
    font-weight: 800;
    src: url('barlow/Barlow-ExtraBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Barlow';
    font-weight: 700;
    src: url('barlow/Barlow-Bold.ttf') format('truetype');
}
/*#endregion fonts*/

#chatbot-container {
    z-index: 1000;
    position: fixed;
    left: 30px;
    bottom: 50px;
    width: 104px;
    height: 109px;
    /* right: 0; */
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;

    /* background-image: linear-gradient(to top, rgba(0,0,0,0.2), rgba(0,0,0,0) 100%); */
}
@media(max-width:767px){
	.chatbox-show #chatbot-container {
		width: 100% !important;
		height: 100% !important;
		right: 0;
		top: 0;
		z-index:99999;
	}
    #chatbot-container{left:auto;right:30px;}
}

    #chatbot-container * {
        outline: none;
    }

    #chatbot-container > button {
        width: 104px;
        height: 109px;
        border-radius: 50%;
        border-style: none;
        background: url(chatbot-bg-new.png) no-repeat center;
       
    
        position: relative;
    }

        #chatbot-container > button > * {
            display: none;
        }

        #chatbot-container > button.chatbox-show {
            overflow: hidden;
        }

            #chatbot-container > button.chatbox-show > svg:first-child {
                display: inline;
            }

        #chatbot-container > button:not(.chatbox-show) > .animated-logo {
            display: inline;
        }

    #chatbot-container button,
    #chatbot-container .link-btn {
        cursor: pointer;
        text-align: center;
        color: white;
    }

    #chatbot-container p {
        font-size: 14px;
        color: #464646;
    }

.chatbox-show {
    overflow: hidden;
}

.respond-image {
    width: 100%;
    border-radius: 5px;
    margin: 10px 0;
    background-position: center top;
    background-size: cover;
    height: 90px;
}

.chatbot-name {
    color: white;
    text-shadow: 0 0 3px black;
    font-weight: 900;
    font-size: 18px;
    position: absolute;
    bottom: 7px;
    display: block;
    text-align: center;
    width: 100%;
}


#chatbox {
    margin-bottom: 0px;
    width: auto;
    position: absolute;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 10px 1px;
    border-radius: 5px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

    #chatbox > * {
        flex-shrink: 0;
    }

    #chatbox::after {
        display: block;
        content: ' ';
        background-color: white;
        position: absolute;
        left: 15px;
        bottom: -10px;
        height: 10px;
        width: 10px;
        border-bottom-right-radius: 100%;
        box-shadow: rgba(0, 0, 0, 0.5) 0px 4px 10px 0.1px;
    }


#chat-header {
    border-radius: 0;
    background-image: linear-gradient(to top, rgba(35, 35, 35, 0), rgba(35, 35, 35, 0.3) 22px, #02163a 22px);
    height: 70px;
    position: relative;
    box-sizing: border-box;
    padding: 12px 22px;
    margin-bottom: -22px;
    overflow: visible;
    z-index: 1;
}

    #chat-header > svg {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    #chat-header:before {
        content: 'ASlı\'yla Konuş';
        color: white;
        font-size: 16px;
        font-weight: 800;
        font-family: 'Barlow';
        line-height: 24px;
        margin-left: -2px;
    }

    #chat-header:after {
        content: ' ';
        float: right;
        transform: rotateZ(135deg);
        cursor: pointer;
        border: solid 3px white;
        width: 9px;
        height: 9px;
        border-left: none;
        border-bottom: none;
    }

/*#region textContianer*/

#text-container {
    background-color: white;
    position: relative;
    overflow-y: scroll;
    /*height: calc(100% - 55px - 70px);*/
    flex-shrink: 1;
    flex-grow: 1;
}

    #text-container::-webkit-scrollbar {
        width: 8px;
        right: 10px;
    }

    #text-container::-webkit-scrollbar-thumb {
        border-radius: 4px;
        background-color: #8691a7;
    }

    #text-container > * {
        margin: 5px 10px;
        clear: both;
        display: inline-block;
    }

        #text-container > *:last-child {
            margin-bottom: 20px;
        }

    #text-container > p {
        border-radius: 15px;
        padding: 5px 15px;
        font-size: 14px;
        word-break: break-word;
    }

        #text-container > p.text-bot {
            border-radius: 15px;
            padding: 5px 15px;
            float: left;
            background-color: #e8e8e8;
            color: #464646;
        }

        #text-container > p.text-customer {
            border-radius: 15px;
            padding: 5px 15px;
            float: right;
            background-color: #2383c1;
            color: white;
        }

/*#endregion textContianer*/

/*#region respond-with-button*/

.respond-with-button {
    padding: 12px;
    min-width: 80%;
    max-width: 85%;
}

    .respond-with-button > h5 {
        font-weight: 700;
        margin: 0;
        font-size: inherit;
        color: #02163a;
    }

    .respond-with-button > button,
    .respond-with-button > .link-btn {
        height: 32px;
        line-height: 32px;
        border-radius: 16px;
        width: 100%;
        border: none;
    }

    .respond-with-button svg {
        margin-right: 5px;
        vertical-align: -2px;
    }

    .respond-with-button > .respond-with-button-dark {
        border: none;
        margin-top: 10px;
        padding: 20px;
    }

.respond-with-button-light > p > a {
    font-size: inherit;
    font-weight: 700;
    color: inherit;
}

.respond-with-button-light > button {
    background-color: white;
    color: #415173 !important;
    border: solid 1px #415273;
    font-size: 12px;
}

/*#endregion respond-with-button*/

.respond-with-button-dark {
    border: solid 1px #8691a7;
    border-radius: 5px;
    background-color: #e9ebf0;
    font-size: 14px;
}

    .respond-with-button-dark > p {
        margin: 10px 0;
        display: flex;
    }

    .respond-with-button-dark > button,
    .respond-with-button-dark > .link-btn {
        margin-top: 10px;
        font-weight: 700;
        background-color: #02163a;
    }


.respond-selected-option {
}

.chatbot-select-list {
    padding: 12px;
    font-size: 14px;
    max-width: 85%;
}

    .chatbot-select-list > p {
        color: #464646;
    }

    .chatbot-select-list > h5 {
        font-weight: 700;
        margin: 0;
        margin-top: 10px;
        font-size: inherit;
    }

.chatbot-option {
    border-radius: 5px;
    background-color: #e9ebf0;
    margin-top: 10px;
}

    .chatbot-option > div.respond-image {
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
        height: 120px;
        margin: 0;
    }

    .chatbot-option > div.chatbot-option-content {
        padding: 12px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }

        .chatbot-option > div.chatbot-option-content > div > span:first-child {
            display: block;
            margin-right: auto;
        }

        .chatbot-option > div.chatbot-option-content > div > svg {
            margin-right: 5px;
            vertical-align: -1px;
        }

        .chatbot-option > div.chatbot-option-content > button {
            border-radius: 100%;
            width: 35px;
            height: 35px;
            border: solid 1px #bbc0cc;
            background-color: transparent;
            flex-shrink: 0;
            margin-left: auto;
        }


#sticky-content {
    /*position: sticky;
    position: -webkit-sticky;
    bottom: 0;
    left: 0;*/
    position: relative;
    width: 100%;
    margin: 0;
    background-color: white;
}

    #sticky-content > .sticky-film {
        display: block;
        width: 100%;
        height: 20px;
        position: absolute;
        left: 0;
        top: -20px;
        background-image: linear-gradient(to top, rgba(35, 35, 35, 0.1), rgba(35, 35, 35, 0) 100%);
    }

#chatbot-spinner {
    position: absolute;
    left: 0;
    top: -20px;
    width: 100%;
    text-align: center;
    margin: 0;
    font-size: 0;
}

    #chatbot-spinner > div {
        display: inline-block;
        width: 6px;
        height: 6px;
        background-color: #2383c1;
        border-radius: 100%;
        margin: 5px 5px;
    }

#button-group {
    /*background-image: linear-gradient(to bottom, white 15px, #dbdce1 15px);*/
    height: 55px;
    width: 100%;
    padding: 2px 10px;
    box-sizing: border-box;
    position: relative;
    background-color: #dbdce1;
}

    #button-group button {
        background-color: #425274;
        border: none;
        border-radius: 4px;
        min-height: 27px;
        flex-grow: 1;
        display: inline-block;
        white-space: nowrap;
    }

    #button-group > button {
        border-radius: 100%;
        border: solid 3px #dbdce1;
        position: absolute;
        width: 28px;
        height: 28px;
        top: -15px;
        margin: 0;
        padding: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    #button-group > #button-container {
        height: 100%;
        width: 100%;
        text-align: center;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        position: relative;
        overflow-y: hidden;
        overflow-x: scroll;
    }

        #button-group > #button-container > button:first-child ~ button {
            margin-left: 10px;
        }


#input-container {
    height: 55px;
    display: flex;
    border-radius: 0;
    overflow: hidden;
    z-index: 1;
}

    #input-container > * {
        height: 100%;
        border: none;
    }

    #input-container > input {
        flex-grow: 1;
        font-size: 13px;
        padding: 0 20px;
        color: #8691a7;
    }

    #input-container > button {
        background-color: #8691a7;
        color: white;
        font-size: 10px;
    }


/*#region animated-logo*/

.animated-logo {
    width: 54px;
    height: 54px;
}

    .animated-logo,
    .animated-logo *:not(span) {
        position: absolute;
        transform: translate(-50%, -50%);
        left: 50%;
        top: 50%;
        border-radius: 50%;
        background-color: white;
        margin-top: 0.5px;
        margin-left: 0.5px;
    }

        .animated-logo > div:nth-child(1) {
            width: 50px;
            height: 50px;
            background-color: #425375;
        }

            .animated-logo > div:nth-child(1) ~ div {
                animation-iteration-count: infinite;
                animation-name: chatbot-pulse;
                animation-timing-function: linear;
            }

        .animated-logo > div:nth-child(2) {
            width: 40px;
            height: 40px;
            opacity: 0.2;
            animation-duration: 6s !important;
            animation-delay: 0s !important;
        }

        .animated-logo > div:nth-child(3) {
            width: 30px;
            height: 30px;
            opacity: 0.4;
            animation-duration: 9s !important;
            animation-delay: 6s !important;
        }

        .animated-logo > div:nth-child(4) {
            width: 20px;
            height: 20px;
            opacity: 0.6;
            animation-duration: 9s !important;
            animation-delay: 8s !important;
        }

        .animated-logo.speaking > div:nth-child(2),
        button > .animated-logo:hover > div:nth-child(2) {
            animation-duration: 3s !important;
            animation-delay: 0s !important;
        }

        .animated-logo.speaking > div:nth-child(3),
        button > .animated-logo:hover > div:nth-child(3) {
            animation-duration: 1s !important;
            animation-delay: .3s !important;
        }

        .animated-logo.speaking > div:nth-child(4),
        button > .animated-logo:hover > div:nth-child(4) {
            animation-duration: 1s !important;
            animation-delay: 0s !important;
        }

        .animated-logo.thinking > div:nth-child(2) {
            animation-duration: 5s !important;
            animation-delay: 0s !important;
        }

        .animated-logo.thinking > div:nth-child(3) {
            animation-duration: 5s !important;
            animation-delay: 1.5s !important;
        }

        .animated-logo.thinking > div:nth-child(4) {
            animation-duration: 5s !important;
            animation-delay: 2.5s !important;
        }

@keyframes chatbot-pulse {
    0% {
        width: 74%;
        height: 74%;
    }

    50% {
        width: 20%;
        height: 20%;
    }

    100% {
        width: 74%;
        height: 74%;
    }
}

/*#endregion animated-logo*/

.ps__rail-x {
    opacity: 0.6;
    background-color: transparent !important;
}

@media (min-width: 576px) {
    #chatbot-container {
        width: auto;
        height: auto;
        justify-content: flex-start;
    }

    #chat-header {
        border-radius: 5px 5px 0 0;
    }

    #chatbox {
        margin-bottom: 90px;
        width: 320px;
        height: auto;
        position: relative;
    }

    #text-container {
        min-height: 200px;
        max-height: 350px;
        height: auto;
    }

    #input-container {
        border-radius: 0 0 5px 5px;
    }

    .chatbox-show {
        overflow: auto;
    }
}

@media (min-width: 768px) {
}

@media (min-width: 992px) {
}

@media (min-width: 1200px) {
}
