.theme_1 {
  --primary: #358DFF;
}

.theme_2 {
  --primary: #25552E;
}

.theme_3 {
  --primary: #F17551;
}

.rounchat {
  margin-top: 54px;
  padding-top: 6px;
  border-top: 0.03px solid rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 6px #F5F5F5;
  font-size: 14px;
  box-sizing: border-box;
}

.chat_list {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - (150px));
}
.chat_list ul {
  flex: 1;
}
.chat_list li {
  padding: 16px 20px;
  border-bottom: 1px solid #E2E2E2;
}
.chat_list li > a {
  display: flex;
  position: relative;
  align-items: center;
  -moz-column-gap: 8px;
       column-gap: 8px;
}
.chat_list li.new .detail p {
  font-weight: 700;
}
.chat_list .thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  overflow: hidden;
}
.chat_list .thumb img {
  width: 60px;
  height: 60px;
  border-radius: 100%;
}
.chat_list .detail {
  overflow: hidden;
  line-height: 20px;
}
.chat_list .detail p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.chat_list .date {
  flex-shrink: 0;
  margin-top: -22px;
  margin-left: auto;
  font-size: 10px;
  color: #777;
}
.chat_list .num {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 8px;
  min-width: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  height: 16px;
  line-height: 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 10px;
  color: #fff;
  font-weight: 700;
  background-color: #D72F20;
}
.chat_list .warning {
  flex-shrink: 0;
  margin-top: auto;
  padding: 20px 34px;
  color: #999999;
}

.chat_view {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #F5F5F5;
  overflow: hidden;
}
.chat_view .head {
  z-index: 1;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  -moz-column-gap: 8px;
       column-gap: 8px;
  padding: 16px 22px;
  background-color: #fff;
  border-bottom: 1px solid #E2E2E2;
  box-sizing: border-box;
}
.chat_view .head .thumb {
  overflow: hidden;
  height: 60px;
  width: 60px;
  border-radius: 30px;
}
.chat_view .head .leave {
  margin-left: auto;
  width: 24px;
  height: 24px;
  background: url("/assets/images/ico_leave.png") 0 0/contain no-repeat;
}
.chat_view .cont {
  flex: 1;
  overflow: hidden;
  overflow-y: auto;
  padding: 19px 20px 6%;
  box-sizing: border-box;
}
.chat_view .cont ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat_view .cont .head_date {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.chat_view .cont .head_date span {
  padding: 6px 28px;
  border: 1px solid #E2E2E2;
  border-radius: 100px;
  color: #777777;
  font-size: 12px;
  font-weight: 400;
  background-color: #fff;
}
.chat_view .cont li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 50px;
}
.chat_view .cont li .memberName {
  display: inline-block;
  padding: 4px 8px;
  font-weight: 600;
}
.chat_view .cont li .message {
  width: 100%;
  border: 1px solid #E2E2E2;
  border-radius: 0 16px 16px 16px;
  padding: 16px 15px 17px;
  background-color: #fff;
  line-height: 22px;
  box-sizing: border-box;
}
.chat_view .cont li + li {
  margin-top: 12px;
}
.chat_view .cont li.self {
  align-items: flex-end;
  margin-right: 0;
  margin-left: 50px;
}

.chat_view .cont li.self .message {
  background-color: #FFE691;
  border-radius: 16px 0 16px 16px;
}
.chat_view .cont li.self .date {
  left: auto;
  right: 100%;
  margin: 0 5px 0 0;
}
.chat_view .cont .date {
  position: absolute;
  left: 100%;
  bottom: 0;
  margin-left: 5px;
  font-size: 10px;
  line-height: 22px;
  white-space: nowrap;
  color: #777;
}
.chat_view .cont .sub {
  font-weight: 700;
}
.chat_view .cont .info {
  white-space: pre-wrap;
}
.chat_view .cont .button {
  margin-top: 30px;
}
.chat_view .cont .button button {
  width: 100%;
  height: 32px;
  background-color: var(--primary);
  color: #fff;
  border: 0 none;
  border-radius: 100px;
}
.chat_view .msg {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0 20px 16px;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 4px rgba(0, 0, 0, 0.05);
}
.chat_view .msg .btn_more {
  display: block;
  width: 100%;
  border: 0 none;
  background: none;
  padding: 10px 0 16px;
}
.chat_view .msg .btn_more > span {
  display: block;
  position: static;
  margin: 0 auto;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background-color: #E2E2E2;
  text-indent: 100%;
  clip-path: none;
  clip: none;
}
.chat_view .msg .form {
  position: relative;
}
.chat_view .msg .form .input {
  height: 38px;
  width: 100%;
  background-color: #F5F5F5;
  border: 0 none;
  border-radius: 4px;
  padding: 0 50px 0 20px;
  box-sizing: border-box;
}
.chat_view .msg .form .btn_send {
  position: absolute;
  right: 12px;
  top: calc(50% - 12px);
  border: 0 none;
  width: 24px;
  height: 24px;
  background: transparent url("/assets/images/ico_send.png") 0 0/contain no-repeat;
}
.chat_view .msg .form .btn_send:disabled {
  filter: grayscale(1);
}
.chat_view .msg .select {
  display: none;
  margin: 8px 0 36px;
}
.chat_view .msg .select h4 {
  margin-bottom: 13px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}
.chat_view .msg .select ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 8px;
}
.chat_view .msg .select li {
  width: calc(50% - 4px);
}
.chat_view .msg .select .input_radio {
  position: absolute;
  opacity: 0;
}
.chat_view .msg .select .input_radio + label {
  display: block;
  height: 30px;
  border: 1px solid #F5F5F5;
  background-color: #F5F5F5;
  border-radius: 100px;
  text-align: center;
  line-height: 30px;
  font-size: 12px;
  font-weight: 700;
  color: #999;
}
.chat_view .msg .select .input_radio:checked + label {
  background-color: #fff;
  border-color: #1F1F1F;
  color: #1F1F1F;
}
.chat_view .msg_open .select {
  display: block;
}
.chat_view .msg_open .form .input {
  background-color: rgba(195, 216, 255, 0.2);
  color: #1F1F1F;
  font-weight: 700;
}
.chat_view .msg_open .form .btn_send {
  filter: none;
}