.av-chat {
  bottom: 22px;
  font-family: inherit;
  position: fixed;
  right: 22px;
  z-index: 9999;
}

body .top_button {
  display: none !important;
}

.av-chat__toggle {
  align-items: center;
  background: #1f6f5b;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.av-chat__toggle-icon {
  display: block;
  height: 30px;
  line-height: 1;
  width: 30px;
}

.av-chat__toggle-icon svg {
  display: block;
  fill: currentColor;
  height: 100%;
  width: 100%;
}

.av-chat__panel {
  background: #fff;
  border: 1px solid #d7dde2;
  border-radius: 8px;
  bottom: 72px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  display: flex;
  flex-direction: column;
  max-height: min(620px, calc(100vh - 110px));
  overflow: hidden;
  position: absolute;
  right: 0;
  width: min(380px, calc(100vw - 32px));
}

.av-chat__header {
  align-items: center;
  background: #1f6f5b;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.av-chat__header strong,
.av-chat__header span {
  display: block;
}

.av-chat__header span {
  font-size: 12px;
  opacity: .9;
}

.av-chat__close {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  height: 32px;
  width: 32px;
}

.av-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
}

.av-chat__message {
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.35;
  max-width: 88%;
  padding: 10px 12px;
}

.av-chat__message--bot {
  align-self: flex-start;
  background: #eef5f2;
  color: #20342e;
}

.av-chat__message--user {
  align-self: flex-end;
  background: #243b53;
  color: #fff;
}

.av-chat__items {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.av-chat__quick {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.av-chat__quick button {
  background: #fff;
  border: 1px solid #bfd6ce;
  border-radius: 8px;
  color: #1f6f5b;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  padding: 9px 10px;
  text-align: left;
}

.av-chat__item,
.av-chat__action {
  background: #fff;
  border: 1px solid #d7dde2;
  border-radius: 8px;
  color: #1b4f72;
  display: block;
  font: inherit;
  padding: 9px 10px;
  text-decoration: none;
  text-align: left;
  width: 100%;
}

.av-chat__item span {
  color: #52616b;
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.av-chat__action--button {
  cursor: pointer;
}

.av-chat__form {
  border-top: 1px solid #d7dde2;
  display: flex;
  gap: 8px;
  padding: 10px;
}

.av-chat__input {
  border: 1px solid #c8d0d6;
  border-radius: 6px;
  flex: 1;
  min-width: 0;
  padding: 10px;
}

.av-chat__send {
  background: #1f6f5b;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  padding: 0 14px;
}

@media (max-width: 480px) {
  .av-chat {
    bottom: 16px;
    right: 16px;
  }

  .av-chat__panel {
    bottom: 68px;
  }
}
