/**
 * Geotargeted marketing opt-in block - see app/marketing-optin.php.
 *
 * Kept in its own file rather than in input.css because style.css has been
 * hand-edited since it was last built from Tailwind, so rebuilding it would
 * throw those edits away.
 */

.sa-marketing-optin {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 16px;
  color: #080F29;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.sa-marketing-optin p {
  margin: 0 0 8px;
  font-size: inherit;
  line-height: inherit;
}

.sa-marketing-optin__consent {
  margin-bottom: 0;
}

/* The international notice is what ships in the HTML. The US notice takes over
   only once the visitor has been placed in the United States. */
.sa-marketing-optin__notice--us {
  display: none;
}

.sa-geo-us .sa-marketing-optin__notice--us {
  display: block;
}

.sa-geo-us .sa-marketing-optin__notice--intl {
  display: none;
}

.sa-marketing-optin a {
  color: inherit;
  text-decoration: underline;
}

.sa-marketing-optin .wpcf7-form-control-wrap,
#contact-form-popup .sa-marketing-optin .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 0;
}

.sa-marketing-optin .wpcf7-list-item {
  display: block;
  margin: 0;
}

.sa-marketing-optin .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

/* Tailwind's preflight strips the native border off form controls, so the
   checkbox gets one back the same way the catalog intake form does. */
.sa-marketing-optin input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: auto;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  border: 1px solid currentColor;
  background: #F8F9FA;
  cursor: pointer;
}

/* Light text wherever the contact module sits on a dark section background. */
.demo-area-wrapper.text-color-light .sa-marketing-optin {
  color: #F3F9FF;
}

/* On the compact demo form the block sits below the whole form - fields and
   Submit button stay on the one line they were on - and reads centred. */
.demo-area-wrapper .sa-marketing-optin {
  padding-top: 20px;
  text-align: center;
}

.demo-area-wrapper .sa-marketing-optin .wpcf7-list-item label {
  justify-content: center;
}
