.doc-tasy-text-editor-ready {
  min-height: 7.5rem;
}

.doc-tasy-text-editor-actions {
  align-items: center;
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
  margin-top: .25rem;
}

.doc-tasy-text-editor-save-status {
  color: #667085;
  font-size: .75rem;
  line-height: 1.25;
  min-height: 1rem;
}

.doc-tasy-text-editor-save-status[data-status="saving"],
.doc-tasy-text-editor-save-status[data-status="loading"],
.doc-tasy-text-editor-save-status[data-status="cached"] {
  color: #1473e6;
}

.doc-tasy-text-editor-save-status[data-status="error"] {
  color: #b42318;
  font-weight: 700;
}

.doc-tasy-text-editor-button {
  align-items: center;
  background: #fff;
  border: 1px solid #1473e6;
  border-radius: 4px;
  color: #1473e6;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  gap: .35rem;
  min-height: 2rem;
  padding: .35rem .75rem;
}

.doc-tasy-text-editor-button:hover,
.doc-tasy-text-editor-button:focus {
  background: #eaf2ff;
  outline: 2px solid transparent;
}

.doc-tasy-text-editor-modal[hidden] {
  display: none;
}

.doc-tasy-text-editor-modal {
  align-items: center;
  background: rgba(11, 24, 43, .48);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1.5rem;
  position: fixed;
  z-index: 2147483000;
}

.doc-tasy-text-editor-dialog {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .28);
  display: flex;
  flex-direction: column;
  height: min(88vh, 52rem);
  max-height: 88vh;
  max-width: 78rem;
  min-height: 28rem;
  overflow: hidden;
  width: min(96vw, 78rem);
}

.doc-tasy-text-editor-header {
  align-items: center;
  border-bottom: 1px solid #d6dce6;
  display: flex;
  flex: 0 0 auto;
  gap: .75rem;
  justify-content: space-between;
  min-height: 3.25rem;
  padding: .65rem 1rem;
}

.doc-tasy-text-editor-title {
  color: #1f1f1f;
  font-size: 1rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-tasy-text-editor-header-actions {
  display: flex;
  flex: 0 0 auto;
  gap: .5rem;
}

.doc-tasy-text-editor-primary,
.doc-tasy-text-editor-secondary {
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 2.25rem;
  padding: .45rem .85rem;
}

.doc-tasy-text-editor-primary {
  background: #1473e6;
  border: 1px solid #1473e6;
  color: #fff;
}

.doc-tasy-text-editor-secondary {
  background: #fff;
  border: 1px solid #9aa6b8;
  color: #1f1f1f;
}

.doc-tasy-text-editor-frame-wrap {
  background: #f2f4f8;
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}

.doc-tasy-text-editor-frame {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.doc-tasy-text-editor-loading,
.doc-tasy-text-editor-error {
  align-items: center;
  background: #f2f4f8;
  color: #333;
  display: flex;
  font-weight: 700;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: absolute;
  text-align: center;
  z-index: 2;
}

.doc-tasy-text-editor-error {
  background: #fff4f2;
  color: #7a1f12;
}

@media (max-width: 720px) {
  .doc-tasy-text-editor-modal {
    padding: .5rem;
  }

  .doc-tasy-text-editor-dialog {
    height: 96vh;
    max-height: 96vh;
    min-height: 24rem;
    width: 100%;
  }

  .doc-tasy-text-editor-header {
    align-items: stretch;
    flex-direction: column;
  }

  .doc-tasy-text-editor-header-actions {
    width: 100%;
  }

  .doc-tasy-text-editor-primary,
  .doc-tasy-text-editor-secondary {
    flex: 1 1 0;
  }
}
