.ickao-dialog-open {
  overflow: hidden !important;
}

.backend-overlay,
.support-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.backend-dialog {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  border: 1px solid #2b3244;
  border-radius: 8px;
  background: #11141d;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.58);
}

.backend-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #8d95a8;
  font-size: 27px;
  cursor: pointer;
}

.auth-dialog {
  padding: 34px;
}

.auth-dialog__brand {
  color: #08deef;
  font-size: 22px;
  font-weight: 800;
}

.auth-dialog h2 {
  margin: 24px 0 20px;
  font-size: 25px;
  letter-spacing: 0;
}

.auth-dialog__tabs {
  display: flex;
  gap: 22px;
  margin-top: 26px;
  border-bottom: 1px solid #282e3c;
}

.auth-dialog__tabs button {
  position: relative;
  padding: 0 0 12px;
  border: 0;
  background: none;
  color: #7e879a;
  font: inherit;
  cursor: pointer;
}

.auth-dialog__tabs button.is-active {
  color: #fff;
}

.auth-dialog__tabs button.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #08deef;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form [hidden] {
  display: none !important;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #b8bfd0;
  font-size: 13px;
}

.auth-form input,
.support-compose textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #343b4d;
  border-radius: 6px;
  outline: none;
  background: #090b11;
  color: #fff;
}

.auth-form input {
  height: 48px;
  padding: 0 14px;
}

.auth-form input:focus,
.support-compose textarea:focus {
  border-color: #08deef;
}

.backend-primary-button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: #08deef;
  color: #001014;
  font-weight: 700;
  cursor: pointer;
}

.backend-primary-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.backend-form-error {
  min-height: 17px;
  margin: 0;
  color: #ff5470;
  font-size: 12px;
}

.auth-dialog__demo {
  margin: 18px 0 0;
  color: #7e879a;
  font-size: 12px;
  text-align: center;
}

.support-overlay {
  place-items: stretch end;
}

.support-drawer {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: min(420px, 100vw);
  height: 100%;
  background: #0d1018;
  border-left: 1px solid #2b3244;
  box-shadow: -16px 0 60px rgba(0, 0, 0, 0.45);
}

.support-drawer > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 18px;
  border-bottom: 1px solid #252b38;
}

.support-drawer > header div {
  display: grid;
  grid-template-columns: 12px auto;
  align-items: center;
  gap: 2px 9px;
}

.support-drawer > header small {
  grid-column: 2;
  color: #19d9a0;
}

.support-drawer > header button {
  border: 0;
  background: none;
  color: #98a0b3;
  font-size: 28px;
  cursor: pointer;
}

.support-agent-dot {
  grid-row: 1 / 3;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #19d9a0;
  box-shadow: 0 0 12px #19d9a0;
}

.support-messages {
  overflow: auto;
  padding: 18px;
}

.support-empty {
  margin: 35px auto;
  color: #7e879a;
  text-align: center;
}

.support-message {
  width: fit-content;
  max-width: 82%;
  margin: 0 0 12px;
  padding: 11px 13px;
  border-radius: 6px;
  background: #1a1f2c;
  color: #edf1fa;
  line-height: 1.45;
}

.support-message--user {
  margin-left: auto;
  background: #064d58;
}

.support-message a {
  display: block;
  margin-top: 6px;
  color: #28e1f1;
}

.support-message time {
  display: block;
  margin-top: 6px;
  color: #7e879a;
  font-size: 10px;
}

.support-compose {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #252b38;
}

.support-compose textarea {
  min-height: 42px;
  max-height: 120px;
  resize: vertical;
  padding: 11px;
}

.support-compose > button {
  border: 0;
  border-radius: 5px;
  padding: 0 14px;
  background: #08deef;
  color: #001014;
  font-weight: 700;
  cursor: pointer;
}

.support-attach {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  border: 1px solid #343b4d;
  border-radius: 5px;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.support-attach input {
  display: none;
}

.support-error {
  padding: 0 12px 8px;
}

@media (max-width: 560px) {
  .auth-dialog {
    padding: 28px 20px;
  }
}
