.bsd-telephone-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
	gap: .75rem;
	align-items: start;
	margin-bottom: .5rem;
}
.bsd-telephone-fields input {
	max-width: 100%;
	box-sizing: border-box;
}
/* Native country selection, with keyboard type-ahead and browser-independent options. */
.bsd-telephone-fields > label {min-width:0}
.bsd-telephone-fields select {display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;margin-top:5px}
.bsd-telephone-fields select:focus-visible {outline:2px solid #176a9b;outline-offset:2px}
/* Give the full calling-code label more room on compact forms. */
@media(max-width:900px){
  .bsd-telephone-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bsd-telephone-fields > label:first-child{grid-column:1/-1}
}
@media(max-width:520px){
  .bsd-telephone-fields{grid-template-columns:minmax(0,1fr)}
  .bsd-telephone-fields > label:first-child{grid-column:auto}
}
