.tev-phone-wrap {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}

.tev-phone-wrap .tev-phone-code {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 8.5rem;
  max-width: 46%;
  padding: 0.65rem 0.5rem;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.625rem;
  background: #fff !important;
  color: #0f172a !important;
  font-size: 0.875rem;
  line-height: 1.25;
  cursor: pointer;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  appearance: auto;
  -webkit-appearance: menulist;
}

.tev-phone-wrap .tev-phone-national {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
}

.tev-phone-wrap .tev-phone-code.tev-input,
.tev-phone-wrap .tev-phone-national.tev-input {
  width: auto;
}

.tev-phone-wrap .tev-phone-national.tev-input {
  flex: 1 1 auto;
  min-width: 0;
}

.tev-phone-wrap .tev-phone-code.tev-input {
  flex: 0 0 auto;
  min-width: 8.5rem;
  max-width: 46%;
  padding-left: 0.5rem;
  padding-right: 0.35rem;
  font-size: 0.82rem;
}

.tev-phone-wrap .tev-phone-code:focus,
.tev-phone-wrap .tev-phone-national:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.tev-phone-wrap--invalid .tev-phone-code,
.tev-phone-wrap--invalid .tev-phone-national {
  border-color: #dc2626;
}

.tev-phone-wrap--valid .tev-phone-code,
.tev-phone-wrap--valid .tev-phone-national {
  border-color: #059669;
}

@media (max-width: 480px) {
  .tev-phone-wrap {
    flex-direction: column;
  }

  .tev-phone-wrap .tev-phone-code {
    max-width: 100%;
    width: 100%;
  }
}

/* Admin — Communications tab */
.tev-comm-settings-table .tev-comm-contact-cell {
  min-width: 280px;
}

.tev-comm-settings-table .tev-comm-phone-wrap {
  max-width: 360px;
}

.tev-comm-field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: #64748b;
}
