.lcpro-addticket-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  justify-items: center;
  margin: 1rem auto;
  max-width: 360px;
}

@media (min-width: 601px) {
  .lcpro-addticket-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.ball-input input {
  width: 70px;
  height: 70px;
  line-height: 66px;          /* aligns text nicely */
  border-radius: 50%;
  border: 2px solid #0073aa;  /* thinner, consistent border */
  background: #fff;
  color: #000;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  box-sizing: border-box;     /* ensures padding/border stay inside width */
  padding: 0;                 /* remove inner padding that clips text */
  margin: 2px;
  outline: none;
}

.ball-input input:focus {
  border-color: #005e8a;
  background: #eef6ff;
}


/* remove number spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] { -moz-appearance: textfield; }

/* ---------------------------------------------------
   LotteryPro - Number Input (Ball Entry Fields)
   --------------------------------------------------- */
.ball-input input[type=number] {
  -webkit-appearance: none;       /* removes default inner padding + spin buttons */
  -moz-appearance: textfield;
  appearance: none;

  width: 70px;
  height: 70px;
  line-height: 66px;
  border-radius: 50%;
  border: 2px solid #0073aa;
  background: #fff;
  color: #000;
  font-size: 20px;
  font-weight: bold;
  text-align: center;

  box-sizing: border-box;
  padding: 0;                     /* removes internal padding */
  margin: 2px;
  outline: none;
  vertical-align: middle;

  /* Fix Safari’s internal padding / baseline issue */
  position: relative;
  top: -1px;
}

/* When focused */
.ball-input input[type=number]:focus {
  border-color: #005e8a;
  background: #eef6ff;
}

/* Remove all spin buttons (Chrome, Safari, Firefox) */
.ball-input input[type=number]::-webkit-inner-spin-button,
.ball-input input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ball-input input[type=number]::-moz-focus-inner {
  border: 0;
  padding: 0;
}
/* ---------------------------------------------------
   LotteryPro - Add Ticket Number Grid
   --------------------------------------------------- */

/* Container for the 6 inputs */
.lcpro-addticket-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* ? centers the inputs horizontally */
  align-items: center;       /* ? vertically aligns them nicely */
  gap: 10px;                 /* consistent spacing between balls */
  max-width: 440px;          /* keeps them grouped nicely on large screens */
  margin: 0 auto;            /* centers the whole grid block */
}

/* Each input wrapper */
.ball-input {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* ---------------------------------------------------
   LotteryPro - Ball Labels Above Inputs
   --------------------------------------------------- */
.ball-input {
  display: flex;
  flex-direction: column;        /* stack label above input */
  align-items: center;
  justify-content: center;
  margin: 6px;
}

.ball-label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
  text-align: center;
}
/* ---------------------------------------------------
   LotteryPro - Add Ticket Number Grid
   --------------------------------------------------- */

/* Container for 6 number inputs */
.lcpro-addticket-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* horizontally center */
  align-items: flex-start;   /* align labels consistently */
  gap: 10px;
  max-width: 600px;          /* fits six inputs in one row on desktop */
  margin: 0 auto;
}

/* Each input block (label + input) */
.ball-input {
  display: flex;
  flex-direction: column;    /* stack label above input */
  align-items: center;
  justify-content: center;
}

/* Label above each input */
.ball-label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
  text-align: center;
}

/* The input box itself */
.ball-input input[type=number] {
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;

  width: 60px;
  height: 50px;
  border-radius: 8px;             /* ? rectangular shape with rounded corners */
  border: 2px solid #0073aa;
  background: #fff;
  color: #000;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  line-height: 48px;              /* centers text vertically */
  box-sizing: border-box;
  padding: 0;
  margin: 2px;
  outline: none;
}

.ball-input input[type=number]:focus {
  border-color: #005e8a;
  background: #eef6ff;
}

/* Remove spinners (Chrome, Safari, Firefox) */
.ball-input input[type=number]::-webkit-inner-spin-button,
.ball-input input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ball-input input[type=number] {
  -moz-appearance: textfield;
}

/* ? Responsive layout: wrap to 3 per row on mobile */
@media (max-width: 600px) {
  .lcpro-addticket-grid {
    max-width: 320px;  /* roughly three inputs per row */
    gap: 8px;
  }
  .ball-input input[type=number] {
    width: 56px;
    height: 48px;
    font-size: 17px;
  }
}
