.chat {
  width: 300px;
  position: fixed;
  right: 100px;
  bottom: 0;
  background: #FFFFFF;
  -webkit-box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.16);
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.16);
}

.chat.chat--left {
  right: unset;
  left: 100px;
}


.chat a {
  text-decoration: none;
}

.chat-header {}

.chat-header__wrapper {
  padding: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.chat-header_common {
  background: #CED4D6;
}

.chat-header.chat-header_common {
  background: #272735;
}

.chat-header__caption {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.chat-header__caption span {
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 16px;
  color: #222829;
}

.chat-header.chat-header_common .chat-header__caption span {
  color: #FFFFFF;
}

.chat-header__caption svg {
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg)
}




.chat-header__caption_white span {
  margin-right: 8px;
}

.chat-header__settings-btn {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  background-color: transparent;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;

}

.chat-subheader__settings-btn {
  display: none;
}


.chat-header__settings-btn:focus {
  outline: none;
}


.chat-header__settings-btn svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #FFFFFF;
  pointer-events: none;
}




.chat-header.chat-header_billioner .chat-header__settings-btn svg {
  fill: none;
}

.chat-header__settings,
.chat-subheader__settings {
  /*  display: none; */


}


.chat-header__settings {
  background: #222829;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-family: Roboto;
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 16px;
  color: #FFFFFF;
  padding: 16px;
  display: none;
}

.close-settings {
  padding: 0;
  border: none;
  background-color: transparent;
  width: 16px;
  height: 16px;
  margin-right: 22px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
}

.close-settings:focus {
  outline: none;
}

.chat-header_billioner .close-settings svg,
.close-settings svg {
  width: 8px;
  height: 6px;
  stroke: #fff;
  stroke-width: 1;
  -webkit-transform: rotate(-180deg);
  transform: rotate(-180deg);
  cursor: pointer;
  pointer-events: none;
}


.chat-header__notification svg {
  opacity: .54;
}

.chat-header__close svg {
  opacity: .54;
}

.chat-header__close_active {
  opacity: 1;
}

.chat-header_common svg {
  stroke: #fff;
  pointer-events: none;
}

.chat-header_billioner svg {
  stroke: #222829;
}

.chat-header__notification_active svg {
  opacity: 1;
}

.chat-header__caption_white svg {
  fill: #fff;
}

.chat-header__notification {
  margin-left: auto;
  margin-right: 8px;
}

.chat-subheader {
  border-radius: 0px;
  display: none;
}

.chat-subheader__wrapper {
  padding: 16px;
}

.chat-subheader__link {
  font-style: normal;
  font-size: 16px;
  line-height: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.chat-header .chat-subheader__link_black span {
  font-weight: bold;
}

.chat-header_billioner {
  background: #CED4D6;
}

.chat-header.chat-header_billioner {
  background: linear-gradient(2.99deg, #F6C85B -0.63%, #FFE600 34.42%, #F2BC00 71.61%);
}

.chat-subheader__link_black span {
  color: #222829;
  margin-right: 8px;

}

.chat-subheader__link_black svg {
  stroke: #222829;
}

.chat-stream {
  padding: 10px 16px;
  height: calc(679px - 90px);
  max-height: calc(100vh - 262px);
  overflow-y: auto;
}



.chat-stream__message {
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 18px;
  color: #222829;
}

.chat-stream--font-small .chat-stream__message {
  font-size: 12px;
  line-height: 16px;
}

.chat-stream--font-med .chat-stream__message {
  font-size: 14px;
  line-height: 18px;
}

.chat-stream--font-large .chat-stream__message {
  font-size: 16px;
  line-height: 20px;
}

.chat-stream__message:not(:last-child) {
  margin-bottom: 12px;
}

.chat-form {
  background: #F9F9FA;
  padding: 16px;
  position: relative;
}



.chat-form__alert {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: #EB6A5E;
  margin: 16px;
  border-radius: 4px;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 18px;
  color: #fff;
}

.chat-form__alert_active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.chat-stream__user {
  color: #000000;
  font-weight: 700;
}

.chat-stream__user_admin {
  color: #EB6A5E;
}

.chat-stream__user_adressed {
  color: #288DE0;
}

.chat-form textarea {
  width: 100%;
  border: 1px solid #CED4D6;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  border-radius: 4px;
  padding: 16px;
  font-size: 14px;
  line-height: 18px;
  color: #222829;
  height: 100px;
  height: 52px;
  resize: none;
}

.chat-form__alert {
  background: #EB6A5E;
}

.chat-dropdown {
  background: #FFFFFF;
  border-radius: 4px;
  position: absolute;
  width: 184px;
  z-index: 2;
  -webkit-filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.25));
  filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.25));
  display: none;
}

.chat-dropdown_active {
  display: block;
}

.chat-dropdown:before {
  content: '';
  top: 100%;
  left: 8px;
  position: absolute;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top: 5px solid #fff;
}

.chat-dropdown__section {
  padding: 10px;
}

.chat-dropdown__section:not(:last-child) {
  border-bottom: 1px solid #CED4D6;
}

.chat-dropdown__caption {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.chat-dropdown__caption svg {
  margin-right: 7px;
}

.chat-dropdown__caption span {
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 18px;
  color: #222829;
}

.chat-dropdown__links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 8px;
}

a.chat-dropdown__link {
  font-style: normal;
  font-weight: normal;
  font-size: 12px;
  line-height: 12px;
  color: #657A7F;
}

a.chat-dropdown__link:hover {
  color: #EB6A5E;
}

.chat-dropdown__link:not(:last-child) {
  margin-right: 12px;
  margin-bottom: 8px;
}

.rotate {
  -webkit-transform: rotate(-90deg) !important;
  transform: rotate(-90deg) !important;
}

.chat-content__settings-form {
  height: 679px;
  max-height: calc(100vh - 172px);
  padding: 16px;
}

.settings-form__label {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
  line-height: 14px;
  color: #000000;
  display: block;
  margin-bottom: 12px;
}

.settings-form__font-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 32px;
}

.settings-form__font-label {
  margin-right: 12px;
  position: relative;
}

.settings-form__font-label:last-child {
  margin-right: 0;
}


.settings-form__font-input {
  display: none;
}

.settings-form__font-text {
  width: 24px;
  height: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border: 1px solid #CED4D6;
  border-radius: 4px;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: normal;
  color: #222829;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  cursor: pointer;
}


.settings-form__font-text.settings-form__font-text--small {
  font-size: 12px;
  line-height: 16px;
}

.settings-form__font-text.settings-form__font-text--med {
  font-size: 14px;
  line-height: 18px;
}

.settings-form__font-text.settings-form__font-text--med {
  font-size: 16px;
  line-height: 20px;
}

.settings-form__font-text:hover,
.settings-form__font-input:checked+.settings-form__font-text {
  border: 1px solid #288DE0;
  color: #288DE0;
}


.settings-form__position-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 48px;
}

.settings-form__position-label {
  width: 48%;
  margin-bottom: 12px;
}

.settings-form__position-input {
  display: none;
}

.settings-form__position-text {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 18px;
  color: #CED4D6;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  cursor: pointer;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}


.settings-form__position-text svg {
  width: 20px;
  height: 18px;
  margin-right: 10px;
  fill: #CED4D6;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.settings-form__position-text:hover,
.settings-form__position-input:checked+.settings-form__position-text {
  color: #288DE0;
}

.settings-form__position-text:hover svg,
.settings-form__position-input:checked+.settings-form__position-text svg {
  fill: #288DE0;
}

.settings-form__submit {
  display: block;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  margin: 0 auto;
  background-color: transparent;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 18px;
  color: #000000;
  padding: 8px 16px;
  border: 1px solid #000000;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
}