 .chat-input-wrapper {
    position: fixed;
    width: 100%;
    padding: 10px;
    bottom: 0px;
}

.chat-input {
    width: 100%;
    padding: 10px 90px 10px 15px;
    /* Right padding for icons */
    border-radius: 10px;
    border: 1px solid #ccc;
    resize: none;
    font-size: 14px;
    outline: none;
    min-height: 45px;
    max-height: 100px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chat-input:focus {
    border-color: #1877f2;
    box-shadow: 0 0 5px rgba(24, 119, 242, 0.3);
}

/* Icons container */
.chat-icons {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 5px;
    align-items: center;
}

/* File input hidden */
.chat-image {
    display: none;
}

/* Attachment icon */
.chat-attach {
    font-size: 20px;
    color: #555;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s;
}

.chat-attach:hover {
    background: #e4e6eb;
}

/* Send button */
.chat-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #1877f2;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-send:hover {
    background: #155db2;
}

.support-btn {
    position: fixed;
    right: 20px;
    bottom: 92px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 9999;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;

    transition: all 0.35s ease;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

/* Icon base */
.support-btn i {
    font-size: 18px;
    transition: transform 0.35s ease;
}

/* Hover Animation */
.support-btn:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.55);
    background: linear-gradient(135deg, #6366f1, #818cf8);
}

/* Icon wave effect */
.support-btn:hover i {
    transform: rotate(-10deg) scale(1.15);
}

/* Click effect */
.support-btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* ডিফল্ট — ডেস্কটপ/বড় স্ক্রিন */
.chat-modal {
    position: fixed;
    top: 105px;
    bottom: 20px;
    right: 20px;
    width: 380px;
    height: auto;
    max-height: calc(100vh - 125px);
    background: #080C1C;
    box-shadow: -4px 0 10px rgba(0, 0, 0, .15);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    opacity: 0;
    transform: translateX(120%);
    transition: transform 0.4s ease, opacity 0.35s ease;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #6A5DF9 rgba(255, 255, 255, 0.05);
}
/* Webkit scrollbar hidden by default */
.chat-modal::-webkit-scrollbar {
    width: 6px; /* scrollbar width */
    height: 6px; /* horizontal scrollbar, optional */
}

/* Track */
.chat-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* Thumb */
.chat-modal::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6A5DF9, #DD56D7);
    border-radius: 10px;
}

/* Hover effect for thumb */
.chat-modal::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7B70FF, #E46ADB);
}

/* Remove buttons completely */
.chat-modal::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Optional: hide horizontal scrollbar completely */
.chat-modal::-webkit-scrollbar-corner {
    background: transparent;
}

.chat-modal.active {
    /* right: 10px; */
    opacity: 1;
    transform: translateX(0);
}

.chat-header {
    color: #fff;
    position: relative;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    border-radius: 10px 10px 0px 0px;
}

.chat-modal-body {
    flex: 1;
    padding: 15px;
    background: #F6F6F7;
    border-radius: 12px;
}

.chat-modal-body .title h4 {
    color: #171717;
    font-size: 34px;
    line-height: 120%;
    font-weight: 500;
    margin-bottom: 0px;
}

.spinner i {
    margin-left: 5px;
}

#chatMessage {
    flex: 1;
}

.chat-box {
    display: flex;
    flex-direction: column;
    padding: 10px;
    box-sizing: border-box;
}

.chat-box .messages {
    flex: 1;
    margin-bottom: 10px;
}


.live_chat_first_page h4 {
    font-family: system-ui;
    margin-bottom: 10px;
    color: white;
}

.live_chat_first_page p {
    font-size: 15 px;
    font-family: auto;
    color: white;
}

.live_chat_first_page button,
#loginBtn {
    font-family: sans-serif;
    font-weight: 500;
    line-height: 23px;
}

img.live-chat-left {
    position: absolute;
    top: 0px;
    left: 0px;
}

img.live-chat-right {
    position: absolute;
    right: 0px;
    top: 0px;
}
img.live-chat-top {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
}
.live-chat-shap{
    z-index: -1;
}

.header_info {
    width: 100%;
    padding: 20px 0px 30px;
}

.header_info h5.welcome {
  background: linear-gradient(45deg, #C0B9FF, #FF84E6);
    font-size: 28px;
    font-weight: 700;
    line-height: 120%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; 
    color: transparent;
}

.chat-header h4.company_name {
    color: #FFFFFF;
    font-size: 28px;
    line-height: 120%;
    font-weight: 500;
}

 .avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: -14px;
    background: #eee;
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

/* Purple background (optional like your image) */
.avatar-wrapper {
    border-radius: 10px;
    display: inline-block;
}

.company-avatar-stack {
    display: inline-flex;
    align-items: center;
}

.company-avatar-stack .company-avatar-group {
    display: flex;
    align-items: center;

}

.company-avatar-stack .company-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: -14px;
    background: #eee;
    position: relative;
    z-index: 1;
}

/* First one no overlap */
.company-avatar-stack .company-avatar:first-child {
    margin-left: 0;
}

/* 🔥 Center logo */
.company-avatar-stack .company-avatar-center {
    width: 52px;
    height: 52px;
    z-index: 5;
    background: #fff;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* 🟢 Online indicator */
.company-avatar-stack .company-avatar-center::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 4px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #fff;
}
.header_login_info {
    width: 100%;
    padding: 20px 0px 10px;
    text-align: center;
}
.header_login_info h5.response_title {
    color: #FFFFFF;
    font-size: 24px;
    line-height: 120%;
    font-weight: 400;
    padding-top: 12px;
}


.input-wrap {
    position: relative;
}

.input-wrap .form-control {
    padding: 14px 40px;
    background: transparent;
    border: 1px solid #A6AEBB;
    border-radius: 12px;
    color: #000;
}

/* Label default */
.input-wrap label {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #aaa;
    pointer-events: none;
    transition: all .5s ease;
    padding: 0 6px;
}

/* Label float on focus or filled */
.input-wrap .form-control:focus + label,
.input-wrap .form-control.filled + label,
.input-wrap .form-control:valid + label  {
    top: 0px;
    font-size: 12px;
    color: white;
    font-weight: 500;
    border: 1px solid #c8b9b9;
    border-radius: 3px;
    padding: 0px 10px;
    line-height: 19px;
    background: linear-gradient(45deg, #615DFB, #F055D0);
}

.input-wrap .form-control:focus {
    outline: 0;
    box-shadow: 0 0 3px 1px #A6AEBB;
}

.input-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8f8cff;
}

.input-icon-right {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8f8cff;
}



.message_wrapper {
    max-height: 350px;
    height: 100%;
    overflow-y: scroll;
}

/* Scrollbar track */
.message_wrapper::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 10px;
    background-color: #F5F5F5;
}

/* Scrollbar itself */
.message_wrapper::-webkit-scrollbar {
    width: 12px;
    background-color: #F5F5F5;
}

/* Scrollbar thumb */
.message_wrapper::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #555;
}

/* Hide scrollbar buttons (up/down arrows) */
.message_wrapper::-webkit-scrollbar-button {
    display: none;
}

.mesaages {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media only screen and (max-width: 400px) {
    .message_wrapper {
        height: 350px !important;
    }

}