body.page-template-template-checklist {
  margin: 0;
  overflow-x: hidden;
}

body.page-template-template-checklist header,
body.page-template-template-checklist footer {
  display: none;
}

.lms-checklist-page {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--lms-bgcolor, white);
}

.lms-checklist-container {
  width: 100%;
  box-sizing: border-box;
  min-height: 3rem;
  color: #1f2933;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  background: var(--lms-bgcolor, white);
}

.lms-checklist-message {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: var(--lms-bgcolor, #f5f5f5);
  color: #333333;
  text-align: center;
  font-size: 1.1rem;
}

.lms-checklist-editor-holder {
  width: 100%;
  box-sizing: border-box;
  padding: 0 3.5rem;
}

.lms-checklist-editor-holder .codex-editor,
.lms-checklist-editor-holder .codex-editor__redactor {
  padding-bottom: 0 !important;
}

.lms-checklist-editor-holder .ce-block__content,
.lms-checklist-editor-holder .ce-toolbar__content {
  max-width: none;
}

.lms-checklist-editor-holder .ce-toolbar__actions {
  right: calc(100% - 0.35rem);
}

.lms-checklist-editor-holder .ce-paragraph,
.lms-checklist-editor-holder .cdx-list {
  line-height: 1.5;
}

.lms-checklist-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lms-checklist-item {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: 0.5rem;
  box-sizing: border-box;
  padding: 0 0.75rem;
  min-height: 1rem;
}

.lms-checklist-check {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 1.5rem;
  cursor: pointer;
}

.lms-checklist-checkbox {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  accent-color: #2563eb;
}

.lms-checklist-item-content {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lms-checklist-item-content > :first-child {
  margin-top: 0;
}

.lms-checklist-item-content > :last-child {
  margin-bottom: 0;
}

.lms-checklist-item-content h2,
.lms-checklist-item-content h3,
.lms-checklist-item-content h4 {
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.lms-checklist-item-content p,
.lms-checklist-item-content blockquote,
.lms-checklist-item-content ul,
.lms-checklist-item-content ol {
  margin: 0 0 0.45rem;
}

.lms-checklist-item-content ul,
.lms-checklist-item-content ol {
  padding-left: 1.25rem;
}

.lms-checklist-item-content a {
  color: #009FDA;
  text-decoration: none;
  text-underline-offset: 0.12em;
}

.lms-checklist-item.is-checked .lms-checklist-item-content {
  color: #52616f;
}

.lms-checklist-item.is-checked .lms-checklist-item-content p,
.lms-checklist-item.is-checked .lms-checklist-item-content li,
.lms-checklist-item.is-checked .lms-checklist-item-content h2,
.lms-checklist-item.is-checked .lms-checklist-item-content h3,
.lms-checklist-item.is-checked .lms-checklist-item-content h4 {
  text-decoration: line-through;
}

.lms-checklist-warning {
  border-left: 3px solid #d97706;
  padding-left: 0.7rem;
}

.lms-checklist-warning strong {
  display: block;
  margin-bottom: 0.2rem;
}

.lms-checklist-link-block {
  display: grid;
  gap: 0.2rem;
  color: #155eef;
}

.lms-checklist-link-block span {
  color: #52616f;
  font-size: 0.92em;
}

.lms-checklist-delimiter {
  border: 0;
  border-top: 1px solid #d6dde5;
  margin: 0.2rem 0;
}

.lms-checklist-empty {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid #d6dde5;
  border-radius: 6px;
  color: #52616f;
  background: #ffffff;
}

@media (max-width: 768px) {
  .lms-checklist-container {
    padding: 0.55rem;
    font-size: 15px;
  }

  .lms-checklist-editor-holder {
    padding: 0.35rem 0.55rem 0.9rem 3.25rem;
  }

  .lms-checklist-item {
    grid-template-columns: 1.25rem minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0.65rem;
  }
}
