.image-upload .thumb .profilePicPreview {
  width: 100%;
  height: 310px;
  display: block;
  border: 3px solid #f1f1f1;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  background-size: cover !important;
  background-position: top;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.image-upload .thumb .profilePicPreview.logoPicPrev {
  background-size: contain !important;
  background-position: center;
}

.image-upload .thumb .profilePicUpload {
  font-size: 0;
  opacity: 0;
}

.image-upload .thumb .avatar-edit label {
  text-align: center;
  line-height: 45px;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 25px;
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.16);
  transition: all 0.3s;
}

.image-upload .thumb .avatar-edit label:hover {
  transform: translateY(-3px);
}

.image-upload .thumb .profilePicPreview .remove-image {
  position: absolute;
  top: -9px;
  right: -9px;
  text-align: center;
  width: 55px;
  height: 55px;
  font-size: 24px;
  border-radius: 50%;
  background-color: #df1c1c;
  color: #fff;
  display: none;
}

.image-upload .thumb .profilePicPreview.has-image .remove-image {
  display: block;
}

/* Chat system */
.chat-widget {
  background-color: white;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
  border-radius: 5px;
  overflow: hidden;
}

.chat-widget .chat-widget-header {
  padding: 10px 20px;
  background-color: #14233c;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.chat-widget .chat-widget-header .right .btn--base {
  padding: 6px 10px;
  font-size: 12px;
}

.chat-widget .chat-widget-body {
  padding: 30px 20px;
}

.chat-widget .chat-widget-list {
  margin-bottom: 30px;
}

.chat-widget .chat-widget-list li {
  font-size: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: black;
  padding-bottom: 8px;
}

.chat-widget .chat-widget-list li span {
  font-weight: 700;
}

.chat-widget .chat-widget-footer {
  border-top: 1px solid #eeeeee;
  padding-top: 20px;
  margin-top: 30px;
}

.chat-widget .time-tracker {
  margin-top: 20px;
}

.chat-widget .time-tracker span {
  color: #16c79a;
  font-weight: 700;
  font-family: "Josefin Sans", serif;
}

.counter span {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: #14233c;
  color: #16c79a;
  border-radius: 50%;
}

.ps-container {
  position: relative;
  -ms-touch-action: auto;
  touch-action: auto;
  overflow-y: auto;
  min-height: 150px;
  /*max-height: 461px;*/
}

/*
@media only screen and (max-width: 991px) {
  .ps-container {
    max-height: 435px;
  }
}*/
.media {
  padding: 16px 12px;
  -webkit-transition: background-color .2s linear;
  transition: background-color .2s linear;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: start;
  align-items: flex-start;
  margin-bottom: 0;
}

.media .name {
  margin-bottom: 15px;
}

.media.media-chat-reverse {
  padding-right: 12px;
  padding-left: 64px;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  flex-direction: row-reverse;
}

.media.media-chat-reverse .name {
  text-align: right;
}

.media-chat .media-body a {
  color: #696687;
}

.media.media-chat-reverse p::before {
  right: 0;
  left: auto !important;
  clip-path: polygon(100% 0, 0% 100%, 100% 100%) !important;
}

@media only screen and (max-width: 991px) {
  .media.media-chat-reverse {
    padding-left: 0;
  }
}

.media .avatar {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 100%;
  background-color: black;
  text-transform: uppercase;
  flex-shrink: 0;
  color: white;
}

.media .media-body p {
  position: relative;
  padding: 7px 20px;
  margin: 4px 0;
  background-color: #f3f4f5;
  font-size: 14px;
  border-radius: 3px;
  font-weight: 500;
  color: #000;
}

.media .media-body p::before {
  position: absolute;
  content: '';
  top: -10px;
  left: 0;
  clip-path: polygon(0 0, 0% 100%, 100% 100%);
  -webkit-clip-path: polygon(0 0, 0% 100%, 100% 100%);
  background: #f3f4f5;
  width: 12px;
  height: 17px;
}

.media>* {
  margin: 0 8px;
}

.chatbox-footer {
  position: relative;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  padding: 12px 20px;
  background-color: #f3f4f5;
  border-top: 1px solid #e1e7ec;
}

.chatbox-footer>* {
  margin: 0 !important;
}

@media only screen and (max-width: 575px) {
  .chatbox-footer {
    display: block;
  }
}

.chatbox-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0;
}

.chatbox-footer .chatbox-message-part {
  width: calc(100% - 125px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

@media only screen and (max-width: 575px) {
  .chatbox-footer .chatbox-message-part {
    width: calc(100% - 95px);
    margin-right: 0 !important;
  }
}

.chatbox-footer .chatbox-message-part .avatar {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 100%;
  background-color: black;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-right: 10px;
  color: white;
}

.chatbox-message-part input {
  padding: 0;
}


.chatbox-footer>*:first-child {
  margin-left: 0;
}

.chatbox-footer-input {
  width: calc(100% - 50px);
  font-weight: 500;
  font-size: 14px;
  border: none;
  outline: none !important;
  background-color: transparent;
}

.chatbox-footer .attach-btn:hover {
  color: #0b3ceb !important;
}

.chatbox-send-part {
  width: 125px;
}

.chatbox-send-part a i {
  font-size: 20px;
}

.btn.attach-btn {
  align-items: center;
  display: flex;
}

@media (max-width: 575px) {
  .btn.attach-btn {
    align-items: center;
    padding: 5px;
    display: flex;
  }
}

@media only screen and (max-width: 575px) {
  .chatbox-send-part {
    width: 95px;
    margin-top: 0;
    justify-content: flex-end;
    margin-left: 0 !important;
    margin-right: 0;
  }

  .chatbox-send-part .btn {
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 500;
  }

}

.chatbox-footer-btn {
  width: 35px;
  height: 35px;
  background-color: #1e2746;
  color: white;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-header {
  padding: 12px 0px;
  height: 65px;
}

.image-header h5 {
  line-height: 35px;
}

.order-images {
  height: 100px !important;
  margin-bottom: 15px;
}

@keyframes rotate360 {
  to {
    transform: rotate(360deg);
  }
}

.order-image-overlay {
  position: absolute;
  color: #ffffff;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000ad;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  flex-direction: column;
}

.order-image-overlay:hover {
  color: #fff;
}

.order-image-overlay span {
  font-size: 14px;
  color: #fff;
}

.order-image-overlay span:hover {
  color: #fff;
}

.order-image-overlay i {
  font-size: 20px;
}

.order-image-overlay i:hover {
  color: #fff;
}

.order-images-row {
  --bs-gutter-x: 1rem;
}

@media only screen and (max-width: 1400px) {
  .order-images-row {
    --bs-gutter-x: 0.7rem;
  }
}

@media only screen and (max-width: 768px) {
  .order-images {
    height: 150px !important;
  }
}

@media only screen and (max-width: 400px) {
  .order-images {
    height: 120px !important;
  }
}

.search-list .bg--dark a {
  color: #fff !important;
}

.order-chat-box {
  overflow: unset;
}

.order-chat-box .chat-widget-body {
  position: sticky;
  bottom: 0;
}