/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.message-composer trix-toolbar {
  padding: 0 0 0.625rem;
}

.message-composer trix-toolbar .trix-button-row {
  justify-content: flex-start;
  gap: 0.375rem;
  overflow-x: auto;
}

.message-composer trix-toolbar .trix-button-group {
  flex: none;
  margin: 0;
  border: 0;
  border-radius: 0.5rem;
  background: #f5f2f7;
}

.message-composer trix-toolbar .trix-button {
  border: 0;
  border-radius: 0.5rem;
  color: #655d72;
}

.message-composer trix-toolbar .trix-button.trix-active {
  background: #eae6ff;
  color: #5749cb;
}

.message-composer trix-toolbar .trix-button-group--file-tools,
.message-composer trix-toolbar .trix-button--icon-heading-1,
.message-composer trix-toolbar .trix-button--icon-code,
.message-composer trix-toolbar .trix-button--icon-quote,
.message-composer trix-toolbar .trix-button--icon-decrease-nesting-level,
.message-composer trix-toolbar .trix-button--icon-increase-nesting-level {
  display: none;
}

.message-composer trix-editor {
  min-height: 6.5rem;
  max-height: 16rem;
  overflow-y: auto;
  border: 0;
  padding: 0.125rem 0.25rem;
  color: #332a42;
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.message-composer trix-editor:empty::before {
  color: #aaa2b4;
}

.message-composer trix-editor[data-invalid="true"] {
  border-radius: 0.5rem;
  box-shadow: inset 0 0 0 2px #d76873;
}

.message-composer .composer-kind-option {
  color: #8d8598;
}

.message-composer .composer-kind-option:has(input:checked) {
  background: white;
  color: #5749cb;
  box-shadow: 0 1px 3px rgb(36 28 54 / 0.12);
}

.message-composer[data-composer-mode="note"] {
  border-color: #ead18d;
  background: #fffdf5;
}

.message-composer[data-composer-mode="note"] input[type="submit"] {
  background: #8b6b20;
}

.trix-content ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.trix-content ol {
  list-style: decimal;
  padding-left: 1.25rem;
}

.trix-content a {
  text-decoration: underline;
}
