/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in
*    IE on Windows Phone and in iOS.
*/
html {
  line-height: 1.15;
  /* 1 */
  -ms-text-size-adjust: 100%;
  /* 2 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

/* Sections
========================================================================== */
/**
* Remove the margin in all browsers (opinionated).
*/
body {
  margin: 0;
}

/**
* Add the correct display in IE 9-.
*/
article,
aside,
footer,
header,
nav,
section {
  display: block;
}

/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
========================================================================== */
/**
* Add the correct display in IE 9-.
* 1. Add the correct display in IE.
*/
figcaption,
figure,
main {
  /* 1 */
  display: block;
}

/**
* Add the correct margin in IE 8.
*/
figure {
  margin: 1em 40px;
}

/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/* Text-level semantics
========================================================================== */
/**
* 1. Remove the gray background on active links in IE 10.
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
*/
a {
  background-color: transparent;
  /* 1 */
  -webkit-text-decoration-skip: objects;
  /* 2 */
}

/**
* 1. Remove the bottom border in Chrome 57- and Firefox 39-.
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  /* 2 */
}

/**
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
*/
b,
strong {
  font-weight: inherit;
}

/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
  font-weight: bolder;
}

/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/**
* Add the correct font style in Android 4.3-.
*/
dfn {
  font-style: italic;
}

/**
* Add the correct background and color in IE 9-.
*/
mark {
  background-color: #ff0;
  color: #000;
}

/**
* Add the correct font size in all browsers.
*/
small {
  font-size: 80%;
}

/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
========================================================================== */
/**
* Add the correct display in IE 9-.
*/
audio,
video {
  display: inline-block;
}

/**
* Add the correct display in iOS 4-7.
*/
audio:not([controls]) {
  display: none;
  height: 0;
}

/**
* Remove the border on images inside links in IE 10-.
*/
img {
  border-style: none;
}

/**
* Hide the overflow in IE.
*/
svg:not(:root) {
  overflow: hidden;
}

/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers (opinionated).
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
  font-family: sans-serif;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input {
  /* 1 */
  overflow: visible;
}

/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select {
  /* 1 */
  text-transform: none;
}

/**
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
*    controls in Android 4.
* 2. Correct the inability to style clickable types in iOS and Safari.
*/
button,
html [type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  /* 2 */
}

/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
* Correct the padding in Firefox.
*/
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
*    `fieldset` elements in all browsers.
*/
legend {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
}

/**
* 1. Add the correct display in IE 9-.
* 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
  display: inline-block;
  /* 1 */
  vertical-align: baseline;
  /* 2 */
}

/**
* Remove the default vertical scrollbar in IE.
*/
textarea {
  overflow: auto;
}

/**
* 1. Add the correct box sizing in IE 10-.
* 2. Remove the padding in IE 10-.
*/
[type="checkbox"],
[type="radio"] {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
* Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/* Interactive
========================================================================== */
/*
* Add the correct display in IE 9-.
* 1. Add the correct display in Edge, IE, and Firefox.
*/
details,
menu {
  display: block;
}

/*
* Add the correct display in all browsers.
*/
summary {
  display: list-item;
}

/* Scripting
========================================================================== */
/**
* Add the correct display in IE 9-.
*/
canvas {
  display: inline-block;
}

/**
* Add the correct display in IE.
*/
template {
  display: none;
}

/* Hidden
========================================================================== */
/**
* Add the correct display in IE 10-.
*/
[hidden] {
  display: none;
}

@font-face {
  font-family: 'PT Sans';
  src: url("../fonts/pt_sans-web-regular.woff2") format("woff2"), url("../fonts/pt_sans-web-regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  height: 100%;
}

*,
*::before,
*::after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

body {
  min-width: 320px;
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #000000;
  word-wrap: break-word;
  font-family: "PT Sans", "Arial", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

h1, h2, h3, h4, h5, h6, p {
  margin-top: 0;
}

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
  /* 1 */
}

a {
  color: inherit;
  text-decoration: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

.wrapper {
  height: calc(100vh - 80px);
  padding-top: 40px;
  padding-bottom: 40px;
  padding-right: 10px;
  padding-left: 10px;
}

.dialog {
  max-width: 728px;
  margin: 0 auto;
  /* padding-bottom: 20px; */
  -webkit-box-shadow: 0 0 43px rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 43px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  background-color: #ffffff;
}

.dialog__wrapper {
  padding: 17px 10px 28px;
  padding-bottom: 0;
  position: relative;
}


.mCSB_container {
  padding-bottom: 10px !important;
}

.dialog__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  padding-bottom: 20px;
}

.dialog__header-img-wrapper {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 126px;
  height: 126px;
  margin-right: 34px;
  border-radius: 50%;
  background-color: rgba(216, 216, 216, 0.5);
  overflow: hidden;
}

.dialog__bot-desc {
  padding-top: 15px;
}

.dialog__header-bot-name {
  display: block;
  font-size: 42px;
  letter-spacing: -1.5px;
}

.dialog--collapsed {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.dialog--collapsed .dialog__wrapper {
  display: none;
}

.dialog__expand {
  padding: 10px;
}

.dialog__posts {
  height: calc(100vh - 250px);
  padding: 0;
  position: relative;
  overflow-y: auto;
  padding-bottom: 10px;
}

/* .dialog__posts  div:last-child {
  margin-bottom: 0;
} */

.dialog__posts .dialog__choises-item:last-of-type {
  margin-bottom: 0;
}

.dialog__form {
  position: relative;
}

.dialog__choise {
  max-width: 532px;
  margin: 0 auto 32px;
  border: 2px solid #ededed;
  border-radius: 20px;
  overflow: hidden;
}

.dialog__choise img {
  display: block;
}

.dialog__field {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 24px;
  border-radius: 10px;
  border: none;
  outline: none;
}

.dialog__bot-phrase {
  padding: 20px 17px;
  color: #000000;
  background-color: #f1f0f0;
  letter-spacing: -0.2px;
}

.dialog__choises {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dialog__choises-item {
  padding: 17px;
  text-align: center;
  color: #0084ff;
  letter-spacing: -0.1px;
  border-bottom: 1px solid #e5e5ea;
  cursor: pointer;
}

.dialog__choises-item:hover {
  background-color: rgba(241, 240, 240, 0.7);
}

.dialog__choises-item--select:hover {
  background-color: transparent;
}

.dialog__choises-item:first-child {
  border-top: 1px solid #e5e5ea;
}

.dialog__choises-item:last-child {
  border-bottom: none;
}

.dialog__close {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #000000;
  background-color: #ffffff;
  cursor: pointer;
}

.dialog__close::before, .dialog__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 2px;
  background: #000000;
}

.dialog__close::after {
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
  transform: translate(-50%, -50%) rotate(45deg);
}

.dialog__close::before {
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.dialog__send-btn {
  position: absolute;
  top: 0;
  right: 0;
  padding: 15px 20px;
  width: 184px;
  min-height: 60px;
  border: none;
  background-color: #007aff;
  color: #ffffff;
  letter-spacing: -0.82px;
  outline: none;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.dialog__send-btn--static {
  position: static;
  width: 100%;
}

.dialog__send-btn:hover {
  background-color: #2e9bff;
}

.dialog__bots {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.dialog__bot {
  padding: 0 14px;
  margin-bottom: 30px;
}

.dialog__bot-name {
  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;
  width: 200px;
  min-height: 50px;
  padding: 10px;
  border-radius: 20px;
  border: 2px solid #ededed;
  background-color: #ffffff;
  color: #0084ff;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  letter-spacing: -0.1px;
}

.dialog__bot-position {
  display: block;
  color: #929292;
  font-size: 28px;
  letter-spacing: -0.3px;
}

.dialog__user-post {
  margin-left: auto;
  margin-right: 10px;
  background-color: #007aff;
  color: #ffffff;
}

.dialog__user-post::before {
  content: "";
  right: -6px;
  background: url("../img/user-balloon.svg") no-repeat center;
}

.dialog__bot-img-wrapper {
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 50%;
  margin-bottom: 35px;
}

.dialog__bot-post {
  margin-right: auto;
  margin-left: 10px;
  background-color: #e5e5ea;
  color: #000000;
}

.dialog__bot-post::before {
  content: "";
  left: -6px;
  background: url("../img/bot-balloon.svg") no-repeat center;
}

.select2-container {
  flex-grow: 1;
}

input.dialog__field {
  padding: 15px 20px;
}

.dialog__bot-post,
.dialog__user-post {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 67.889908256%;
  min-height: 70px;
  margin-bottom: 32px;
  padding: 10px 25px;
  border-radius: 25px;
  letter-spacing: -0.52px;
}

.dialog__bot-post * {
  width: 100%;
}

.dialog__user-post * {
  width: 100%;
}

.dialog__bot-post a {
  width: 100%;
  text-decoration: underline;
  color: #007aff;
}

.dialog__bot-post a:hover {
  text-decoration: none;
}

.dialog__bot-post::before,
.dialog__user-post::before {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 16px;
  height: 13px;
  width: 16px;
  height: 13px;
}

.dialog__bot:hover .dialog__bot-name {
  color: #ffffff;
  background-color: #0084ff;
  border-color: #0084ff;
}

select.dialog__field {
  cursor: pointer;
}

select.dialog__field option {
  cursor: pointer;
}

.dialog__choises--answers-only .dialog__choises-item:first-child {
  border-top: 0;
}

.mCSB_container {
  overflow: visible !important;
}

.mCSB_scrollTools .mCSB_dragger {
  height: 70px !important;
}

.mCSB_inside > .mCSB_container {
  margin-left: 7px;
}

.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
  background: #cfcfcf;
}

.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
  background: #cfcfcf;
}

.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar {
  background: #cfcfcf;
}

.select2-container .select2-selection--single {
  display: block;
  width: 100%;
  height: 60px;
  padding: 0;
  font: inherit;
  font-size: 24px;
  outline: none;
  border: none;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 60px;
}

.dialog__choises-item--select {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 0;
  border-top: none !important
}

.dialog--collapsed .dialog__close {
  display: none;
}

@media (max-width: 768px) {
  .dialog__header-bot-name {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .wrapper {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .dialog__bots {
    display: block;
    margin-bottom: 25px;
  }
  .dialog__bot-name {
    margin: 0 auto;
  }

  .dialog__posts {
    height: calc(100vh - 140px);
  }

  .dialog__user-post {
    margin-right: 0;
    margin-left: 0;
  }

  .mCSB_container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .dialog__bot-post, .dialog__user-post {
    margin-bottom: 20px;
  }

  .dialog__bot-post {
    margin-left: 0;
    margin-right: 0;
  }
  .dialog__posts {
    padding-left: 0;
  }
  .dialog__wrapper {
    padding-top: 10px;
    padding-left: 0;
    padding-right: 0;
  }

  .dialog__header {
    padding-left: 10px;
    padding-right: 10px;
  }

  .dialog__send-btn {
    min-height: 40px;
  }
  .dialog__header-img-wrapper {
    width: 80px;
    height: 80px;
    margin-right: 10px;
  }
  .dialog__bot-phrase {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 18px;
  }
  .dialog__form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
  .dialog__send-btn {
    position: static;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .dialog__bot-position {
    font-size: 20px;
  }
  .dialog__header-bot-name {
    font-size: 24px;
  }
  .dialog__bot-img-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
  }
  .dialog__bot-desc {
    padding-top: 0;
  }
  input.dialog__field {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 18px;
  }
  .dialog__bot-post, .dialog__user-post {
    width: 100%;
  }
  .select2-container .select2-selection--single {
    height: 40px;
  }
  .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 18px;
    line-height: 40px;
  }
  .dialog__bot-post, .dialog__user-post {
    min-height: 40px;
    line-height: 1.1;
    font-size: 18px;
  }
  .dialog__choises-item {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .mCSB_inside > .mCSB_container {
    margin-right: 21px;
  }
}
.chat-loader img{
  margin: auto;
}


@media (max-width: 375px) {
  .mCSB_container {
    padding-right: 5px;
    padding-left: 5px;
  }
}