.chat {
  background-color: #fff;
  width: 360px;
}
.chat .user,
.chat .order__info,
.chat .messages {
  padding: 16px;
}
.chat .user__profile {
  display: flex;
  flex-direction: column;
}
.chat .user__profile .user {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #777;
  border-bottom: 1px solid #f0f0f0;
}
.chat .user__profile .user .avatar {
  display: flex;
  align-items: center;
}
.chat .user__profile .user .avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.chat .user__profile .stars {
  display: flex;
  gap: 4px;
  padding: 8px 0;
  align-items: center;
}
.chat .user__profile .stars span {
  font-weight: bold;
  font-size: 12px;
}
.chat .user__profile .commetn {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat .user__profile .commetn span {
  font-size: 12px;
}
.chat .user__profile .phones {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat .user__profile .phones li {
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid #f0f0f0;
  min-width: 120px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.4px;
  cursor: pointer;
}
.chat .user__profile .phones li a {
  color: #777;
}
.chat .comments {
  border-bottom: 1px solid #f0f0f0;
}
.chat .comments .dropdown {
  padding: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}
.chat .comments .dropdown .arrow {
  rotate: 90deg;
  transition: 0.2s ease-in-out;
}
.chat .comments .dropdown.open .arrow {
  rotate: 270deg;
}
.chat .comments .dropdown__sub {
  display: none;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.06);
}
.chat .comments .dropdown__sub .content {
  max-height: 400px;
  overflow: auto;
}
.chat .comments .dropdown__sub .holder .comment {
  border-bottom: 1px solid #f0f0f0;
}
.chat .comments .dropdown__sub .holder .comment .com_prof {
  display: flex;
  padding: 16px;
  gap: 16px;
  align-items: center;
}
.chat .comments .dropdown__sub .holder .comment .com_prof .avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.chat .comments .dropdown__sub .holder .comment .com_prof span {
  font-size: 12px;
  color: #777;
  font-weight: bold;
}
.chat .comments .dropdown__sub .holder .comment .com_prof .user {
  padding: 0;
}
.chat .comments .dropdown__sub .holder .comment .com_prof .rating {
  display: flex;
  gap: 8px;
}
.chat .comments .dropdown__sub .holder .comment .com_score {
  display: flex;
  gap: 16px;
  color: #777;
  font-size: 12px;
  align-items: center;
  padding: 0 16px;
}
.chat .comments .dropdown__sub .holder .comment .text {
  padding: 16px;
  color: #777;
  font-size: 12px;
}
.chat .comments .dropdown__sub .more_comment {
  padding: 16px;
  font-size: 12px;
  color: #03a868;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
}
.chat .order__info {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}
.chat .order__info .left,
.chat .order__info .right {
  display: flex;
  gap: 8px;
  flex-direction: column;
  justify-content: space-between;
  color: #777;
}
.chat .order__info .right {
  align-items: flex-end;
}
.chat .order__info .order__num {
  font-size: 12px;
}
.chat .order__info .order__date {
  font-size: 12px;
  color: #aaa;
}
.chat .order__info .order__status {
  font-weight: bold;
  font-size: 12px;
}
.chat .order__info .order__status-new {
  color: #f95003;
}
.chat .order__info .order__status-cancel {
  color: #be1000;
}
.chat .order__info .order__status-success {
  color: #03a868;
}
.chat .chat__form.client .messages {
  height: calc(100vh - 455px);
}
.chat .chat__form .messages {
  border-bottom: 1px solid #f0f0f0;
  height: calc(100vh - 510px);
  overflow: auto;
}
.chat .chat__form .messages .message {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 16px;
  position: relative;
}
.chat .chat__form .messages .message::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-bottom: 15px solid #eee;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  bottom: 0;
  left: -15px;
}
.chat .chat__form .messages .message p {
  background: #eee;
  padding: 8px;
  border-radius: 10px;
}
.chat .chat__form .messages .message span {
  font-size: 12px;
  color: #aaa;
}
.chat .chat__form .messages .message.from {
  flex-direction: row-reverse;
}
.chat .chat__form .messages .message.from::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-bottom: 15px solid #dafcff;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  bottom: 0;
  right: -15px;
  left: auto;
}
.chat .chat__form .messages .message.from p {
  background: #dafcff;
}
.chat .chat__form .messages .message.system {
  text-align: center;
  justify-content: center;
  padding: 16px 0;
  width: 100%;
}
.chat .chat__form .messages .message.system::after {
  content: none;
}
.chat .chat__form .messages .message.system p {
  background-color: #fff;
  color: #03a868;
  width: 100%;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
}
.chat .chat__form .input__field input {
  border-radius: 5px;
  width: 100%;
  border: 1px solid #f0f0f0;
  height: 42px;
  padding: 0 16px;
}
.chat .chat__form form {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat .chat__form .block {
  display: flex;
  gap: 16px;
  padding: 0 16px;
}
.chat .chat__form .block .btn {
  margin-bottom: 16px;
}
.chat .chat__form .btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}
.chat .chat__form .btn__success {
  background-color: #03a868;
  color: #fff;
}
.chat .chat__form .btn__success:hover {
  background-color: #038f58;
}
.chat .chat__form .btn__danger {
  background-color: #f95003;
  color: #fff;
}
.chat .chat__form .btn__danger:hover {
  background-color: #e04803;
}

.modal__close-order .modal__form,
.modal__cancel-order .modal__form,
.modal__order-bill .modal__form,
.modal__order-error .modal__form {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 360px;
  padding: 16px;
  background-color: #fff;
  height: fit-content;
  border-radius: 5px;
}
.modal__close-order .modal__form-title,
.modal__cancel-order .modal__form-title,
.modal__order-bill .modal__form-title,
.modal__order-error .modal__form-title {
  text-align: center;
  padding: 16px;
  font-weight: bold;
  color: #777;
}
.modal__close-order .modal__form-content h3,
.modal__cancel-order .modal__form-content h3,
.modal__order-bill .modal__form-content h3,
.modal__order-error .modal__form-content h3 {
  text-align: center;
  padding: 16px;
  color: #f95003;
}
.modal__close-order .modal__form-content .stars,
.modal__cancel-order .modal__form-content .stars,
.modal__order-bill .modal__form-content .stars,
.modal__order-error .modal__form-content .stars {
  margin-bottom: 32px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
}
.modal__close-order .modal__form-content .stars .error,
.modal__cancel-order .modal__form-content .stars .error,
.modal__order-bill .modal__form-content .stars .error,
.modal__order-error .modal__form-content .stars .error {
  margin-top: 16px;
  font-size: 12px;
  background-color: #f95003;
  padding: 6px;
  color: #fff;
  border-radius: 5px;
  font-weight: bold;
  position: relative;
  width: max-content;
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 25px;
}
.modal__close-order .modal__form-content .stars .error::before,
.modal__cancel-order .modal__form-content .stars .error::before,
.modal__order-bill .modal__form-content .stars .error::before,
.modal__order-error .modal__form-content .stars .error::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: #f95003;
  left: 50%;
  transform: translateX(-10px);
  top: 0;
  rotate: 45deg;
  border-radius: 4px;
}
.modal__close-order .modal__form-content .stars .elements,
.modal__cancel-order .modal__form-content .stars .elements,
.modal__order-bill .modal__form-content .stars .elements,
.modal__order-error .modal__form-content .stars .elements {
  display: flex;
  justify-content: center;
}
.modal__close-order .modal__form-content .stars .elements li,
.modal__cancel-order .modal__form-content .stars .elements li,
.modal__order-bill .modal__form-content .stars .elements li,
.modal__order-error .modal__form-content .stars .elements li {
  padding: 0 8px;
  cursor: pointer;
}
.modal__close-order .modal__form-content .stars .elements li.selected svg path,
.modal__cancel-order .modal__form-content .stars .elements li.selected svg path,
.modal__order-bill .modal__form-content .stars .elements li.selected svg path,
.modal__order-error .modal__form-content .stars .elements li.selected svg path {
  fill: #03a868;
}
.modal__close-order .modal__form-content .stars .elements svg,
.modal__cancel-order .modal__form-content .stars .elements svg,
.modal__order-bill .modal__form-content .stars .elements svg,
.modal__order-error .modal__form-content .stars .elements svg {
  width: 32px;
  height: 32px;
}
.modal__close-order .modal__form-content .stars .elements svg path,
.modal__cancel-order .modal__form-content .stars .elements svg path,
.modal__order-bill .modal__form-content .stars .elements svg path,
.modal__order-error .modal__form-content .stars .elements svg path {
  fill: #ccc;
}
.modal__close-order .modal__form-content .stars .elements .ratings_over svg,
.modal__cancel-order .modal__form-content .stars .elements .ratings_over svg,
.modal__order-bill .modal__form-content .stars .elements .ratings_over svg,
.modal__order-error .modal__form-content .stars .elements .ratings_over svg {
  stroke: #03a868;
}
.modal__close-order .modal__form-content .stars .elements .ratings_over svg path,
.modal__cancel-order .modal__form-content .stars .elements .ratings_over svg path,
.modal__order-bill .modal__form-content .stars .elements .ratings_over svg path,
.modal__order-error .modal__form-content .stars .elements .ratings_over svg path {
  fill: #ccc !important;
}
.modal__close-order .modal__form-content .payment_sum,
.modal__cancel-order .modal__form-content .payment_sum,
.modal__order-bill .modal__form-content .payment_sum,
.modal__order-error .modal__form-content .payment_sum {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 14px;
  font-weight: bold;
}
.modal__close-order .modal__form-content .rating,
.modal__cancel-order .modal__form-content .rating,
.modal__order-bill .modal__form-content .rating,
.modal__order-error .modal__form-content .rating {
  position: absolute;
  height: 0;
  width: 0;
  opacity: 0;
  top: 140px;
  left: 100px;
}
.modal__close-order .modal__form-content .form__group,
.modal__cancel-order .modal__form-content .form__group,
.modal__order-bill .modal__form-content .form__group,
.modal__order-error .modal__form-content .form__group {
  display: flex;
  flex-direction: column;
}
.modal__close-order .modal__form-content .form__group label,
.modal__cancel-order .modal__form-content .form__group label,
.modal__order-bill .modal__form-content .form__group label,
.modal__order-error .modal__form-content .form__group label {
  font-size: 12px;
  color: #777;
  font-weight: bold;
  padding-bottom: 8px;
}
.modal__close-order .modal__form-content .form__group input[type=number],
.modal__cancel-order .modal__form-content .form__group input[type=number],
.modal__order-bill .modal__form-content .form__group input[type=number],
.modal__order-error .modal__form-content .form__group input[type=number] {
  height: 42px;
  border-radius: 5px;
  margin: 8px 0;
  padding: 16px;
  border: 1px solid #f0f0f0;
}
.modal__close-order .modal__form-content .form__group input[type=checkbox],
.modal__cancel-order .modal__form-content .form__group input[type=checkbox],
.modal__order-bill .modal__form-content .form__group input[type=checkbox],
.modal__order-error .modal__form-content .form__group input[type=checkbox] {
  height: 32px;
  width: 32px;
}
.modal__close-order .modal__form-content .form__group textarea,
.modal__cancel-order .modal__form-content .form__group textarea,
.modal__order-bill .modal__form-content .form__group textarea,
.modal__order-error .modal__form-content .form__group textarea {
  padding: 8px;
  border: 1px solid #f0f0f0;
  font-size: 12px;
  height: 90px;
  resize: none;
}
.modal__close-order .modal__form-content .from__list .form__group,
.modal__cancel-order .modal__form-content .from__list .form__group,
.modal__order-bill .modal__form-content .from__list .form__group,
.modal__order-error .modal__form-content .from__list .form__group {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 16px;
  padding: 8px;
}
.modal__close-order .modal__form-content .from__list .container,
.modal__cancel-order .modal__form-content .from__list .container,
.modal__order-bill .modal__form-content .from__list .container,
.modal__order-error .modal__form-content .from__list .container {
  display: flex;
  position: relative;
  padding: 0;
  padding-left: 32px;
  margin-bottom: 12px;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  color: #777;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  height: 25px;
  font-weight: bold;
}
.modal__close-order .modal__form-content .from__list .container i,
.modal__cancel-order .modal__form-content .from__list .container i,
.modal__order-bill .modal__form-content .from__list .container i,
.modal__order-error .modal__form-content .from__list .container i {
  font-style: normal;
}
.modal__close-order .modal__form-content .from__list .container input,
.modal__cancel-order .modal__form-content .from__list .container input,
.modal__order-bill .modal__form-content .from__list .container input,
.modal__order-error .modal__form-content .from__list .container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.modal__close-order .modal__form-content .from__list .checkmark,
.modal__cancel-order .modal__form-content .from__list .checkmark,
.modal__order-bill .modal__form-content .from__list .checkmark,
.modal__order-error .modal__form-content .from__list .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}
.modal__close-order .modal__form-content .from__list .container:hover input ~ .checkmark,
.modal__cancel-order .modal__form-content .from__list .container:hover input ~ .checkmark,
.modal__order-bill .modal__form-content .from__list .container:hover input ~ .checkmark,
.modal__order-error .modal__form-content .from__list .container:hover input ~ .checkmark {
  background-color: #ccc;
}
.modal__close-order .modal__form-content .from__list .container input:checked ~ .checkmark,
.modal__cancel-order .modal__form-content .from__list .container input:checked ~ .checkmark,
.modal__order-bill .modal__form-content .from__list .container input:checked ~ .checkmark,
.modal__order-error .modal__form-content .from__list .container input:checked ~ .checkmark {
  background-color: #03a868;
}
.modal__close-order .modal__form-content .from__list .checkmark:after,
.modal__cancel-order .modal__form-content .from__list .checkmark:after,
.modal__order-bill .modal__form-content .from__list .checkmark:after,
.modal__order-error .modal__form-content .from__list .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.modal__close-order .modal__form-content .from__list .container input:checked ~ .checkmark:after,
.modal__cancel-order .modal__form-content .from__list .container input:checked ~ .checkmark:after,
.modal__order-bill .modal__form-content .from__list .container input:checked ~ .checkmark:after,
.modal__order-error .modal__form-content .from__list .container input:checked ~ .checkmark:after {
  display: block;
}
.modal__close-order .modal__form-content .from__list .container .checkmark:after,
.modal__cancel-order .modal__form-content .from__list .container .checkmark:after,
.modal__order-bill .modal__form-content .from__list .container .checkmark:after,
.modal__order-error .modal__form-content .from__list .container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
.modal__close-order .modal__form .modal__form-btns,
.modal__cancel-order .modal__form .modal__form-btns,
.modal__order-bill .modal__form .modal__form-btns,
.modal__order-error .modal__form .modal__form-btns {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.modal__close-order .modal__form .modal__form-btns .btn,
.modal__cancel-order .modal__form .modal__form-btns .btn,
.modal__order-bill .modal__form .modal__form-btns .btn,
.modal__order-error .modal__form .modal__form-btns .btn {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}
.modal__close-order .modal__form .modal__form-btns .btn__success,
.modal__cancel-order .modal__form .modal__form-btns .btn__success,
.modal__order-bill .modal__form .modal__form-btns .btn__success,
.modal__order-error .modal__form .modal__form-btns .btn__success {
  background-color: #03a868;
  color: #fff;
}
.modal__close-order .modal__form .modal__form-btns .btn__success:hover,
.modal__cancel-order .modal__form .modal__form-btns .btn__success:hover,
.modal__order-bill .modal__form .modal__form-btns .btn__success:hover,
.modal__order-error .modal__form .modal__form-btns .btn__success:hover {
  background-color: #038f58;
}
.modal__close-order .modal__form .modal__form-btns .btn__danger,
.modal__cancel-order .modal__form .modal__form-btns .btn__danger,
.modal__order-bill .modal__form .modal__form-btns .btn__danger,
.modal__order-error .modal__form .modal__form-btns .btn__danger {
  background-color: #f95003;
  color: #fff;
}
.modal__close-order .modal__form .modal__form-btns .btn__danger:hover,
.modal__cancel-order .modal__form .modal__form-btns .btn__danger:hover,
.modal__order-bill .modal__form .modal__form-btns .btn__danger:hover,
.modal__order-error .modal__form .modal__form-btns .btn__danger:hover {
  background-color: #e04803;
}
.modal__close-order .modal__form .modal__form-btns .btn__default,
.modal__cancel-order .modal__form .modal__form-btns .btn__default,
.modal__order-bill .modal__form .modal__form-btns .btn__default,
.modal__order-error .modal__form .modal__form-btns .btn__default {
  background-color: #e9e9ed;
  color: #333;
}
.modal__close-order .modal__form .modal__form-btns .btn__default:hover,
.modal__cancel-order .modal__form .modal__form-btns .btn__default:hover,
.modal__order-bill .modal__form .modal__form-btns .btn__default:hover,
.modal__order-error .modal__form .modal__form-btns .btn__default:hover {
  background-color: #cdcdd6;
}

@media only screen and (max-device-width: 584px) {
  .chat {
    width: 100%;
  }
  .chat .chat__form .messages {
    height: calc(100vh - 465px);
  }
}

/*# sourceMappingURL=chat.css.map */
