.shc {
  direction: rtl;
  font-family: Arial, sans-serif;
}

.shc__bubble {
  position: fixed;
  bottom: 20px;
  z-index: 99999;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--shc-button);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

.shc--bottom-right .shc__bubble,
.shc--bottom-right .shc__window { right: 20px; }
.shc--bottom-left .shc__bubble,
.shc--bottom-left .shc__window { left: 20px; }

.shc__window {
  position: fixed;
  bottom: 88px;
  z-index: 99999;
  width: min(360px, calc(100vw - 32px));
  background: var(--shc-background);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
  overflow: hidden;
  color: var(--shc-text);
}

.shc__window header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--shc-header);
  color: #fff;
}

.shc__close,
.shc__reset {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.shc__close { font-size: 26px; line-height: 1; }
.shc__reset { margin-left: 8px; font-size: 12px; text-decoration: underline; }
.shc__messages { height: 310px; overflow: auto; padding: 14px; background: #f6f8f8; }
.shc__message { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--shc-background); line-height: 1.45; }
.shc__message--user { background: #e1f1ef; }
.shc__message a, .shc__sources a { color: #0c6478; }
.shc__sources { margin-top: 8px; font-size: 12px; }
.shc__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-top: 1px solid #e5e7e7; }
.shc__quick button { border: 1px solid var(--shc-button); border-radius: 16px; background: #fff; color: var(--shc-button); padding: 5px 9px; cursor: pointer; }
.shc__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e5e7e7; }
.shc__form input { flex: 1; min-width: 0; border: 1px solid #bcc8c8; border-radius: 8px; padding: 9px; color: var(--shc-text); }
.shc__form button { border: 0; border-radius: 8px; background: var(--shc-button); color: #fff; padding: 9px 13px; cursor: pointer; }
.shc__typing { padding: 8px; color: #617477; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

@media (max-width: 480px) {
  .shc--bottom-right .shc__bubble, .shc--bottom-right .shc__window { right: 14px; }
  .shc--bottom-left .shc__bubble, .shc--bottom-left .shc__window { left: 14px; }
  .shc__bubble { bottom: 14px; }
  .shc__window { bottom: 78px; }
  .shc__messages { height: 48vh; }
}
