#cb {}
#cb p,
#cb select,
#cb textarea,
#cb button {
  font-size: 20px;
}
#cb select {
  margin-top: 15px;
  padding: 8px;
  width: 100%;
}
#cb input[type="radio"],
#cb input[type="checkbox"],
#cb select,
#cb button { cursor: pointer; }
#cb_container {
  text-align: left;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* --- header --- */
#cb_header { display: none; }

/* --- message --- */
#cb_messages {}

/* --- message left --- */
.cb_left_message {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  padding-bottom: 30px;
  width: 100%;
}
.cb_left_faceicon { }
.cb_left_faceicon img {
  height: 80px;
  width: 80px;
  background: #fff;
  border-radius: 50%;
}
.cb_left_chat {
  max-width: 83%;
}
/*
.cb_left_says {
  position: relative;
  margin-left: 10px;
  padding: 10px 12px;
  background: #fff;
  border: solid 1px #00DDC3;
  border-radius: 12px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}
.cb_left_says:after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 12px;
  left: -11px;
  border: 7px solid #00DDC3;
  border-right: 10px solid #fff;
  -ms-transform: rotate(35deg);
  -webkit-transform: rotate(35deg);
  transform: rotate(35deg);
  clip-path: polygon(100% 0px, 0px 50%, 100% 100%);
}
*/
.cb_left_says {
  position: relative;
  display: inline-block;
  margin-left: 10px;
  padding: 10px 12px;
  border: 2px solid #00ddc3;
  border-radius: 12px;
  background-color: #fff;
  /*box-shadow: 2px 2px 4px rgba(0,0,0,0.4);*/
}

.cb_left_says::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 0;
  border-style: solid;
  border-width: 0 14px 15px 0;
  border-color: transparent #00ddc3 transparent transparent;
  translate: -100% -50%;
  transform: skew(0, 17deg);
  transform-origin: right;
}
.cb_left_says::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 0;
  border-style: solid;
  border-width: 0 9.4px 10.1px 0;
  border-color: transparent #ffffff transparent transparent;
  translate: -100% calc(-50% - 0.4px);
  transform: skew(0, 17deg);
  transform-origin: right;
}
.cb_left_says p {
  margin: 0;
  word-break:break-all;
}

/* --- message right --- */
.cb_right_message {
  overflow: hidden;
  padding-bottom: 30px;
  width: 100%;
}
.cb_right_chat {
  position:relative;
  float:right;
  margin:5px 0 5px 0;
  max-width:85%;
}
.cb_right_read p {
  position:absolute;
  left: -32px;
  bottom: 0;
  margin: 0;
  font-size: 15px !important;
  opacity: 0;
  animation: cb_right_read_fade_in .3s forwards;
  animation-delay: .3s;
}
@keyframes cb_right_read_fade_in {
  0% { opacity: 0; }
  100% {  opacity: 1; }
}
/*
.cb_right_says {
  float: right;
  display: inline-block;
  position: relative;
  margin-right: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #00ddc3;
  box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.3);
}
.cb_right_says:after {
  content: "";
  position: absolute;
  top: 8px;
  right: -16px;
  border: 7px solid transparent;
  border-left: 15px solid #ff8c00;
  -ms-transform: rotate(-35deg);
  -webkit-transform: rotate(-35deg);
  transform: rotate(-35deg);
}
*/

.cb_right_says {
  position: relative;
  display: inline-block;
  margin-right: 10px;
  padding: 10px 12px;
  border: 2px solid #00ddc3;
  border-radius: 12px;
  background-color: #00ddc3;
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
}

.cb_right_says::before {
  content: "";
  position: absolute;
  top: 25px;
  right: 0;
  border-style: solid;
  border-width: 0 0 15px 12px;
  border-color: transparent transparent transparent #00ddc3;
  translate: 100% -50%;
  transform: skew(0, -9deg);
  transform-origin: left;
}
.cb_right_says::after {
  content: "";
  position: absolute;
  top: 25px;
  right: 0;
  border-style: solid;
  border-width: 0 0 9.8px 7.8px;
  border-color: transparent transparent transparent #00ddc3;
  translate: 100% calc(-50% - 0.4px);
  transform: skew(0, -9deg);
  transform-origin: left;
}

.cb_right_says p {
  margin: 0;
  word-break: break-all;
}

/* --- input --- */
.cb_input_box ul {
  padding: 0;
  list-style:none;
}
.cb_input_box ul li {
  padding-top :5px;
}

/*--- img, input in img ---*/
.cb_img_box,
.cb_input_img_box {
  width: 500px;
}
.cb_img_box ul,
.cb_input_img_box ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 15px 0;
  padding-left: 0;
}
.cb_img_box li,
.cb_input_img_box li {
  text-align: center;
  margin: 4%;
  width: 42%;
}
.cb_img_box li img,
.cb_input_img_box li img {
  width: 100%;
}
.cb_input_img_box #input_img4,
.cb_input_img_box #input_img5 {
  display: none;
}
.cb_input_img_box li:nth-of-type(5),
.cb_input_img_box li:nth-of-type(6) {
  border-top: solid 1px #777;
}
.cb_img_box img {
  margin: 20px 100px;
  max-width: 100%;
  border: 5px solid #FFF;
  box-shadow: 0 0 5px #999;
}

/*--- button ---*/
.cb_button_box {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  margin: 15px 0;
  width: 500px;
}
.cb_button_box button {
  text-align: center;
  margin: 1.5%;
  width: 150px;
  height: 70px;
  color: #E67E39;
  font-weight: bold;
  background: #fff;
  border: solid 2px #E67E39;
  border-radius: 5px;
  box-shadow: 2px 2px 4px rgba(200, 200, 200, 0.4);
}
.cb_button_box button:hover {
  color: #fff;
  background: #E67E39;
}
.cb_button_box button:disabled {
  color: #eee;
  background: none;
  border: solid 2px #eee;
}
.cb_button_box button:focus {
  outline: none;
}
/*--- Send Area ---*/
#cb_send {
  text-align: center;
  margin: 0 100px;
}
#cb_send_message {}
#cb_send_message textarea {
  padding: 10px;
  width: 100%;
  height: 40px;
  border-radius: 3px;
  box-sizing: border-box;
}
#cb_send_btn {}
#cb_send_btn button {
  cursor: pointer;
  text-align: center;
  height: 45px;
  width: 100%;
  color: #fff;
  background: #E67E39;
  border: 1px solid #bbb;
  border-radius: 3px;
}
#cb_send_btn button:hover {
  opacity: .5;
}

/* --- sp --- */
@media screen and (max-width:700px){
  #cb {
    width: 100%;
    height:100%;
  }
  #cb p {
    font-size: clamp(17px, 3.94432vw, 20px);
  }
  #cb select,
  #cb textarea,
  #cb button {
    font-size: clamp(19px, 4.40835vw, 20px);
  }
  .cb_left_chat {
    max-width: none;
    width: 85%;
  }
  .cb_left_faceicon img {
    height: 50px;
    width: 50px;
  }
  .cb_left_says {
    width: 85%;
  }
  .cb_img_box,
  .cb_input_img_box,
  .cb_button_box {
    width: 100%;
  }
  .cb_right_read p {
    font-size: 13px !important;
  }
  .cb_img_box img {
    margin: 20px 0 0;
    width: 96%;
    max-width: none;
  }
  .cb_button_box button {
    margin: 2% ;
    width: 46%;
  }
  #cb_send {
    margin: 0 20px;
  }
}
@media screen and (max-width: 430px) {
  #cb p {
    font-size: clamp(12px, 3.75vw, 17px);
  }
  #cb select,
  #cb textarea,
  #cb button {
    font-size: clamp(14px, 4.375vw, 19px);
  }
}
