/* Start-chat UI: styles used by apps/bitrix24-web/src/views/partials/start-chat/*.pug */

.storybrainResets,
.storybrainResets * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  flex-shrink: 0;
  text-decoration: none;
  min-width: 0;
  overflow-wrap: anywhere;
}

.storybrainResets,
.storybrainResets :not(span, a, ul, ol, li, p) {
  display: flex;
  flex-direction: column;
}

.storybrainResets ul,
.storybrainResets ol {
  text-indent: 0;
  padding-inline-start: 1.5em;
}

.storybrainResets p:empty::before {
  content: '';
  display: inline-block;
}

.storybrainResets img {
  object-fit: contain;
}

.storybrainResets svg {
  overflow: visible;
}

.waTemplate {
  position: relative;
  width: 492px;
  padding: 17px;
  border-radius: 5px;
  background-color: #f1f4f6;
}

.buttonBackText {
  color: #595959;
  font-size: 14px;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
    'Liberation Sans', sans-serif;
  position: relative;
  width: 100px;
  height: 24px;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.buttonSend {
  cursor: pointer;
  position: relative;
  width: 135px;
  height: 30px;
  border-radius: 10px;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #2fc6f6;
}

.buttonSend.disabled {
  filter: grayscale(60%);
}

.grayscale {
  filter: grayscale(100%);
}

.buttonBack {
  cursor: pointer;
  position: relative;
  left: 15px;
  width: 135px;
  height: 30px;
  border-radius: 10px;
  background-color: #ffffff;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.buttonSendText {
  color: #fff;
  font-size: 14px;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
    'Liberation Sans', sans-serif;
  position: relative;
  width: 100px;
  height: 24px;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.line {
  position: relative;
  width: 458px;
  height: 15px;
  box-shadow: inset 0px -1px 0px #d9d9d9;
}

.templateField {
  position: relative;
  left: 12px;
  width: 418px!important;
  height: 30px!important;
  outline: solid 1px #d9d9d9;
  outline-offset: -1px;
  background-color: #fff;
}

.templateFieldNumber {
  color: #595959;
  font-size: 14px;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
    'Liberation Sans', sans-serif;
  position: relative;
  width: 25px;
  height: 25px;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.templateFieldsTitle {
  color: #595959;
  font-size: 14px;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
    'Liberation Sans', sans-serif;
  position: relative;
  margin-bottom:15px;
  width: 183px;
  justify-content: center;
  flex-direction: column;
}

.waTemplateField {
  position: relative;
  width: 458px;
  height: 38px;
  outline: solid 1px #d9d9d9;
  outline-offset: -1px;
  background-color: #fff;
}

.waTemplateName {
  color: #595959;
  font-size: 14px;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
    'Liberation Sans', sans-serif;
  position: relative;
  left:15px;
  width: 424px!important;
  height: 38px!important;
  outline: 0px;
  justify-content: center;
  flex-direction: column;
}

.waMessage {
  position: relative;
  width: 300px;
  height: 350px;
  border-radius: 0 0 5px 5px;
  background-color: #efeae2;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.waMessageButton {
  position: relative;
  left:10px;
  width: 250px;
  height: 30px;
  background-color: #fff;
  box-shadow: inset 0px 1px 0px #f4f4f4;
  flex-direction: row !important;
}

.waMessageButtonText {
  color: #3497c3;
  font-size: 16px;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
    'Liberation Sans', sans-serif;
  position: relative;
  left: 40px;
  height: 30px;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.waMessageButtonArrow {
  position: relative;
  left: 34px;
  top: 6px;
  width: 20px;
  height: 20px;
}

.waMessageText {
  position: relative;
  left: 15px;
  width: 270px;
  border-radius: 10px 10px 10px 10px;
  background-color: #fff;
  margin-top: 15px;
}

.waMessageImage {
  position: relative;
  width: 250px;
  left:10px;
  margin-top:10px;
  padding-top:15px;
  padding-bottom:15px;
  justify-content: center;
  background-color: lightgray;
  text-align: center;
  align-items: center;
  flex-direction: column;
}

.waMessageTextB {
  position: relative;
  width: 223px;
  padding: 5px;
  justify-content: center;
  flex-direction: column;
}

.textBlock {
  margin-top: 0;
  padding: 5px;
  color: #595959;
  font-size: 16px;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
    'Liberation Sans', sans-serif;
}

.waMessageHead {
  position: relative;
  width: 300px;
  height: 42px;
  outline: solid 1px #25d366;
  outline-offset: -1px;
  border-radius: 5px 5px 0 0;
  background-color: #25d366;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.waMessageTitle {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
    'Liberation Sans', sans-serif;
  position: relative;
  left: 10px;
  height: 42px;
  width: 240px;
  text-align: left;
  word-break: normal;
  align-items: baseline;
  justify-content: center;
  flex-direction: column;
}

.waMessageLogo {
  position: relative;
  width: 25px;
  height: 25px;
}

.templateControls{
  flex-direction: row !important;
  margin-top: 15px;
}

.templateFieldRow{
  flex-direction: row !important;
  margin-top: 15px;
}

.textSize16{
  font-size: 16px;
  margin-bottom: 5px;
}

.infoTime{
  border-radius: 5px;
  border-color: #000000;
  border: 1px solid;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 2px;
  padding-bottom: 2px;
  cursor: help
}

.infoTime.ok{
  border-color: #00A650;
}

.infoTime.warning{
  border-color: #ffaa00 ;
}

.infoTime.error{
  border-color: #ff5752 ;
}

.clientRow{
  display: flex !important;
  align-items: center;
}

.clientRow .phone{
  width: 300px;
}

.clientRow .dialog{
  width: 80px
}

.clientRow .messenger{
  width: 60px;
}

.template-favorite > svg{
  display: none;
}

.template-favorite:hover > svg{
  display: inline-block;
}

.template:hover +.template-favorite > svg{
  display: inline-block;
}

.template:hover{
  background-color: #ffffff!important;
  font-weight: bold;
}

.template-favorite:hover{
  background-color: #ffffff!important;
}

.template-unfavorite:hover {
  background-color: #ffffff!important;
}

body {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  background: #f5f5f5;
}

.comm-btn {
  width: 300px;
  height: 30px;
  border: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.comm-btn:hover {
  opacity: 0.9;
}

.comm-btn__icon-wrapper {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comm-btn__icon {
  width: 20px;
  height: 20px;
}

.comm-btn__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  font-family: Roboto, Arial, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
}

.text-overflow-ellipsis {
    white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.messenger-button{
  height: 30px;
  margin-bottom: 10px;
}
.alert-white {
  margin-bottom: 20px;
  padding: 16px 18px 18px;
  color: #2f2f2f;
  background-color: #ffffff;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  box-shadow: none;
  font-size: 15px;
  line-height: 1.3;
}

.alert-white h4 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  color: #2f2f2f;
}

.alert-white p {
  margin: 0;
}

.alert-white__actions {
  margin-top: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.alert-white .btn {
  flex: 1 1 0;
  min-width: 0;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 0 14px;
  text-align: center;
}

.alert-white .btn.btn-success {
  background-color: #c6f0cc;
  border-color: #c6f0cc;
  color: #4f7060;
}

.alert-white .btn.btn-default {
  background-color: #efefef;
  border-color: #efefef;
  color: #707070;
}
