/* Order Now page. Ported from legacy's application.css. */

/* Every row after the first gets a bit more breathing room above its Sibling/First Name labels, so stacked
   rows don't run together. */
.snSiblingSignRow + .snSiblingSignRow {
  margin-top: 10px;
}

/* The blanket photo is landscape and 2100px wide; cap it so it sits comfortably under the paragraph on desktop,
   and let img-fluid shrink it on phones. */
.snBlanketImage {
  display: block;
  max-width: 480px;
  width: 100%;
  margin: 15px auto 0; /* auto side margins center it in the card when the card is wider than the cap */
  border-radius: 6px;
}

/* Gender has only two choices, so it doesn't need the full-width select the text fields get. */
.snSelectShort {
  width: auto;
  min-width: 140px;
}

/* Weight/length dropdowns only hold one or two digits, so each select + unit pair is a compact fixed width (equal
   for all four, so the pairs still line up across the Weight and Length rows) instead of filling a wide column. The
   trimmed padding lets the two pairs sit side by side on a phone, and nowrap keeps a unit label from dropping
   beneath its dropdown. */
.snUnitGroup {
  flex-wrap: nowrap;
}

.snUnitGroup .form-select {
  flex: 0 0 4.5rem;
  width: 4.5rem;
  padding-left: 0.5rem;
  padding-right: 1.75rem;
}

.snUnitGroup .input-group-text {
  flex: 1 1 auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Bootstrap adds a red "!" icon plus 4.125rem of right padding to an invalid select, which in a box this narrow
   leaves no room to show the chosen number. The red border and heading already flag the error, so drop the icon
   and keep the normal padding. */
.snUnitGroup .form-select.is-invalid:not([multiple]):not([size]) {
  --bs-form-select-bg-icon: none;
  padding-right: 1.75rem;
  background-position: right 0.75rem center;
}

@media (min-width: 576px) {
  .snUnitGroup {
    width: 9.4rem; /* 4.5rem select + room for the widest label, "Fraction" */
  }
}

/* A date holds only mm/dd/yyyy and a calendar icon, so it doesn't need the full-width box the text fields get. */
.snDateField {
  width: auto;
  min-width: 11rem;
}

/* Phone and ZIP values are short, so they get a fixed-width box instead of the full-width one (max-width keeps it
   inside the card on a narrow phone). */
.snShortField {
  width: 12rem;
  max-width: 100%;
}
