/* components/newsletter-choices.css — partials/newsletter-choices.hbs: the
   four newsletter toggles in a signup form (homepage box, footer), stacked
   and left-aligned. Each box is .check-toggle (check-toggle.css); the host
   form places the list and hides it on Ghost's .success. */

.newsletter-choices {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  text-align: start;
}

/* The whole row is the <label>; position contains the .sr-only input. */
.newsletter-choices__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

/* newsletter-choices.js sets [data-invalid] on the form: nothing ticked. */
[data-invalid] .newsletter-choices .check-toggle {
  border-color: var(--color-danger);
}
