/* Gelsin Invoice Plugin — Invoice Type segmented control + field spacing. */

/* Heading */
#billing_invoice_type_field > label:first-child {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Options row */
#billing_invoice_type_field .woocommerce-input-wrapper {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Hide native radio circles (keep accessible/focusable) */
#billing_invoice_type_field .woocommerce-input-wrapper input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Hide the required (*) asterisk inside the option buttons (keep it on the heading) */
#billing_invoice_type_field .woocommerce-input-wrapper label .required {
  display: none;
}

/* Each option as a button */
#billing_invoice_type_field .woocommerce-input-wrapper input[type="radio"] + label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 12px 22px;
  margin: 0;
  border: 1.5px solid #d8dde3;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  user-select: none;
}

#billing_invoice_type_field .woocommerce-input-wrapper input[type="radio"] + label:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

/* Selected */
#billing_invoice_type_field .woocommerce-input-wrapper input[type="radio"]:checked + label {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #2563eb;
}

/* Keyboard focus ring */
#billing_invoice_type_field .woocommerce-input-wrapper input[type="radio"]:focus-visible + label {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .25);
}

/* Conditional groups get a touch of breathing room */
.gelsin-field-individual,
.gelsin-field-corporate {
  margin-top: 4px;
}
