.lexware-button {
  white-space: nowrap;
}

.lexware-dialog {
  width: min(690px, calc(100% - 28px));
}

.lexware-wrap {
  padding: 28px;
}

.lexware-status {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 22px 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f7f6;
}

.lexware-status strong,
.lexware-status p {
  display: block;
  margin: 0;
}

.lexware-status p {
  margin-top: 4px;
  color: var(--muted);
}

.lexware-state {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: #8c8c8c;
}

.lexware-state.connected {
  background: #54a946;
  box-shadow: 0 0 0 4px #e8f5e5;
}

.lexware-state.error {
  background: var(--red);
  box-shadow: 0 0 0 4px #fde6e8;
}

.lexware-state.pending {
  background: #d89b24;
  box-shadow: 0 0 0 4px #fff2d6;
}

.lexware-sync-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
}

.lexware-sync-form label {
  display: grid;
  gap: 7px;
  font-weight: 750;
}

.lexware-sync-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.lexware-result {
  min-height: 23px;
  margin: 14px 0;
  color: var(--muted);
  font-weight: 700;
}

.lexware-result.success {
  color: #347a2c;
}

.lexware-result.error {
  color: var(--red);
}

.lexware-info {
  padding: 17px;
  border-left: 4px solid #1d8fc2;
  border-radius: 7px;
  background: #eef8fc;
}

.lexware-info p {
  margin: 6px 0 0;
  color: #38515d;
}

.lexware-form-note {
  display: flex;
  gap: 12px;
  margin: 16px 28px 0;
  padding: 12px 15px;
  border-left: 4px solid #1d8fc2;
  border-radius: 7px;
  background: #eef8fc;
}

.lexware-form-note strong {
  white-space: nowrap;
}

.lexware-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #b8dce9;
  border-radius: 9px;
  background: #eef8fc;
}

.lexware-banner strong,
.lexware-banner span {
  display: block;
}

.lexware-banner span {
  margin-top: 3px;
  color: #47636f;
  font-size: .9rem;
}

.lexware-link {
  flex: 0 0 auto;
  border: 1px solid #1d789f;
  border-radius: 7px;
  background: #fff;
  color: #145c7b;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 9px 12px;
}

.lexware-review {
  display: inline-block;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff0cf;
  color: #805600;
  font-size: .75rem;
  font-weight: 800;
}

.lexware-positions {
  white-space: pre-line;
}

@media (max-width: 720px) {
  .lexware-sync-form {
    grid-template-columns: 1fr;
  }

  .lexware-form-note,
  .lexware-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .lexware-form-note strong {
    white-space: normal;
  }

  .lexware-link {
    align-self: flex-start;
  }
}
