:root {
    --primary: #ec791d;
    --primary-forground: #f3f2f7;
    --secondary: #e1e1e1;


    --dark-primary: #ec791d;
    --dark-primary-forground: #242426;
    --dark-secondary: #444446;
}

html,
body {
    height: 100%;
    font-family: "Inter", sans-serif;
}

body {
    background: transparent !important;
    background-color: transparent !important;

}

#center-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;

}

#chat-circle {
    position: fixed;
    bottom: 50px;
    right: 50px;
    /* background: var(--primary); */
    width: 123px;
    color: white;
    cursor: pointer;
    overflow: visible;
}


.btn#my-btn {
    background: white;
    padding-top: 13px;
    padding-bottom: 12px;
    border-radius: 45px;
    padding-right: 40px;
    padding-left: 40px;
    color: #5865C3;
}

#chat-overlay {
    background: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: none;
}


.chat-box {
    display: none;
    /* background: #F2F2F7; */
    background: var(--primary-forground);
    position: fixed;
    right: 30px;
    bottom: 50px;
    width: 338px;
    max-height: 100vh;
    border-radius: 5px;
    /*   box-shadow: 0px 5px 35px 9px #464a92; */
    box-shadow: 0px 5px 35px 9px #ccc;

}

.chat-box.dark {
    background: var(--dark-primary-forground);
}

.chat-box.full-screen {
    width: 100vw;
    height: 100vh;
    max-width: 1440px;
    border-radius: 0px;
    box-shadow: none;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

.chat-box.full-screen .chat-box-body {
    height: calc(100% - 150px);
}

.chat-box.full-screen .chat-logs {
    height: calc(100% - 100px);
}

.chat-box.full-screen .chat-box-header {
    border-radius: 0px;
}

.chat-box.full-screen .material-icons {
    font-size: 36px;
}






.chat-box-toggle {
    float: right;
    cursor: pointer;
    color: black !important;
    padding-right: 10px;
}

.chat-box-header {
    /* background: #F2F2F7; */
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    color: white;
    text-align: center;
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0px 6px;

    /* bottom sahdow */
    border-bottom: 1px solid #ccc;
}

.chat-box-header .c.c1.icon {
    max-width: 72px;
    height: 60px;
    width: 72px;
    background-image: url('/assets/logo-CoXmSULH.webp');
    background-size: 72px;

}

.chat-box.dark .chat-box-header .c.c1.icon {
    max-width: 72px;
    height: 60px;
    width: 72px;
    background-image: url('/assets/dark-logo.webp');
    background-size: 72px;

}

.chat-box-header .c.c1.icon img {
    max-width: 100%;
}

.chat-box-header .c.c2.header-icons {
    display: flex;
    gap: 6px;
}

.chat-box-header .material-icons {
    font-size: 28px;
    cursor: pointer;
    color:black;
    opacity: 1;
}

.chat-box-header .material-icons:hover {
    color: #151414;
}



.chat-box.dark .chat-box-header .material-icons {
    color: rgb(215, 212, 212) !important;
}

.chat-box.dark .chat-box-header .material-icons:hover {
    color: #5f5858 !important;
}



.chat-box-body {
    position: relative;
    height: 350px;
    overflow: hidden;
    /* background-color: #F2F2F7; */
    padding: 8px 10px;
    font-size: clamp(10px, calc(1vw + 15px), 16px);
}

.chat-box.full-screen .chat-box-body {
    /* font-size: clamp(1em, 1em, 3.2em); */

}



#chat-input {
    background: var(--secondary);
    width: 100%;
    position: relative;
    height: 40px;
    padding: 12px 16px;
    resize: none;
    outline: none;
    color: #2D2D2F;
    border: 1px solid #ccc;
    border-radius: 50px;
    overflow: hidden;
}

.chat-box.dark #chat-input {
    background: var(--dark-secondary);
    color: white;
}

.chat-box.full-screen #chat-input {
    height: 60px;
}



.chat-input>form {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    padding: 12px 12px;
    gap: 3px;
}

#chat-input::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: #999595;
}

#chat-input::-moz-placeholder {
    /* Firefox 19+ */
    color: #999595;
}

#chat-input:-ms-input-placeholder {
    /* IE 10+ */
    color: #999595;
}

#chat-input:-moz-placeholder {
    /* Firefox 18- */
    color: #999595;
}

.chat-submit {
    /* position:absolute;
    bottom:3px;
    right:10px; */
    cursor: pointer;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 50%;
    color: #ec791d;
    position: relative;
    top: 3px;
}

.chat-logs {
    padding-bottom: 30px !important;
    height: 340px;
    overflow-y: scroll;
    scroll-behavior: smooth;
    padding: 0px 5px;
    width: 100%;
}

.chat-logs::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.chat-logs::-webkit-scrollbar {
    width: 5px;
    background-color: #F5F5F5;
}

.chat-logs::-webkit-scrollbar-thumb {
    background-color: #ec791d;
}

.scroll {
    overflow: auto;
    float: left;

}

.scroll::-webkit-scrollbar {
    width: 10px;
    max-height: 40px !important;
    height: 40px !important;
}

.scroll::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 20px;

}

.scroll::-webkit-scrollbar-track {
    background: #ddd;
    border-radius: 20px;
}

.icon-plus {
    min-width: 32px;
    height: 32px;
}

.icon-send {
    min-width: 32px;
    height: 32px;
}

@media only screen and (max-width: 500px) {
    .chat-logs {
        height: 40vh;
    }

    .chat-box {
        right: 0px !important;
        width: 95%;
    }
}



.chat-msg.user>.msg-avatar img {
    max-width: 45px;
    height: 45px;
    border-radius: 50%;
    float: left;
    background-color: white;
    border-radius: 50%;
}

.chat-msg.self>.msg-avatar img {
    max-width: 45px;
    background-color: white;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    float: right;
    width: 15%;
}

.cm-msg-text {
    background: var(--secondary);
    padding: 10px 15px 10px 15px;
    color: #242426;

    font-weight: 400;
    text-align: left;

    max-width: 78%;
    margin-left: 10px;
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px;
    border-bottom-left-radius: 0px;
    white-space: break-spaces;
    word-break: break-word;
}

.chat-box.dark .cm-msg-text {
    background: var(--dark-secondary);
    color: white;
}

.cm-msg-text.error {
    background: #f8d7da !important;
    color: #721c24 !important;

}

.chat-msg.self {
    display: flex !important;
    justify-content: flex-end;
}

.chat-msg.user {
    display: flex !important;
    justify-content: flex-start;
}

.chat-msg.self>.cm-msg-text {
    justify-self: start;
    background: #ec791d;
    color: white;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 0px;

}

.cm-msg-button>ul>li {
    list-style: none;
    float: left;
    width: 50%;
}

.cm-msg-button {
    clear: both;
    margin-bottom: 70px;
}

#chat-circle .icon-content {
    background-color: transparent !important;
    width: max-content;
    height: max-content;

}

#chat-circle img {
    filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.4));
    width: 115%;
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;  /* Preferred icon size /
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  / Support for all WebKit browsers. /
  -webkit-font-smoothing: antialiased;
  / Support for Safari and Chrome. /
  text-rendering: optimizeLegibility;

  / Support for Firefox. /
  -moz-osx-font-smoothing: grayscale;

  / Support for IE. */
  font-feature-settings: 'liga';
}