.ps-phone-field {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.ps-phone-prefix-wrap {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  border: 1px solid var(--ps-phone-border, rgba(255, 255, 255, 0.14));
  border-right: none;
  border-radius: 10px 0 0 10px;
  background: var(--ps-phone-prefix-bg, rgba(255, 255, 255, 0.04));
  padding: 0 6px 0 8px;
  min-width: 92px;
}

.ps-phone-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex: none;
  pointer-events: none;
}

.ps-phone-prefix {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px 10px 6px;
  cursor: pointer;
  min-width: 58px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%239aa3b5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}

.ps-phone-prefix:focus {
  outline: none;
}

/* Dropdown nativo OS: sfondo chiaro → testo scuro obbligatorio */
.ps-phone-prefix option {
  background: #ffffff;
  color: #111111;
}

.ps-phone-number {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 0 10px 10px 0 !important;
}

.ps-phone-field:focus-within .ps-phone-prefix-wrap,
.ps-phone-field:focus-within .ps-phone-number {
  border-color: var(--ps-phone-focus, #5b8def);
}

.ps-phone-field .ps-phone-number {
  border-left: none;
}

.auth-field .ps-phone-field,
.pca-field .ps-phone-field,
.sl-field .ps-phone-field,
.fd-field .ps-phone-field,
.fdc-field .ps-phone-field,
.dm-man-field .ps-phone-field,
.mz-field .ps-phone-field {
  margin-top: 0;
}
