.special-lottery-page .calc-fields { grid-template-columns: minmax(0, 1fr) auto; }
.special-lottery-page .calc-fields:has(> :nth-child(3)) { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
.special-lottery-page .calc-fields:has(> :nth-child(4)) { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.special-lottery-page .calc-fields .ticket-extra { align-self: center; margin: 0; display: flex; }
.special-lottery-page .ticket-extra input { width: 18px; height: 18px; padding: 0; }
.special-lottery-page .ticket-form .ticket-context { padding-bottom: 0; border-bottom: 0; }
.special-lottery-page .ticket-form .ticket-submit-row { justify-content: flex-end; }
@media (max-width: 700px) {
  .special-lottery-page .calc-fields,
  .special-lottery-page .calc-fields:has(> :nth-child(3)),
  .special-lottery-page .calc-fields:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .special-lottery-page .calc-fields .primary { grid-column: 1 / -1; }
}
