/*
 * Agevow — the age question at the classic checkout (ROADMAP §S-CHECKOUT, P7), the
 * pay-for-order page and the block checkout (P8).
 *
 * It uses WooCommerce's own form-row classes, so it looks like the rest of the form
 * in any theme; this only lays the date's fields side by side, keeps their text at
 * 16 px (no zoom on a phone) and their targets at 44 px. The rules start from the
 * question's id: WooCommerce's and the theme's form rules are more specific than
 * classes alone (measured: 14 px fields, a 22 px tick line, 2026-10-14).
 */
#agevow-checkout {
  clear: both;
  margin: 1.5em 0;
}

#agevow-checkout .agevow-checkout-date {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#agevow-checkout .agevow-checkout-legend {
  margin: 0 0 0.5em;
  padding: 0;
  font-weight: 600;
}

#agevow-checkout .agevow-checkout-row {
  display: flex;
  flex-wrap: nowrap;
  max-width: 24em;
  margin: 0 -4px;
}

/* The parts share one line at any width (a 320 px phone too): they grow from nothing
   and may shrink to nothing, the year a little wider. Measured in Mobile Safari on an
   iPhone, 2026-10-14: fixed widths in the theme's larger text pushed the year onto a
   line of its own. */
#agevow-checkout .agevow-checkout-part {
  flex: 1 1 0;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0 4px;
  float: none;
}

#agevow-checkout .agevow-checkout-year {
  flex-grow: 1.5;
}

#agevow-checkout .agevow-checkout-part input,
#agevow-checkout .agevow-checkout-part input.input-text {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  font-size: 16px;
  text-align: center;
}

#agevow-checkout .agevow-checkout-confirm label,
#agevow-checkout .agevow-checkout-confirm label.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  min-height: 44px;
  font-size: 16px;
}

#agevow-checkout .agevow-checkout-confirm input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0.15em 0 0;
}

#agevow-checkout .agevow-checkout-hint {
  margin: 0.5em 0 0;
  font-size: 14px;
}

/* The block checkout (P8): the same question, drawn by public/js/checkout-block.js
   inside the contact step. The block checkout styles no bare field, so these give the
   date's fields a border the theme's text colour draws (any theme, light or dark). */
#agevow-checkout.agevow-checkout-block {
  margin: 16px 0 0;
}

#agevow-checkout.agevow-checkout-block .agevow-checkout-title {
  margin: 0 0 8px;
  font-size: 1em;
  font-weight: 600;
}

#agevow-checkout.agevow-checkout-block .agevow-checkout-part label {
  display: block;
  margin: 0 0 4px;
  font-size: 14px;
}

#agevow-checkout.agevow-checkout-block .agevow-checkout-part input {
  padding: 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
}

#agevow-checkout.agevow-checkout-block .agevow-checkout-confirm {
  margin: 0;
}

#agevow-checkout.agevow-checkout-block .agevow-checkout-confirm label {
  position: relative;
}

#agevow-checkout.agevow-checkout-block .agevow-checkout-confirm input[type="checkbox"] {
  width: 1.5em;
  height: 1.5em;
  margin: 0;
}

#agevow-checkout.agevow-checkout-block .agevow-checkout-error p {
  margin: 8px 0 0;
}
