.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start; /* Align left, change to center if you want centered buttons */
}

.selection-btn {
  flex: 1 1 calc(20% - 10px); /* Grow/shrink, basis ~20% minus gap */
  max-width: calc(20% - 10px);
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  cursor: pointer;
  padding: 8px 5px;
  user-select: none;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.selection-btn img {
  width: 70px;
  height: auto;
  margin-bottom: 6px;
  display: block;
}

.selection-btn.selected {
  background-color: #08a;
  border-color: #005177;
  color: #fff;
}

@media (max-width: 600px) {
  .selection-btn {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

#checkout_button {
  display: block;          /* makes the button act as block element */
  margin: 20px auto 0;     /* centers horizontally (left + right auto), add top margin */
  width: max-content;      /* shrink width to button content */
}

#checkout_buttons_container {
  display: flex;
  gap: 10px; /* space between buttons */
  justify-content: center; /* center buttons horizontally */
}

/* Override text color for unselected buttons only */
.selection-btn:not(.selected) {
    color: #222 !important; /* your chosen unselected text color */
}

/* Ensure selected buttons keep white text */
.selection-btn.selected {
    color: #eee !important; /* white text on selected */
}
