/* Per-digit order-number entry (FPS-181). Built by js/order-number-input.js. */

.digit-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.digit-entry__group {
  display: flex;
  /* The 6-digit group must be allowed to shrink as hard as the 8-digit one, so neither wraps. */
  flex: 1 1 auto;
  min-width: 0;
  gap: 4px;
}

.digit-entry__cell {
  /* Overrides the global `input { width: 100% }` — cells size to the row, not the card. */
  width: auto;
  min-width: 0;
  flex: 1 1 0;
  padding: 11px 0;
  text-align: center;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  /* 16px keeps iOS Safari from zooming the viewport on focus. */
  letter-spacing: 0;
}

.digit-entry__cell:focus {
  border-color: var(--brand);
  /* A focused cell needs to stand out among 14 identical boxes, so this goes beyond the
     border-colour change the other inputs use. */
  box-shadow: 0 0 0 3px rgba(168, 0, 255, 0.18);
}

.digit-entry__sep {
  flex: 0 0 auto;
  color: var(--gray);
  font-size: 18px;
  font-weight: 600;
  user-select: none;
}

@media (max-width: 560px) {
  .digit-entry {
    gap: 5px;
  }

  .digit-entry__group {
    gap: 2px;
  }

  .digit-entry__cell {
    padding: 10px 0;
    border-radius: 6px;
    border-width: 1px;
  }
}

@media (max-width: 380px) {
  .digit-entry__cell {
    padding: 8px 0;
  }

  .digit-entry__sep {
    font-size: 14px;
  }
}
