.hidden {
    display: none;
}
.list-icon li{
    font-weight: 400 !important;
}
section{
    z-index: unset !important;
}
.ball {
    position: relative;
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #888;
    z-index: 2;
    margin-top: 4px;
    animation: ball .45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
}

/*--------------------
Chat
--------------------*/

.chat {
    position: relative;
    width: 100%;
    height: calc(100% - 15px);
    max-height: 500px;
    z-index: 10;
    overflow: hidden;
    background: transparent;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    margin-bottom: 15px;
    padding: 5px;
}

/*--------------------
Chat Title
--------------------*/

.chat-title {
    flex: 0 1 45px;
    position: relative;
    z-index: 2;
    width: 100%;
    border-bottom: 1px solid #ccc;
    color: #777;
    padding-top: 50px;
    padding-bottom: 5px;
    background-color: #fff;
    text-transform: uppercase;
    text-align: center;
}

.chat-title h1,
.chat-title h2 {
    font-weight: normal;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

.chat-title h2 {
    font-size: 11px;
    letter-spacing: 1px;
}

.chat-title .avatar {
    position: absolute;
    z-index: 1;
    top: 8px;
    left: 9px;
    border-radius: 30px;
    width: 60px;
    height: 60px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 1px solid #fff;
}

.chat-title .avatar img {
    width: 100%;
    height: auto;
}

/*--------------------
Messages
--------------------*/

.messages {
    /* flex: 1 1 auto; */
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 400px;
    /* or whatever height you want */
}

.messages .messages-content {
    height: 100%;
    padding-right: 10px;
}

.messages .message {
    clear: both;
    float: left;
    padding: 10px 15px 10px;
    border-radius: 20px 20px 20px 0;
    background: #eee;
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.4;
    margin-left: 35px;
    position: relative;
    border: 1px solid #ccc;
    word-wrap: anywhere;
    font-weight: 500;
}

.messages .message .timestamp {
    position: absolute;
    bottom: -20px;
    font-size: 10px;
    color: #555;
    right: 30px;
    word-wrap: break-word;
}

.messages .message .checkmark-sent-delivered {
    position: absolute;
    bottom: -20px;
    right: 10px;
    font-size: 12px;
    color: #999;
}

.messages .message .checkmark-read {
    color: blue;
    position: absolute;
    bottom: -20px;
    right: 16px;
    font-size: 12px;
}

.messages .message .avatar {
    position: absolute;
    z-index: 1;
    bottom: -15px;
    left: -35px;
    /* border-radius: 30px; */
    width: 24px;
    height: 24px;
    /* overflow: hidden;
    margin: 0;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.5); */
}

.messages .message .avatar img {
    width: 100%;
    height: auto;
}

.messages .message.message-personal {
    float: right;
    text-align: right;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 20px 20px 0 20px;
}

.messages .message:last-child {
    margin-bottom: 30px;
}

.messages .message.new {
    transform: scale(0);
    transform-origin: 0 0;
    animation: bounce 500ms linear both;
}

.messages .message.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 75%;
    width: 5px;
    height: 5px;
    background-color: #888;
    border-radius: 50%;
    animation: ball .45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
}

.messages .message.loading span {
    display: block;
    font-size: 0;
    width: 20px;
    height: 15px;
    position: relative;
    padding-top: 5px;
}

.messages .message.loading span::before {
    content: '';
    position: absolute;
    left: 0;
    width: 5px;
    height: 5px;
    background-color: #888;
    border-radius: 50%;
    animation-delay: .15s;
}

.messages .message.loading span::after {
    content: '';
    position: absolute;
    right: 5px;
    width: 5px;
    height: 5px;
    background-color: #888;
    border-radius: 50%;
    animation-delay: .3s;
}

/*--------------------
Message Box
--------------------*/

.message-box {
    /* flex: 0 1 42px; */
    width: 95%;
    background: #fff;
    margin: 2px auto;
    padding: 15px;
    position: relative;
    border-radius: 20px;
    height: auto;
    border: 1px solid #ccc;
}

.message-box .message-input {
    background: none;
    border: none;
    outline: none !important;
    resize: none;
    font-size: 14px;
    height: auto;
    margin: 0;
    padding-right: 20px;
    width: 100%;
    color: #444;
}

.message-box textarea:focus::-webkit-input-placeholder {
    color: transparent;
}

.message-box .message-submit {
    position: absolute;
    z-index: 1;
    top: 14px;
    right: 10px;
    color: #4a90e2;
    border: none;
    background: #fff;
    font-size: 12px;
    text-transform: uppercase;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 5px;
    outline: none !important;
    transition: background 0.2s ease;
    cursor: pointer;
}

.message-box .message-submit:hover {
    background: #fff;
    color: #333;
}

/*--------------------
Custom Srollbar
--------------------*/

.mCSB_scrollTools {
    margin: 1px -3px 1px 0;
    opacity: 0;
}

.mCSB_inside>.mCSB_container {
    margin-right: 0px;
    padding: 0 10px;
}

.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/*--------------------
Bounce
--------------------*/

@keyframes bounce {
    0% {
        transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    4.7% {
        transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    9.41% {
        transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    14.11% {
        transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    18.72% {
        transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    24.32% {
        transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    29.93% {
        transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    35.54% {
        transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    41.04% {
        transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    52.15% {
        transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    63.26% {
        transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    85.49% {
        transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }

    100% {
        transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    }
}

@keyframes ball {
    from {
        transform: translateY(0) scaleY(0.8);
    }

    to {
        transform: translateY(-10px);
    }
}

.avenue-messenger {
    opacity: 1;
    border-radius: 20px;
    height: calc(100% - 70px) !important;
    max-height: 500px !important;
    min-height: 240px !important;
    width: 400px;
    background: rgba(255, 255, 255, 0.9);
    /* position: fixed; */
    right: 20px;
    bottom: 40px;
    margin: auto;
    z-index: 10;
    box-shadow: 2px 10px 40px rgba(22, 20, 19, 0.4);
    -webkit-transition: 0.3s all ease-out 0.1s, transform 0.2s ease-in;
    -moz-transition: 0.3s all ease-out 0.1s, transform 0.2s ease-in;
}

.avenue-messenger div.agent-face {
    position: absolute;
    left: 0;
    top: -50px;
    right: 0;
    margin: auto;
    width: 101px;
    height: 50px;
    background: transparent;
    z-index: 12;
}

.avenue-messenger div {
    font-size: 14px;
    color: #232323;
}

.close {
    display: block;
    width: 100px;
    height: 100px;
    margin: 1em auto;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 99em;
    opacity: 0.5;
}

.close:hover {
    opacity: 0.9;
}

.circle {
    display: block;
    width: 80px;
    height: 80px;
    margin: 1em auto;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 99em;
    border: 2px solid #fff;
}

.contact-icon .circle:hover {
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    transition: 0.2s all ease-out 0.2s;
    -webkit-transition: 0.2s all ease-out 0.2s;
    -moz-transition: 0.2s all ease-out 0.2s;
}

.arrow_box:after {
    border-color: rgba(255, 255, 255, 0);
    border-left-color: #fff;
    border-width: 5px;
    margin-top: -5px;
}

.arrow_box {
    position: relative;
    background: #fff;
    border: 1px solid #4a90e2;
}

.arrow_box:after,
.arrow_box:before {
    left: 100%;
    top: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

@media only screen and (max-device-width: 667px),
screen and (max-width: 450px) {
    .avenue-messenger {
        z-index: 2147483001 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 0 !important;
        background: #fff;
    }

    .avenue-messenger div.agent-face {
        top: -10px !important;
    }

    .chat {
        border-radius: 0 !important;
        max-height: initial !important;
    }

    .chat-title {
        padding: 20px 20px 15px 10px !important;
        text-align: left;
    }

    .circle {
        width: 80px;
        height: 80px;
        border: 1px solid #fff;
    }

    .menu .button {
        border-top-right-radius: 0;
    }
    .wrapper{
        right: 0px !important;
    }
}

@media only screen and (min-device-width: 667px) {
    div.half {
        margin: auto;
        width: 80px;
        height: 40px;
        background-color: #fff;
        border-top-left-radius: 60px;
        border-top-right-radius: 60px;
        border-bottom: 0;
        box-shadow: 1px 4px 20px rgba(22, 20, 19, 0.6);
        -webkit-box-shadow: 1px 4px 20px rgba(22, 20, 19, 0.6);
        -moz-box-shadow: 1px 4px 20px rgba(22, 20, 19, 0.6);
    }
    .wrapper{
        right: 0px !important;
    }
}


#click {
    display: none;
}

label {
    position: fixed;
    right: 36px;
    bottom: 70px;
    height: 70px;
    width: 70px;
    /* background: -webkit-linear-gradient(left, #cc2249, #045c9c); */
    background: #000;
    text-align: center;
    line-height: 70px;
    border-radius: 50px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 1 !important;
    transform: rotate(90deg);
    animation-name: anbounce;
    animation-fill-mode: both;
    animation-duration: 2s;
}

@keyframes anbounce {
  0% {
    opacity: 0;
    transform: translateY(-2000px) rotate(0deg);
  }
  60% {
    opacity: 1;
    transform:scaleY(0.9) translateY(30px) rotate(0deg);
  }
  100% {
    transform:  scaleY(1) translateY(0) rotate(0deg);
  }
}

.chat-btn span {
    position: fixed;
    display: block;
    right: 22px;
    bottom: 70px;
    font-weight: 500;
    font-size: 16px;
    margin-top: 5px;
    text-align: center;
}

label i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

label i.fas {
    opacity: 0;
    pointer-events: none;
    font-size: 32px;
}

#click:checked~label i.fas {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) rotate(180deg);
}

#click:checked~label img {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(180deg);
}

.wrapper {
    position: fixed;
    right: 30px;
    bottom: 0px;
    max-width: 450px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 19999 !important;
    width: 100%;
}

#click:checked~.wrapper {
    opacity: 1;
    bottom: 150px;
    pointer-events: auto;
}

/* #chatbox {
            overflow-y: scroll !important;
            scroll-behavior: smooth !important;
        } */
.wrapper .head-text {
    line-height: 60px;
    color: #fff;
    border-radius: 15px 15px 0 0;
    padding: 0 20px;
    font-weight: 500;
    font-size: 20px;
    /* background: -webkit-linear-gradient(left, #cc2249, #045c9c); */
    background: #06B3F7;
}

.wrapper .chat-box {
    padding: 20px;
    width: 100%;
}

.chat-box .desc-text {
    color: #515365;
    text-align: center;
    line-height: 25px;
    font-size: 17px;
    font-weight: 500;
}

.chat-label-svg {
    position: fixed;
    right: 10px;
    bottom: 55px;
    /* adjust as needed to sit above the button */
    pointer-events: none;
    z-index: 2;
    transform: rotate(90deg);
    animation-name: anbounce;
    animation-fill-mode: both;
    animation-duration: 2s;
}

.chat-label-text {
    font-size: 16px;
    fill: #000;
    font-weight: bold;
    letter-spacing: 1px;
    font-family: inherit;
}

label::before{
    content: "";
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: auto;
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    transition: opacity 0.3s ease-in-out;
    border-radius: 50px;
    opacity: 1;
}
label::after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #000;
  left: 0;
  top: 0;
  border-radius: 40px;
}
@keyframes glowing {
0% {
background-position: 0 0;
}
50% {
background-position: 400% 0;
}
100% {
background-position: 0 0;
}
}

#myTooltip {
    position: fixed;
    right: 30px;
    bottom: 160px;
    z-index: 10001;
    background: #fff;
    color: #222;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(6,179,247,0.15);
    padding: 16px 24px;
    min-width: 220px;
    font-size: 16px;
    display: flex;
    align-items: center;
}

/* Pointer arrow below tooltip */
#myTooltip::after {
    content: "";
    position: absolute;
    left: 84%;
    bottom: -16px;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    filter: drop-shadow(0 2px 4px rgba(6,179,247,0.10));
}

.tooltip-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}
.tooltip-visible {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.4s;
}
#closeTooltipBtn{
    background: none; 
    border: none; 
    font-size: 18px; 
    color: #06B3F7; 
    cursor: pointer; 
    margin-left: 12px;
}
/* New Bid Bud */
.composer{padding:12px;border-top:1px solid #eef2f7;display:flex;gap:12px;align-items:center}
.input-area{flex:1;display:flex;flex-direction:column;gap:8px}
textarea{resize:none;height:68px;padding:10px;border-radius:8px !important;border:1px solid #e6edf6 !important;font-size:14px}
.controls{display:flex;gap:12px;align-items:center}
.btn{background:var(--accent);color:#fff;border:none !important;padding:10px 14px !important;border-radius:8px !important;cursor:pointer; line-height: 13px !important;}
.btn.secondary{background:#fff !important;border:1px solid #e6edf6 !important;color:#0f172a !important;}
.file-drop{border:2px dashed #e6edf6;border-radius:8px;padding:5px;text-align:center;font-size:13px;color:var(--muted);cursor:pointer}
.progress{height:6px;background:#e6edf6;border-radius:6px;overflow:hidden}
.progress > i{display:block;height:100%;width:0;background:linear-gradient(90deg,#60a5fa,#3b82f6)}
.small{font-size:11px;color:var(--muted)}
.error{color:#b91c1c;font-size:12px}
.download{display:inline-block;margin-top:8px;color:var(--accent);text-decoration:underline}
.wrapper{max-width:600px !important;margin:0 auto;border-radius: 28px !important;}
.chat{max-height: 650px !important; margin-bottom: 5px !important;}
.messages{max-height: 550px !important;}
.message-box{width: 98% !important; padding: 10px !important;}
.message-box .message-submit{top:0px !important;}