.custom-file-upload {
    position: relative;
    display: inline-block;
}

.custom-file-upload input[type="file"] {
    display: none;
}

.custom-file-upload label {
    display: block;
    cursor: pointer;
}

.custom-file-upload img {
    width: 80px;
    /* Adjust according to your preference */
    height: 80px;
    /* Adjust according to your preference */
    border: 1px solid #ccc;
}

.custom-file-upload span {
    display: block;
    text-align: center;
    margin-top: 5px;
}

/* This multi image uploader and update */

.preview-image {
    padding: 10px;
    margin: 10px;
    display: inline-block;
    position: relative;
}

.preview-image img {
    max-width: 100px;
    max-height: 100px;
}

.delete-button {
    position: absolute;
    top: 0;
    right: 0;
    background-color: red;
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 50%;
    opacity: 0.6;
    filter: alpha(opacity=60);
}

.badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background-color: #1aff1a;
    color: white;
    padding: 2px 5px;
    font-size: 12px;
}

.error {
    border-color: red;
}

.card {
    position: relative;
}

.price-tag {
    /* float: right; */
     margin-right: 40px; 
    width: 100px;
    position: absolute;
    top: -1px;
    left: -1px;
    text-shadow: 2px 2px 4px rgba(5, -5, -5, 2);
    /* background-color: #ff5722; */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 10px;
}

#price-tag {
    /* float: right; */
     margin-right: -40px; 
    width: 100px;
    position: absolute;
    top: -1px;
    left: -1px;
    text-shadow: 2px 2px 4px rgba(5, -5, -5, 2);
    /* background-color: #ff5722; */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 10px;
}

.img-tag {
    /* float: right; */
    /* margin-right: 40px; */
    width: 100px;
    position: absolute;
    bottom: 165px;
    left: -1px;
    text-shadow: 2px 2px 4px rgba(5, -5, -5, 2);
    /* background-color: #ff5722; */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 10px;
}

.price-tag button {
    float: right;
    margin-right: 40px;
    width: 100px;
    position: absolute;
    top: -1px;
    left: -1px;
    text-shadow: 2px 2px 4px rgba(5, -5, -5, 2);
    background-color: #ff5722;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 10px;
}

.accessed-data {
    position: absolute;
    top: 1px;
    left: 15px;
    background-color: #33cc33;
    color: white;
    border-radius: 5px;
}

.hidden {
    display: none;
}



/*************** 1.Variables ***************/


/* ------------------ Color Pallet ------------------ */


/*************** 2.Mixins ***************/


/************************************************
************************************************
                                Search Box
************************************************
************************************************/

.chat-search-box {
    -webkit-border-radius: 3px 0 0 0;
    -moz-border-radius: 3px 0 0 0;
    border-radius: 3px 0 0 0;
    padding: .75rem 1rem;
}

.chat-search-box .input-group .form-control {
    -webkit-border-radius: 2px 0 0 2px;
    -moz-border-radius: 2px 0 0 2px;
    border-radius: 2px 0 0 2px;
    border-right: 0;
}

.chat-search-box .input-group .form-control:focus {
    border-right: 0;
}

.chat-search-box .input-group .input-group-btn .btn {
    -webkit-border-radius: 0 2px 2px 0;
    -moz-border-radius: 0 2px 2px 0;
    border-radius: 0 2px 2px 0;
    margin: 0;
}

.chat-search-box .input-group .input-group-btn .btn i {
    font-size: 1.2rem;
    line-height: 100%;
    vertical-align: middle;
}

@media (max-width: 767px) {
    .chat-search-box {
        display: none;
    }
}


/************************************************
************************************************
                            Users Container
************************************************
************************************************/

.users-container {
    position: relative;
    padding: 1rem 0;
    border-right: 1px solid #e6ecf3;
    height: 100%;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
}

@media (max-width: 767px) {
    .users-container {
        position: fixed;
        padding: 1rem 0;
        border-right: 1px solid #e6ecf3;
        height: 100%;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-direction: column;
        flex-direction: column;
        overflow-y: auto;
    }
}

/************************************************
************************************************
                                    Users
************************************************
************************************************/

.users {
    padding: 0;
}

.users .person {
    position: relative;
    width: 100%;
    padding: 10px 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f4f8;
}

.users .person:hover {
    background-color: #ffffff;
    /* Fallback Color */
    background-image: -webkit-gradient(linear, left top, left bottom, from(#e9eff5), to(#ffffff));
    /* Saf4+, Chrome */
    background-image: -webkit-linear-gradient(right, #e9eff5, #ffffff);
    /* Chrome 10+, Saf5.1+, iOS 5+ */
    background-image: -moz-linear-gradient(right, #e9eff5, #ffffff);
    /* FF3.6 */
    background-image: -ms-linear-gradient(right, #e9eff5, #ffffff);
    /* IE10 */
    background-image: -o-linear-gradient(right, #e9eff5, #ffffff);
    /* Opera 11.10+ */
    background-image: linear-gradient(right, #e9eff5, #ffffff);
}

.users .person.active-user {
    background-color: #ffffff;
    /* Fallback Color */
    background-image: -webkit-gradient(linear, left top, left bottom, from(#f7f9fb), to(#ffffff));
    /* Saf4+, Chrome */
    background-image: -webkit-linear-gradient(right, #f7f9fb, #ffffff);
    /* Chrome 10+, Saf5.1+, iOS 5+ */
    background-image: -moz-linear-gradient(right, #f7f9fb, #ffffff);
    /* FF3.6 */
    background-image: -ms-linear-gradient(right, #f7f9fb, #ffffff);
    /* IE10 */
    background-image: -o-linear-gradient(right, #f7f9fb, #ffffff);
    /* Opera 11.10+ */
    background-image: linear-gradient(right, #f7f9fb, #ffffff);
}

.users .person:last-child {
    border-bottom: 0;
}

.users .person .user {
    display: inline-block;
    position: relative;
    margin-right: 10px;
}

.users .person .user img {
    width: 48px;
    height: 48px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
}

.users .person .user .status {
    width: 10px;
    height: 10px;
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    border-radius: 100px;
    background: #e6ecf3;
    position: absolute;
    top: 0;
    right: 0;
}

.users .person .user .status.online {
    background: #9ec94a;
}

.users .person .user .status.offline {
    background: #c4d2e2;
}

.users .person .user .status.away {
    background: #f9be52;
}

.users .person .user .status.busy {
    background: #fd7274;
}

.users .person p.name-time {
    font-weight: 600;
    font-size: .85rem;
    display: inline-block;
}

.users .person p.name-time .time {
    font-weight: 400;
    font-size: .7rem;
    text-align: right;
    color: #8796af;
}

.scroll-puser {
    height: 480px;
    overflow-x: hidden;
    /* Enable horizontal scrollbar */
    overflow-y: auto;
    /* Hide vertical scrollbar */
}

.scroll-chat {
    height: 300px;
    width: 102%;
    overflow-x: hidden;
    /* Enable horizontal scrollbar */
    overflow-y: auto;
    /* Hide vertical scrollbar */
}

@media (max-width: 767px) {
    .scroll-puser {
        height: 650px !important;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .scroll-chat {
        height: 600px;
        overflow-x: hidden;
        /* Enable horizontal scrollbar */
        overflow-y: auto;
        /* Hide vertical scrollbar */
        /* opacity: 0;         */
        /* position: absolute;  */
        /* pointer-events: none;  */
    }

    .card {
        position: relative;
    }

    .users .person .user img {
        width: 30px;
        height: 30px;
    }

    .users .person p.name-time {
        font-weight: 600;
        font-size: .85rem;
        display: inline-block;
    }

    .users .person p.name-time .time {
        font-weight: 400;
        font-size: .7rem;
        text-align: right;
        color: #fbfbfc;
    }
}


/************************************************
************************************************
                            Chat right side
************************************************
************************************************/

.selected-user {
    width: 100%;
    padding: 0 15px;
    min-height: 44px;
    line-height: 44px;
    border-bottom: 1px solid #e6ecf3;
    -webkit-border-radius: 0 3px 0 0;
    -moz-border-radius: 0 3px 0 0;
    border-radius: 0 3px 0 0;
    /* background-color: #1aff1a; */
}

.selected-user span {
    line-height: 100%;
}

.selected-user span.name {
    font-weight: 700;
}

.chat-container {
    position: relative;
    padding: 1rem;
    box-sizing: border-box;
}

.chat-container li.chat-left,
.chat-container li.chat-right {
    display: flex;
    flex: 1;
    flex-direction: row;
    margin-bottom: 40px;
}

.chat-container li img {
    width: 48px;
    height: 48px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
}

.chat-container li .chat-avatar {
    margin-right: 20px;
}

.chat-container li.chat-right {
    justify-content: flex-end;
}

.chat-container li.chat-right>.chat-avatar {
    margin-left: 20px;
    margin-right: 0;
}

.chat-container li .chat-name {
    font-size: .75rem;
    color: #999999;
    text-align: center;
}

.chat-container li .chat-text {
    padding: .4rem 1rem;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background: #ffffff;
    font-weight: 300;
    line-height: 150%;
    position: relative;
}

.chat-container li .chat-text:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 10px;
    left: -20px;
    border: 10px solid;
    border-color: transparent #ffffff transparent transparent;
}

.chat-container li.chat-right>.chat-text {
    text-align: right;
}

.chat-container li.chat-right>.chat-text:before {
    right: -20px;
    border-color: transparent transparent transparent #ffffff;
    left: inherit;
}

.chat-container li .chat-hour {
    padding: 0;
    margin-bottom: 10px;
    font-size: .75rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 15px;
}

.chat-container li .chat-hour>span {
    font-size: 16px;
    color: #9ec94a;
}

.chat-container li.chat-right>.chat-hour {
    margin: 0 15px 0 0;
}

/* .ser-rows {
    position: absolute;
    margin-top: 60px;
} */

.mess-view {
    height: auto;
}

@media (max-width: 767px) {

    .mess-view {
        display: none;
    }

    .ser-rows {
        position: relative;
        margin-top: 60px;
    }

    .chat-container li.chat-left,
    .chat-container li.chat-right {
        flex-direction: column;
        margin-bottom: 30px;
    }

    .chat-container li img {
        width: 32px;
        height: 32px;
    }

    .chat-container li.chat-left .chat-avatar {
        margin: 0 0 5px 0;
        display: flex;
        align-items: center;
    }

    .chat-container li.chat-left .chat-hour {
        justify-content: flex-end;
    }

    .chat-container li.chat-left .chat-name {
        margin-left: 5px;
    }

    .chat-container li.chat-right .chat-avatar {
        order: -1;
        margin: 0 0 5px 0;
        align-items: center;
        display: flex;
        justify-content: right;
        flex-direction: row-reverse;
    }

    .chat-container li.chat-right .chat-hour {
        justify-content: flex-start;
        order: 2;
    }

    .chat-container li.chat-right .chat-name {
        margin-right: 5px;
    }

    .chat-container li .chat-text {
        font-size: .8rem;
    }

    .chat-form {
        padding: 5px;
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ffffff;
        border-top: 1px solid white;
        margin-bottom: 1px;
        /* position: absolute; */
    }
}

.chat-form {
    padding: 5px;
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    border-top: 1px solid white;
    margin-bottom: -30px;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.card {
    border: 0;
    background: #f4f5fb;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    margin-bottom: 2rem;
    box-shadow: none;
}

.fixed-text-bottom {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 75%;
    /* background-color: #333; */
    color: white;
    text-align: center;
    padding: 5px 5;
    margin-right: 30px;
    margin-bottom: 30px;
    /* box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); */
    z-index: 9998;
    /*z-index: 1000; /* Ensure it stays on top of other elements */
}

@media only screen and (max-width: 600px) {
    #mediaView {
        display: none;
    }

    .fixed-text-bottom {
        display: block;
    }

    /* #mediaViewuser  {
        display: none; */
    /* width: 100% !important; */
    /* } */


}

/* hide chat text */
.hidechat {
    display: none;
}

.showchat {
    display: block;
}

.scrolling-wrapper {
    overflow-x: auto;
}

.reqCount {
    margin-top: 50px;
    color: beige;
    margin-left: 40px;
    padding: 2px 5px 2px 5px;
    background: green;
    border-radius: 5px;
}

.hidechatmob {
    display: none;
}


/* slide and zoom file */


.image-container {
    /*width: auto;*/
        display: flex;
    justify-content: center;
    align-items: center;
}

/* This is for mobile view only */
@media only screen and (max-width: 600px) {
    .xzoom {
        display: none;
    }

    .mobxzoom{
        width: 100%;
    }

    .deskv{
        margin-left: 3%;
    }
}

#mobProImg {
    display: none;
}

/* This is for windows view only */
@media only screen and (min-width: 768px){
    .xzoom {
        margin: 0 auto;
        height: auto;
    }

    .mobxzoom{
        display: none;
    }

    .deskv{
          /*display: block;*/
  margin-left: auto;
  margin-right: auto;
    }
}

/* Rating star snippet */


.rating-box {
    position: relative;
    background: #fff;
    padding: 25px 10px 35px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    
  }
  .rating-box header {
    font-size: 12px;
    color: #0073e6;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
  }
  .rating-box .stars {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 50%;
    padding: 5px;
  }
  .stars i {
    color: #e6e6e6;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.2s ease;
  }
  .stars i.active {
    color: #ff9c1a;
  }
  
  
  
  /* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999999;
    width: 100%;
    height: 100%;
    background-color: #fff;
    overflow: hidden;
  }
  .preloader-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
  }
  .preloader-icon {
    width: 100px;
    height: 100px;
    display: inline-block;
    padding: 0px;
  }
  .preloader-icon span {
    position: absolute;
    display: inline-block;
    width: 100px;
    height: 100px;
    border-radius: 100%;
    background:#4b0fee;
    -webkit-animation: preloader-fx 1.6s linear infinite;
    animation: preloader-fx 1.6s linear infinite;
  }
  .preloader-icon span:last-child {
    animation-delay: -0.8s;
    -webkit-animation-delay: -0.8s;
  }
  @keyframes preloader-fx {
    0% {transform: scale(0, 0); opacity:0.5;}
    100% {transform: scale(1, 1); opacity:0;}
  }
  @-webkit-keyframes preloader-fx {
    0% {-webkit-transform: scale(0, 0); opacity:0.5;}
    100% {-webkit-transform: scale(1, 1); opacity:0;}
  }
  /* End Preloader */
  
  #whatsapp-button {
      position: fixed;
      top: 50%;
      right: 0;
      transform: translateY(-50%);
      z-index: 9999;
      background-color: white;
      border-radius: 8px 0 0 8px;
      padding: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
      transition: right 0.3s ease;
  }
    
    #whatsapp-button:hover {
      right: 5px;
    }
    
    #whatsapp-button img {
      width: 40px;
      height: 40px;
    }

    /* Mobile responsiveness */
    @media (max-width: 768px) {
      #whatsapp-button {
        top: auto;
        bottom: 280px;
        right: -20px;
        transform: none;
        border-radius: 50%;
        padding: 10px;
      }
    
      #whatsapp-button img {
        width: 50px;
        height: 50px;
      }
      #whatsapp-button:hover {
        right: 20px;
      }
    }