/*
 * Country-code select beside a national-number input (PhoneNumberWidget).
 * The modifier matches the label tier: --code (+971), --flag (flag + code),
 * --full (flag + code + country name).
 */
.dhh-phone-input {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.8fr) minmax(0, 1.2fr);
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.dhh-phone-input--flag {
  grid-template-columns: 7rem minmax(0, 1fr);
}

.dhh-phone-input--code {
  grid-template-columns: 5.5rem minmax(0, 1fr);
}

.dhh-phone-input > select,
.dhh-phone-input > input,
.dhh-phone-input > .select2-container {
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

@media (max-width: 480px) {
  .dhh-phone-input--full {
    grid-template-columns: 1fr;
  }
}
