/*
  CONTENTVILLE_LESSON16_EDITOR_CSS_V2
*/

.lesson16-editor-shell {
  width: min(100%, 920px);
  margin: 0 auto;
}

.lesson16-editor-card,
.lesson16-editor-loading,
.lesson16-editor-error {
  box-sizing: border-box;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(23, 32, 51, .08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(31, 54, 94, .08);
}

.lesson16-editor-loading {
  text-align: center;
}

.lesson16-editor-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 17px;
}

.lesson16-editor-header h1 {
  margin: 5px 0 5px;
  color: #172033;
  font-size: 27px;
  line-height: 1.08;
}

.lesson16-editor-header p {
  margin: 0;
  color: rgba(23, 32, 51, .58);
  font-size: 13px;
}

.lesson16-editor-kicker {
  display: block;
  color: #2f6fed;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lesson16-editor-back,
.lesson16-editor-save,
.lesson16-editor-error button {
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.lesson16-editor-back {
  border: 1px solid rgba(23, 32, 51, .10);
  background: #f5f7fb;
  color: #172033;
}

.lesson16-editor-save,
.lesson16-editor-error button {
  background: #2f6fed;
  color: #fff;
}

.lesson16-editor-save:disabled {
  cursor: wait;
  opacity: .65;
}

.lesson16-editor-system {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.lesson16-editor-system > div {
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: #f5f7fb;
}

.lesson16-editor-system b,
.lesson16-editor-system span {
  display: block;
}

.lesson16-editor-system b {
  color: #172033;
  font-size: 12px;
}

.lesson16-editor-system span {
  margin-top: 4px;
  color: rgba(23, 32, 51, .59);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.lesson16-editor-field {
  display: block;
  margin-top: 17px;
}

.lesson16-editor-field > span {
  display: block;
  margin-bottom: 7px;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.lesson16-editor-field input,
.lesson16-editor-field textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(23, 32, 51, .13);
  border-radius: 14px;
  background: #fff;
  color: #172033;
  font: inherit;
  outline: none;
}

.lesson16-editor-field input {
  min-height: 46px;
  padding: 0 13px;
}

.lesson16-editor-field textarea {
  padding: 12px 13px;
  line-height: 1.52;
  resize: vertical;
}

.lesson16-editor-field input:focus,
.lesson16-editor-field textarea:focus {
  border-color: #2f6fed;
  box-shadow:
    0 0 0 3px rgba(47, 111, 237, .11);
}

.lesson16-editor-field small {
  display: block;
  margin-top: 7px;
  color: rgba(23, 32, 51, .52);
  font-size: 12px;
}

.lesson16-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}

.lesson16-editor-toolbar button {
  min-height: 35px;
  padding: 0 11px;
  border: 1px solid rgba(23, 32, 51, .10);
  border-radius: 10px;
  background: #f5f7fb;
  color: #172033;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.lesson16-editor-text {
  min-height: 455px;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace !important;
  font-size: 13px !important;
}

.lesson16-editor-preview {
  margin-top: 23px;
  padding: 15px;
  border: 1px solid rgba(23, 32, 51, .08);
  border-radius: 18px;
  background: #f7f9fc;
}

.lesson16-editor-preview img {
  display: block;
  width: 100%;
  margin-top: 10px;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
}

.lesson16-editor-preview-heading {
  padding: 17px 4px 5px;
}

.lesson16-editor-preview-heading h2 {
  margin: 0;
  color: #172033;
  font-size: 25px;
  line-height: 1.08;
}

.lesson16-editor-preview-heading p {
  margin: 7px 0 0;
  color: rgba(23, 32, 51, .60);
}

.cv-lms-rich-copy {
  color: #172033;
  font-size: 15px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.cv-lms-rich-copy > :first-child {
  margin-top: 0;
}

.cv-lms-rich-copy > :last-child {
  margin-bottom: 0;
}

.cv-lms-rich-copy h2 {
  margin: 27px 0 10px;
  font-size: 22px;
  line-height: 1.13;
}

.cv-lms-rich-copy h3 {
  margin: 23px 0 9px;
  font-size: 18px;
  line-height: 1.2;
}

.cv-lms-rich-copy p {
  margin: 0 0 15px;
}

.cv-lms-rich-copy ul,
.cv-lms-rich-copy ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.cv-lms-rich-copy li {
  margin: 6px 0;
}

.cv-lms-rich-copy blockquote {
  margin: 18px 0;
  padding: 13px 15px;
  border-left: 4px solid #2f6fed;
  border-radius: 0 12px 12px 0;
  background: rgba(47, 111, 237, .07);
}

.cv-lms-rich-copy hr {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: rgba(23, 32, 51, .12);
}

.cv-lms-rich-copy code {
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(23, 32, 51, .07);
}

.lesson16-editor-save-row {
  position: sticky;
  bottom: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
  padding: 10px;
  border: 1px solid rgba(23, 32, 51, .07);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}

.lesson16-editor-save-row span {
  margin-right: auto;
  font-size: 13px;
}

.lesson16-editor-save-row .is-success {
  color: #16845b;
}

.lesson16-editor-save-row .is-error {
  color: #c0392b;
}

.lesson16-editor-error h2 {
  margin-top: 0;
}

.lesson16-editor-error p {
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .lesson16-editor-card,
  .lesson16-editor-error {
    padding: 14px;
  }

  .lesson16-editor-header {
    align-items: stretch;
    flex-direction: column;
  }

  .lesson16-editor-system {
    grid-template-columns: 1fr;
  }

  .lesson16-editor-text {
    min-height: 400px;
  }

  .lesson16-editor-save-row {
    align-items: stretch;
    flex-direction: column;
  }

  .lesson16-editor-save-row span {
    margin-right: 0;
  }
}
