/* Global */
.chat__body h1,
.chat__body h2,
.chat__body h3,
.chat__body h4,
.chat__body h5,
.chat__body h6 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 5px 0 !important;
}

/* ===== Paragraph ===== */
.chat__body p {
    font-size: 14px !important;
    margin: 0 0 5px 0 !important;
}
/* ===== Lists ===== */
.chat__body ul,
.chat__body ol {
    padding-left: 24px !important;
    margin: 0 0 5px 0 !important;
}
.chat__body ul{
    list-style: disc !important;
}
.chat__body ol{
    list-style: numeric !important;
}
.chat__body li {
    margin: 0 0 5px 0 !important;
}
/* Global End */


.chat__launcher {
    position: fixed;
    background-color: #007bff; /* Blue */
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}
.chat__launcher::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 42%;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: #007bff;
}
.chat__launcher img{
    width: 70%;
    height: 100%;
}
.chat__launcher:hover{
    scale: 1.1;
}
.chat__popup {
    position: fixed;
    bottom: 100px;
    right: 25px;
    max-width: 370px;
    width: 90%;
    min-height: 300px;
    height:max-content;
    /* max-height: 65vh;
    height: 100%; */
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    font-family: 'Segoe UI', sans-serif;
    z-index: 1000;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat__popup svg:hover{
    fill: rgb(0, 105, 255) !important;
    stroke: rgb(0, 105, 255) ;
}
.chat__popup.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.chat__header {
    padding: 20px 20px 0;
    display: flex;
    flex-direction: column;
    row-gap: 40px;
}
.chat__top-bar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    row-gap: 20px;
    align-items: center;
}
.chat__home-screen p.chat__logo-text {
    color: #ffffff !important;
    font-size: 28px!important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 !important;
    word-break: break-all;
}
.chat__avatars {
    display: flex;
    max-width: 170px;
}
.chat__home-screen h2.chat__intro-title {
    font-size: 28px !important;
    line-height: 34px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 5px 0;
    font-family: "Open Sans", sans-serif !important;
}
.chat__home-screen p.chat__intro-text {
    font-size: 20px !important;
    line-height: normal !important;
    color: #ffffff !important;
    margin: 0 !important;
    word-break: break-all;
}
.chat__message-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin: 12px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}
.chat__message-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.chat__message-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
}
.chat__message-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 10px;
    position: relative;
}
.chat__message-left {
    display: flex;
    flex-direction: column;
    flex: 1;
    row-gap: 5px;
}
.chat__mini-avatars {
    display: flex;
    gap: 4px;
}
.chat__avatar--small {
    width: 24px;
    height: 24px;
    background: #33691e;
    color: white;
    font-size: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat__email-wrap{
    border: 0 !important;
    padding: 0 !important;
    position: relative;
}
.chat__home-screen .chat__message-info p {
    margin: 0;
    font-size: 16px !important;
    color: #000000 !important;
}
.chat__message-info small {
    color: gray;
    font-size: 12px;
}
.chat__arrow {
    font-size: 20px;
    cursor: pointer;
}
.chat__arrow--green {
    color: rgb(0, 105, 255);
    display: flex;
    justify-content: center;
    align-items: center;
}
.chat__message-card:hover .chat__arrow svg g {
    color: #33691e;
    fill: #33691e;
}
.chat__tabs {
    display: flex;
    border-top: 1px solid #ddd;
    background: #fff;
    height: 60px;
    margin-top: auto;
}
.chat__tab {
    flex: 1;
    text-align: center;
    font-size: 12px;
    padding: 5px;
    color: #888;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.chat__tab p{
    margin: 0;
}
.chat__tab:hover p,
.chat__tab:hover svg{
    fill: rgb(0, 105, 255);
    color: rgb(0, 105, 255);
    stroke: transparent !important;
}
.chat__tab--active p{
    color: rgb(0, 105, 255);
}
.chat__home-screen{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* height: 100%; */
    overflow: hidden;
    background: linear-gradient(to bottom, rgb(0, 105, 255) 30%, #ffffff 80%, #ffffff 100%);
}
.chat__screen{
    /* position: absolute; */
    flex:1;
    width: 50%;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1;
    opacity: 1;
    transform: translateX(0%);
    visibility: visible;
}
.chat__hidden{
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
    visibility: hidden;
    z-index: 0;
}
.chat__message-screen--hidden {
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    visibility: hidden;
    z-index: 0;
}
.chat__message-screen {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}
.chat__topbar {
    padding: 10px 15px;
    background: #f6f8fc;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.chat__topbar-icons{
    display: flex;
    gap: 10px;
}
.chat__back-btn {
    font-size: 20px;
    cursor: pointer;
    color: rgb(0, 105, 255);
}
.chat__topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat__close-btn{
    cursor: pointer;
}
.chat__user-icon {
    background-color:rgb(0, 105, 255);
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat__user-icon img{
    max-width: 70%;
}
.chat__user-icon p{
    margin: 0;
}
.chat__user-details {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}
.chat__topbar .chat__user-name {
    font-weight: bold !important;
    font-size: 14px !important;
    color: #000000 !important;
}
.chat__user-status {
    color: gray;
    font-size: 11px;
}
.chat__body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    max-height:200px;
    flex-direction: column;
    gap: 10px;
}
.chat__body::-webkit-scrollbar {
    width: 5px;
}
/* Track */
.chat__body::-webkit-scrollbar-track {
    background: transparent !important;
}
.chat__body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}
.chat__message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}
.chat__message--bot .chat__bubble {
    background: oklch(88.2% 0.059 254.128);
    color: #000;
    align-self: flex-start;
    border-radius: 15px 15px 15px 0;
}
.chat__message--user {
    align-self: flex-end;
    text-align: right;
}
.chat__message--user .chat__bubble {
    background: oklch(0.924 0.022 254.397);
    color: #000;
    align-self: flex-end;
    border-radius: 15px 15px 0 15px;
}
.chat__bubble {
    padding: 10px 15px;
    font-size: 14px;
    width: auto;
    word-wrap: break-word !important;
}
.chat__time {
    font-size: 10px;
    margin-top: 5px;
    color: gray;
}
.chat__input-area {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    background: #fff;
}
.chat__input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 12px;
    min-width: 100px;
    width: 100%;
    color: #000000;
}
.chat__input-email {
    flex: 1;
    padding: 10px 40px 10px 15px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 12px;
    min-width: 100px;
    width: 100%;
    color: #000000;
}
.chat__input:focus-visible {
    outline: rgb(0, 105, 255) auto 1px;
}
.chat__input-email:focus-visible{
    outline: rgb(0, 105, 255) auto 1px !important;
}
.chat__file-send-buttons {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}
.chat__file-send-buttons svg:hover{
    stroke: transparent !important;
}
.chat__file-icon,
.chat__send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.chat__popup--expanded {
    max-width: 500px !important;
    width: 90% !important;
    /* max-height: 85vh !important; */
    /* height: 100% !important; */
    transition: all 0.3s ease-out !important;
}
.chat__back-btn,
.chat__expand-btn,
.chat__close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat__expand-btn {
    cursor: pointer;
}
.chat__expand-btn svg:nth-child(1){
    display: none;
}
.chat__popup--expanded .chat__expand-btn svg:nth-child(1){
    display: block;
}
.chat__popup--expanded .chat__expand-btn svg:nth-child(2){
    display: none;
}
.chat__popup--default {
    max-width: 370px;
    width: 90%;
    min-height:300px;
    height: max-content;
    bottom: 100px !important;
    right: 25px !important;
    border-radius: 18px !important;
    transition: all 0.3s ease-in !important;
}
.cta-button{
    color: blue;
    transition: 0.3s;
    font-size: 14px;
}
.cta-button:hover{
    text-decoration: underline;
}
@media screen and (max-width: 500px) {
    .chat__popup--expanded {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 100vh !important;
        height: 100% !important;
        bottom: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
        transition: all 0.3s ease-out !important;
    }
    .chat__popup--expanded .chat__message-screen{
        border-radius: 0;
    }
    .chat__popup{
        /* max-height: 50vh; */
    }
}
/* Loader spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #ccc;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.chat__loader {
    margin: 8px 0;
}



.powerdby-text {
    font-size:10px;
    color:#333;
    text-align:right;
    margin: 0px 18px 5px;
}
.powerdby-text a {
    color:#007bff;
    text-decoration:underline;
}


.chat__header_container {
    flex: 1;
    overflow: auto;
}

.chat_slider {
    display: flex;
    width: 200%;
    height: 100%;
    overflow: hidden;
    position: relative;
    flex-direction: row;
    transition: transform 0.4s ease;
}

.chat__popup.chat_slider_activate .chat_slider {
    transform: translateX(-50%);
}

.chat__message_area {
    margin-top: auto;
}