html {
  -webkit-text-size-adjust:100%;
  -ms-text-size-adjust:100%;
}

.area-chatBanner {
  position: fixed;
  z-index: 900;
  width: 100%;
  left: 0;
  bottom: 0;
  height: 100px;
  background-color: rgba(0,0,0,0.5);
  text-align: center;
}
.btn--chatStart {
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.00, #ffd700), color-stop(1.0, #ff8c00));
  border: 1px solid #ff0;
  border-color: #ffa500 #a0522d #a0522d;
  box-shadow: 0px 0px 1px #fff inset;
  border-radius: 10px;
  display: inline-block;
  padding: 12px 50px;
  color: #fff;
  font-weight: bold;
  font-size: 24px;
  cursor: pointer;
  margin-top: 18px;
}
.chat-box {
  position: fixed;
  z-index: 1000;
  height: 80vh;
  width: 100%;
  max-width: 480px;
  bottom: 0;
  right: 5px;
  box-shadow: 0 0 8px #ccc;
  border-radius: 10px 10px 0 0;
}
@media screen and (max-width: 750px){
  .chat-box {
    height: 100%;
    right: 0;
  }
	.chat-box.is-open {
    right: 0!important;
    bottom: 0!important;
    top: 0!important;
    left: 0!important;
	}
}

.chat-box.is-hidden {
  top: 100%;
}
.chat-box__wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  border-radius: 10px 10px 0 0;
}
.chat-box__header,
.chat-box__footer {
  width: 100%;
  box-sizing: border-box;
}
.chat-box__header {
  /* flex-grow: 1; */
  flex-basis: 40px;
  position: relative;
  background-color: #F57C00;
}
.chat-box__title {
  padding: 8px 0 8px 12px;
  font-weight: bold;
  color: #fff;
  line-height: 24px;
}
.btn--chatToggle {
  position: absolute;
  top:10px;
  right: 10px;
  display: block;
  width: 30px;
  height: 24px;
  cursor: pointer;
}
.btn--chatToggle:before,
.btn--chatToggle:after {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background-color: #fff;
  position: absolute;
  top: 10px;
  -webkit-transition: -webkit-transform 300ms;
  transition: transform 300ms;
}
.is-close.btn--chatToggle:before,
.is-close.btn--chatToggle:after {
  /* top: 14px; */
}

.btn--chatToggle:before {
  left: 1.5px;
  transform: rotate(45deg);
}
.btn--chatToggle:after {
  right: 1.5px;
  transform: rotate(-45deg);
}
.is-close.btn--chatToggle:before {
  transform: rotate(-45deg);
  left: 1.5px;
}
.is-close.btn--chatToggle:after {
  transform: rotate(45deg);
  right: 1.5px;
}

.chat-box__body {
  overflow: auto;
  background: #fff;
  flex: 1;
  padding: 10px;
}
.chat-box__content {
  width: 100%;
  overflow-x: hidden;
}

.chat-box__content .chat-block.is-hidden {
  display: none;
}
.chat-box__msg {
  margin: 0 0 30px 0;
  position: relative;
}
.chat-box__msg.chat-box__msg--wide .chat-box__window{
  width: 80%;
}
.chat-box__confirm {
  width: 100%;
  text-align: center;
}

.chat-box__window {
  display: inline-block;
  max-width: 90%;
  /*padding: 0 1.6% 0 0;*/
  -webkit-border-radius: 6px;
      border-radius: 6px;
}
.chat-box__msg .time-stamp {
  color: #727171;
  font-style: italic;
  font-size: 12px;
}

.chat-box__window__content {
  padding: 5px 10px;
  line-height: 140%;
  -webkit-border-radius: 6px;
      border-radius: 6px;
  display: block;
  background-color: #FFE0B2;
  font-size: 14px;
}
.chat-box__msg.chat-box__owner {
  transition: left .5s;
  left: 0;
  text-align: left;
}
.chat-box__msg.chat-box__owner.is-hidden {
  /* left: -100%; */
  display: none;
  transition: left .5s;
}

.chat-box__owner .chat-box__window__content{
 
  -webkit-border-radius: 6px;
        border-radius: 6px;
  position: relative;
  font-size: 15px;
  padding: 9px 10px 10px;
}
.chat-box__owner .chat-box__window__content:before{
    content: "";
    display: block;
    position: absolute;
    right: 100%;
    top:13%;
    width: 0;
    border-top: 6px solid transparent;
    border-right: 10px solid #FFE0B2;
    border-bottom: 6px solid transparent;
    border-left: 6px solid transparent;
}

.chat-box__owner .name {
  margin: 0 5px 0 0;
  height: 40px;
  display: inline-block;
  vertical-align: top;
}
  .chat-box__owner .name img {
    width: 40px;
    -webkit-border-radius: 50%;
            border-radius: 50%;
    margin: 0 5px 0 0;
    vertical-align: middle;
  }
.chat-box__owner .time-stamp {
  margin-left: 5px;
}

.chat-box__user {
  text-align: right;
}
.chat-box__msg.chat-box__user {
  transition: left .5s;
  right: 0;
}
.chat-box__msg.chat-box__user.is-hidden {
  /* right: -100%; */
  display: none;
  transition: left .5s;
}
  .chat-box__user .chat-box__window {
    padding: 0 10px 0 0;
    text-align: left;
    min-width: 70%;
  }
  @media screen and (max-width: 750px){
    .chat-box__user .chat-box__window {
      min-width: 83%;
    }
  }
  
  .chat-box__user .chat-box__window__content{
    
    display: block;
    -webkit-border-radius: 6px;
          border-radius: 6px;
      /*padding: 2%;*/
    position: relative;
    background-color: #eee;
  }
  .chat-box__user .chat-box__window__content:after {
    content: "";
    display: block;
    position: absolute;
    left: 100%;
    top:13%;
    width: 0;
    border-top: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #eee;
  }
.chat-box__user .time-stamp {
  margin-right: 10px;
}

.chat-box__form {
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  position: relative;
}
.chat-box__form .formParts {
  display: inline-block;
  width: 100%;
}
.chat-box__form select {
  height: 40px;
  background-color: #fff;
  border: 1px solid #bbb;
  font-size: 13px;
}
.chat-box__form input[type=text] {
  width: 100%;
  padding: 2px 4px;
  box-sizing: border-box;
  line-height: 160%;
  height: 40px;
  font-size: 14px;
  border: 1px solid #bbb;
}
.chat-box__form .formParts ~ .formParts {
  margin-top: 10px;
}
.chat-box .form-label {
  margin: 4px 0 8px;
  font-size: 13px;
  
}

.chat-box .form-label label {
  color: #727171;
  font-weight: bold;
}



.separate {
  width: 80%;
  margin: 0 auto 20px;
  text-align: center;
  overflow: hidden;
}
  .separate span {
    display: inline-block;
    background-color: #fff;
    padding: 0 15px;
    color: #ea9e1a;
    font-size: 14px;
    position: relative;
  }
  .separate span:after,
  .separate span:before {
    content: "";
    border-bottom: 1px solid #ea9e1a;
    position: absolute;
    width: 99em;
    top: 50%;
  }
  .separate span:after {
    left: 100%;
  }
  .separate span:before {
    right: 100%;
  }

.chat-box__footer {
  /* height: 60px; */
  padding: 10px;
  flex-basis: 80px;
  display: flex;
  border-top: 1px solid #eee; 
}
.chat-box__footer textarea {
  font-size: 13px;
  resize: none;
  border: none;
  flex-grow: 1;
  box-shadow: 0 1px 3px #ccc;
  outline: none;
  padding: 4px;
}
.chat-box__footer .send {
  background-color: #F57C00;
  outline: none;
  margin-left: 10px; 
  border: 0;
  border-radius: 40px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px 10px;
  text-transform: uppercase;
  vertical-align: bottom;
  box-shadow: 0 1px 3px #aaa;
  cursor: pointer;
  -webkit-appearance: button;
}

.btn--chat {
  text-align: center;
  cursor: pointer;
  margin: 5px 0;
}
.btn--chat span {
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.00, #ffd700), color-stop(1.0, #ff8c00));
  border: 1px solid #ff0;
  border-color: #ffa500 #a0522d #a0522d;
  box-shadow: 0px 0px 1px #fff inset;
  border-radius: 10px;
  display: inline-block;
  padding: 8px 30px;
  color: #fff;
  font-weight: bold;
}
.input-error {
  background-color: red;
} 
.ch-error {
  display: block;
  background-color:#ef9a9a;
  color:#333;
  font-size:14px;
  padding:0 8px;
  white-space: nowrap;
  line-height: 28px;
  height: 28px;
  margin-bottom: 4px;
}
.ch-card {
  margin: 10px 0 0 0;
}
.ch-card tbody,
.ch-card tr,
.ch-card th,
.ch-card td {
  display: block;
  width: 100%;
}
.ch-card tr {
  border-top: 1px solid #ccc;
}

.ch-card th {
  font-weight: bold;
  margin: 5px 0;
  color: #727171;
}
.ch-card td {
  font-size: 12px;
  margin: 0 0 10px 0;
}
.ch-card .card .formParts {
  width: auto;
  vertical-align: initial;
  margin-bottom: 5px;
}
.ch-card .card img {
  max-width: 100%;
  height: auto;
}
.chat-box__form .ui-datepicker-trigger {
  top: 35px;
}
.chat-box__form .ui-datepicker-trigger img{
  max-width: 100%;
  height: auto;
}