
.search-result-chat {
    float: left;
    position: relative;
    width: 100%;
}

.ui_user {
    max-width: 40px;
    margin-bottom: -15px;
    margin-left: 5px;
}

.ai_user {
    max-width: 40px;
    margin-bottom: -15px;
    margin-right: 5px;
}

.subloader { display: inline-block; width:7px; height: 7px; border-radius: 5px; background: #2595E0; margin: 2px;}

.search-result-chat .loader { bottom: 5px; position: static; display: inline-block;}

.powered_by_wrap {
    position: relative;
}

.sidebar_wrap { width: 20%; float: left;}
.products_wrap { width: 75%; float: left;}
.sidebar_item li{ list-style: circle inside; padding: 3px 5px; }
.sidebar_item strong {padding: 5px;
    background: lightgray;
    width: 70%;
    display: inline-block;}
.sidebar_wrap ul {
    margin: 0; padding: 0;
}

.powered_by {
    position: absolute;
    top: -30px;
    z-index: 2;
    right: 33%;
    font-size: 11px;
}
.chatbox {
    width: 350px;
    height: 500px;
    background-color: #FFF;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease-in-out;
}
.chat-product {
    float: left;
    width: 100%;
    margin: 10px 0 0;
    background: #fff;
    border-radius: 5px;
}
.chat-product-image {
    float: left;
    width: 20%;
    margin: 5px;
}
.chat-product-title {
    float: left;
    width: 70%;
    margin: 5px;
}
.search-result-chat-products .chat-product-title {
    float: left;
    width: 90%;
    margin: 5px;
}
.message.notice {
    clear:both
}
.chat-product-title a {
    text-decoration:none;
}
.chat-product-title strong {
    color: darkblue;
    width: 100%;
    float: left;
}

.block-search input {
    font-size: 16px;
    margin: -30px 0;
    position: absolute;
}
.prehelp {
    background-color: #F2F2F2;
    color: #333;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    border:1px solid #2595E0;
    float: right;
    clear: both;
}
.clear5px {
    clear: both;
    height: 5px;
}
.clear10px {
    clear: both;
    height: 10px;
}

.clear20px {
    clear: both;
    height: 20px;
}
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2595E0;
    color: #FFF;
    padding: 10px 20px;
}
.title {
    font-size: 20px;
}
img.emoji {
    max-width: 25px
}
.beta {
    font-size: 10px;
    color:red;
    background:#fff;
    display:inline-block;
    padding: 2px;
    margin: 0 5px;
    border-radius:3px;
}
.close-btn {
    background-color: transparent;
    border: none;
    color: #FFF;
    font-size: 25px;
    cursor: pointer;
}
.close-btn:focus {
    outline: none;
}

.scroll-to-bottom {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999;
    background: #2595E0;
    padding: 5px;
    border-radius: 5px;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff; /* Adjust color as needed */
    cursor: pointer;
}

.search-result-chat-products .toolbar .pages {display: block; float: left; margin: 0;}
.page-products .search-result-chat-products .toolbar .limiter {display: block; float: right;}
.search-result-chat-products .toolbar { margin: 0; position: relative !important;}
.loader {
    width: 30px;
    position: absolute;
    right: 50%;
    bottom: 73px;
    aspect-ratio: 2;
    --_g: no-repeat radial-gradient(circle closest-side,#2595E0 90%,#0000);
    background:
            var(--_g) 0%   50%,
            var(--_g) 50%  50%,
            var(--_g) 100% 50%;
    background-size: calc(100%/3) 50%;
    animation: l3 1s infinite linear;
}
@keyframes l3 {
    20%{background-position:0%   0%, 50%  50%,100%  50%}
    40%{background-position:0% 100%, 50%   0%,100%  50%}
    60%{background-position:0%  50%, 50% 100%,100%   0%}
    80%{background-position:0%  50%, 50%  50%,100% 100%}
}


.chatlog {
    height: 320px;
    padding: 20px;
    overflow-y: scroll;
    scrollbar-width: none;
    border-bottom: 20px solid white;
}
.chatlog::-webkit-scrollbar {
    display: none;
}
.customer-msg {
    background-color: #F2F2F2;
    color: #333;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    float:right;
    clear: both;
    text-align: right;
}
.assistant-msg {
    background-color: #FFF;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    float:left;
    border: 1px solid #F2F2F2;
    clear: both;
}
.assistant-msg span { font-weight: bold; font-size: 12px;}
.customer-msg span { font-weight: bold; font-size: 12px;}
.chat-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
    padding: 20px;
    background-color: #EEE;
}
.chat-input input[type="text"] {
    width: 75%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    outline: none;
}
.chat-input button {
    width: 25%;
    height: 40px;
    background-color: #2595E0;
    color: #FFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
/* Hide chatbox by default */
.chatbox {
    display: none;
}
.hidden {
    display: none;
}
/* Show chatbox when button is clicked */
.chatbox.show {
    display: block;
    transform: translateX(0px);
}
#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2595E0;
    color: #FFF;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display:none;
}
#chat-button:focus {
    outline: none;
}
#chat-button-search {
    position: absolute;
    bottom: 44px;
    right: 65px;
    color: #FFF;
    border: none;
    cursor: pointer;
    z-index: 999;
    max-width: 40px;
}
.search-result-chat .chat-product {
    width:23%;
    border-radius: 0px;
    margin-right:5px;
    border: 1px solid #FFF;
    min-height: 350px;
}
.chat-product-title a.chat-view-product {
    color: #fff;
    background: #1979c3;
    padding: 7px 15px;
    font-weight: 600;
    height: auto;
    margin-top: 10px;
    border: 1px solid #1979c3;
    float: left;
}
.continue-chat {
    background-color: #2595E0;
    color: #FFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    float: left;
    padding: 5px;
}
.search-result-chat .chat-product-title a.chat-view-product {
    color: #fff;
    background: #1979c3;
    padding: 7px 15px;
    font-weight: 600;
    height: auto;
    margin-top: 10px;
    border: 1px solid #1979c3;
}
.search-result-chat .chat-product:hover{
    box-shadow: 3px 4px 4px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid #bbbbbb;
}


.search-result-chat-products { width: 100%;
    float: left;}

.search-result-chat-products .chat-product {
    width:22%;
    border-radius: 0px;
    margin-right:5px;
    border: 4px solid #FFF;
    min-height: 350px;
}

.related-products .chat-product {
    width:16%;
    border-radius: 0px;
    margin-right:5px;
    border: 1px solid #FFF;
    min-height: 350px;
}

.related-products .chat-product-image { width: 100%}

.search-result-chat-products a.chat-view-product {
    color: #fff;
    background: #1979c3;
    padding: 7px 15px;
    font-weight: 600;
    height: auto;
    margin-top: 10px;
    border: 1px solid #1979c3;
    float: left;
}

.search-result-chat-products .chat-product-title a.chat-view-product {
    color: #fff;
    background: #1979c3;
    padding: 7px 15px;
    font-weight: 600;
    height: auto;
    margin-top: 10px;
    border: 1px solid #1979c3;
}
.search-result-chat-products .chat-product:hover{
    box-shadow: 3px 4px 4px 0 rgba(0, 0, 0, 0.3);
}
.search-result-chat-products .chat-product-image {
    width: 90%;
    margin: 0 auto;
    float: none;
}
.search-product-wrap { width: 100%; float: left;}

.assistant-msg-search {
    width:100%;
    float:left;
    margin-top:10px;
    margin-bottom:20px;
    font-size: 16px;
}
.search-result-chat .chat-product-image {
    width:90%;
    margin:0 auto;
    float:none
}
.search-result-chat .chat-product-title a {
    display:inline-block;
    height:50px;
    color:#333333
}
.search-result-chat .chat-product-title strong {
    color:#333333
}
.page-wrapper .block-search {
    margin:15px 0 0 150px;
    float:left;
    width:500px
}
.switcher-dropdown {
    z-index:2000
}


.search-result-chat-products .chat-product.selected-search { border: 4px dotted #2595E0}


.search-product-wrap .chat-product-title { width: 90%; height: 150px}

.minicart-wrapper {
    margin-top:15px;
}
.newmessage {
    position: absolute;
    background: red;
    color: #fff;
    right: 52px;
    bottom: 58px;
    z-index: 1000;
    border-radius: 10px;
    display: block;
    height: 20px;
    width: 20px;
    font-size: 12px;
    text-align: center;
    line-height: 19px;
    cursor: pointer;
}
@media only screen and (max-width: 600px) {
    a.logo img {
        max-width: 80%
    }
    .search-result-chat-products .chat-product { width: 46%; margin: 0;}
    .search-result-chat .chat-product {
        width: 47%
    }
    .block-search input {
        left: 0;
    }
    .block-search .label.active + .control input {
        position: absolute;
    }
    .block-search {
        width: auto;
        margin: 50px 0 45px;
    }
    .block-search .label {
        position: absolute;
        z-index: 10000;
        bottom: 0;
        right: 0;
    }
    .block-search .control {
        border: 0;
    }
    .powered_by {
        top: 2px;
        right: -2%;
    }
    .assistant-msg-search {
        font-size: 15px;
    }
    .search-autocomplete {
        left: 0;
        bottom: -65px
    }
}
/* Animation for opening the chatbox */
@keyframes slideIn {
    from {
        transform: translateX(400px);
    }
    to {
        transform: translateX(0px);
    }
}
/* Animation for closing the chatbox */
@keyframes slideOut {
    from {
        transform: translateX(0px);
    }
    to {
        transform: translateX(400px);
    }
}
.loadingchat {
    max-width: 50px;
    margin: 0 auto;
    display: block;
    clear:both
}

.wrap_load {
    width: 60px;
    margin: 0 auto;
}

.lds-ripple {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 60px;
}
.lds-ripple div {
    position: absolute;
    border: 4px solid #2595E0;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}
@keyframes lds-ripple {
    0% {
        top: 26px;
        left: 26px;
        width: 0;
        height: 0;
        opacity: 0;
    }
    4.9% {
        top: 26px;
        left: 26px;
        width: 0;
        height: 0;
        opacity: 0;
    }
    5% {
        top: 26px;
        left: 26px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 0px;
        left: 0px;
        width: 52px;
        height: 52px;
        opacity: 0;
    }
}