.vrc-phone-field {
  width: 100%;
}

.vrc-phone-combo {
  display: grid;
  grid-template-columns: minmax(4.75rem, 5.5rem) minmax(0, 1fr);
  gap: 0.45rem;
  align-items: stretch;
}

.vrc-phone-prefix-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.vrc-phone-prefix-wrap::after {
  content: '';
  position: absolute;
  right: 0.55rem;
  top: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(148, 163, 184, 0.85);
  transform: translateY(-35%);
  pointer-events: none;
}

.vrc-phone-prefix-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 100%;
  padding: 0.65rem 1.15rem 0.65rem 0.45rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  pointer-events: none;
}

.vrc-phone-field.is-light .vrc-phone-prefix-display,
.tb-form .vrc-phone-prefix-display {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.vrc-phone-prefix-flag {
  font-size: 0.72rem;
  line-height: 1;
}

.vrc-phone-prefix-dial {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.vrc-phone-prefix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  color: transparent;
  padding: 0;
  font-size: 0.78rem;
  cursor: pointer;
  appearance: none;
}

.vrc-phone-prefix option {
  color: #0f172a;
  background: #ffffff;
}

.vrc-phone-local {
  width: 100%;
  min-width: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
}

.vrc-phone-field.is-light .vrc-phone-local,
.tb-form .vrc-phone-local {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.vrc-phone-prefix-wrap:has(.vrc-phone-prefix:focus-visible) .vrc-phone-prefix-display,
.vrc-phone-local:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 1px;
}

@media (max-width: 520px) {
  .vrc-phone-combo {
    grid-template-columns: minmax(4.5rem, 5rem) minmax(0, 1fr);
  }
}
