.wchat-clear-fix { clear: both; }

/* Chat Button */
#wchat-button { position: fixed; right: 0px; bottom: 10px; width: 108px; height: 230px; z-index: 1400; cursor: pointer; }
#wchat-button.right { right: 0px; }
#wchat-button.left { left: 0px; }
#wchat-button span { display: block; }
#wchat-button.right .arrow { float: left; margin-top: 195px; width: 0px; height: 0px; border-style: solid; border-width: 0 0 28px 15px; border-color: transparent transparent #000000 transparent; }
#wchat-button.left .arrow { float: left; margin-top: 195px; width: 0px; height: 0px; border-style: solid; border-width: 0 15px 28px 0px; border-color: transparent transparent #000000 transparent; }
#wchat-button .box { float: left; width: 93px; height: 223px; background: #000000; }
#wchat-button .box .textWrapper { width: 0px; height: 0px; position: relative; top: 96px; left: -29px; }
#wchat-button .box .text { width: 150px; text-align: center; color: #fbaa19; -webkit-transform: rotate(270deg) translate(0px, 0px); -moz-transform: rotate(270deg) translate(0px, 0px); -o-transform: rotate(270deg) translate(0px, 0px); -ms-transform: rotate(270deg) translate(0px, 0px); transform: rotate(270deg) translate(0px, 0px); font-size: 22px; font-family: Helvetica, sans-serif; font-weight:bold; }

/* Chat Panel */
#wchat-panel {
  position: fixed;
  top: 89px;
  width: 280px;
  height: 100%;
  background: url(../images/back90.png);
  z-index: 1500;
  padding: 40px;
  padding-top: 54px;
  transition: transform 400ms ease-in-out;
  font-size: 16px;
  line-height: 18px;
}

#wchat-panel p {
  font-size: 16px;
  line-height: 18px;
}

#wchat-name, #wchat-input {
  font-size: 14px;
  line-height: 16px;
}

#chat-panel.left {
  left: 0;
  transform: translateX(-100%);
}

#chat-panel.right {
  right: 0;
  transform: translateX(100%);
}

#chat-panel.active {
  transform: translateX(0);
}

#wchat-close {
  position: absolute;
  right: 10px;
  top: 45px;
  z-index: 1510;
  width: 22px;
  height: 22px;
  display: block;
  background: url(../images/closebtn.gif);
  cursor: pointer;
}

#wchat-init p {
  font-family: ffdinregular, Verdana, Geneva, sans-serif;
  letter-spacing: 0.12em;
  color: #000;
  margin-bottom: 10px;
}

#wchat-init .button a {
  margin-bottom: 20px;
}

#wchat-name {
  width: 260px;
  background-color: rgba(255,255,255,.75);
  border: 1px solid #444444;
  padding: 8px;
  background-image: url(../images/formArrow.gif);
  background-repeat: no-repeat;
  background-position: 10px;
  text-align: center;
}

#wchat-container {
  position: relative;
  margin: 0px auto;
  width: 100%;
  display: none;
}

#wchat-submit, #wchat-end-chat {

  cursor: pointer;
}

#wchat-controls {
    margin: 0px auto;
    width: 100%;
    height: 100px;
    display: table;
}

#wchat-input {
    width: 260px;
    background-color: rgba(255,255,255,.75);
    border: 1px solid #444444;
    padding: 8px;
    resize: none;
}

#wchat-panel .button a {
  margin-top: 20px;
  display: block;
  padding: 0;
  width: 270px;
  line-height: 30px;
}

#wchat-history {
  margin: 0px auto;
  margin-bottom: 20px;
  height: 275px;
  overflow: auto;
  text-align: left;
  background-color: rgba(255,255,255,.75);
  border: 1px solid #444444;
  padding: 8px;
}

.wchat-system-msg {
  font-weight: bold;
  font-style: italic;
  color: #333333;
  margin-top: 5px;
  margin-bottom: 10px;
  display: table;
}

.wchat-presence {
  color: #333333;
  margin-top: 5px;
  margin-bottom: 10px;
}

.wchat-presence-user {
  color: #0068AE;
}

.wchat-message-container {
  font-family: Arial, sans-serif;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.wchat-message-containerRemote .wchat-message {
  background-color: #fdc55b;
  float: right;
  max-width: 80%;
}

.wchat-message-containerRemote .wchat-msg-time {
  text-align: right;
}

.wchat-message-containerLocal .wchat-message {
  background-color: #E6E5EA;
  float: left;
  max-width: 80%;
}

.wchat-user {
  font-size: 0.7em;
  margin-bottom: 5px;
}

.wchat-message {
  border-radius: 5px;
  padding: 5px 10px;
  margin-bottom: 5px;
}

.wchat-msg-time {
  color: #9f9d9e;
  font-size: 0.7em;
}

.wchat-userRemote {
  text-align: right;
}

#wchat-panel h2 {
  font-weight: bold;
  font-size: 34px;
  line-height: 44px;
  margin: 10px 0px 10px 0px;
}

#wchat-panel.left {
  left: 0;
  transform: translateX(-100%);
}

#wchat-panel.right {
  right: 0;
  transform: translateX(100%);
}

#wchat-panel.active {
  transform: translateX(0);
}

@media (max-width: 640px) {

  #wchat-button {
    display: none;
  }

  #wchat-panel {
    top: 91px;
    height: auto;
    width: 100%;
    padding: 20px 0;
    font-size: 24px;
    line-height: 30px;
  }

  #wchat-panel p, #wchat-input {

    font-size: 24px;
    line-height: 30px;
  }

  #wchat-panel h2 {
    display: block;
    font-weight: bold;
    font-size: 41px;
    line-height: 51px;
    margin: 20px 0px 10px 0px;
  }

  #wchat-panel,  #wchat-panel * {
    box-sizing: border-box;
  }

  #wchat-init {
    padding: 0 20px;
  }

  #wchat-name {
    font-size: 24px;
    line-height: 30px;
    width: 100%;
  }

  #wchat-container {
    padding: 0 20px;
  }

  #wchat-history {
    height: 240px;
    width: 100%;
  }

  #wchat-input {
    width: 100%;
    height: 50px;
  }

  #wchat-panel .button a {
    width: 100%;
  }

  #wchat-panel .button a {
    font-size: 24px;
    line-height: 54px;
  }
}