/*
 * Post Checklist.
 * The :is() prefix beats the theme's global rule in assets/css/single.css:
 * section.single-post .section-inner .post-content * { ... }
 * Mobile: smaller text, full-width stacked buttons. Desktop (768px+): Figma 10626:1038.
 */
:is(section.single-post .section-inner .post-content, body) .post-checklist {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-flow: column nowrap;
  gap: 32px;
  margin-top: 20px;
  margin-bottom: 24px;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid rgba(83, 68, 18, 0.2);
  border-radius: 12px;
}

:is(section.single-post .section-inner .post-content, body) .post-checklist__list {
  display: flex;
  flex-flow: column nowrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(section.single-post .section-inner .post-content, body) .post-checklist__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(section.single-post .section-inner .post-content, body) .post-checklist__item::before,
:is(section.single-post .section-inner .post-content, body) .post-checklist__item::marker {
  content: none;
}

:is(section.single-post .section-inner .post-content, body) .post-checklist__item + .post-checklist__item {
  padding-top: 12px;
  border-top: 1px solid rgba(83, 68, 18, 0.2);
}

:is(section.single-post .section-inner .post-content, body) .post-checklist__label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  cursor: pointer;
}

:is(section.single-post .section-inner .post-content, body) .post-checklist__box {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
}

:is(section.single-post .section-inner .post-content, body) .post-checklist__input {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  background: #fff center / 14px 14px no-repeat;
  border: 1px solid #767676;
  border-radius: 2.5px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

:is(section.single-post .section-inner .post-content, body) .post-checklist__input:checked {
  background-color: #002345;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2.5 7.5l3 3 6-7' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-color: #002345;
}

:is(section.single-post .section-inner .post-content, body) .post-checklist__input:focus-visible {
  outline: 2px solid #002345;
  outline-offset: 2px;
}

:is(section.single-post .section-inner .post-content, body) .post-checklist__text {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  color: #3a3a3b;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  word-break: break-word;
}

:is(section.single-post .section-inner .post-content, body) .post-checklist__actions {
  display: flex;
  flex-flow: column nowrap;
  gap: 12px;
  margin: 0;
}

:is(section.single-post .section-inner .post-content, body) .post-checklist__button,
:is(section.single-post .section-inner .post-content, body) .post-checklist__button:visited {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  min-height: 60px;
  padding: 12px 24px;
  border: 0;
  border-radius: 200px;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
  text-decoration: none;
  text-transform: capitalize;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

:is(section.single-post .section-inner .post-content, body) .post-checklist__button:hover {
  opacity: 0.9;
}

:is(section.single-post .section-inner .post-content, body) .post-checklist__button:focus-visible {
  outline: 2px solid #002345;
  outline-offset: 2px;
}

:is(section.single-post .section-inner .post-content, body) .post-checklist__button--whatsapp {
  background: linear-gradient(180deg, #25b43c 10.383%, #25d366 124.77%);
}

:is(section.single-post .section-inner .post-content, body) .post-checklist__button--print {
  background: #002345;
}

:is(section.single-post .section-inner .post-content, body) .post-checklist__button-label {
  margin: 0;
  color: #fff;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

:is(section.single-post .section-inner .post-content, body) .post-checklist__button-icon {
  display: block;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin: 0;
}

@media (min-width: 768px) {
  :is(section.single-post .section-inner .post-content, body) .post-checklist {
    gap: 40px;
    padding: 40px 32px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-checklist__list {
    gap: 14px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-checklist__item + .post-checklist__item {
    padding-top: 14px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-checklist__box {
    width: 26px;
    height: 26px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-checklist__input {
    width: 22px;
    height: 22px;
    background-size: 16px 16px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-checklist__text {
    font-size: 18px;
    line-height: 26px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-checklist__actions {
    flex-flow: row wrap;
  }

  :is(section.single-post .section-inner .post-content, body) .post-checklist__button,
  :is(section.single-post .section-inner .post-content, body) .post-checklist__button:visited {
    min-height: 66px;
    padding: 16px 32px;
    font-size: 18px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-checklist__button--print {
    padding: 24px 40px;
    border-radius: 40px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-checklist__button-icon {
    width: 34px;
    height: 34px;
  }
}

/* Print only the checklist the reader asked to print. */
@media print {
  html.post-checklist-printing body * {
    visibility: hidden !important;
  }

  html.post-checklist-printing .post-checklist.is-printing,
  html.post-checklist-printing .post-checklist.is-printing * {
    visibility: visible !important;
  }

  html.post-checklist-printing .post-checklist.is-printing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
  }

  html.post-checklist-printing .post-checklist.is-printing .post-checklist__actions {
    display: none !important;
  }

  .post-checklist__input {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
