/* Phone prefix selector: same flag / code / number layout as Simple Rent. */
.sr-phone-wrap {
  display: flex;
  position: relative;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  text-align: left;
  --phone-border: #dce1e7;
}
.sr-phone-wrap [hidden] { display: none !important; }
.sr-phone-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 12px;
  background: #f5f7fa;
  border: 1px solid var(--phone-border);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  color: #0a1828;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.sr-phone-btn:hover { background: #edf0f5; }
.sr-phone-btn img, .sr-phone-option img {
  flex-shrink: 0;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,.1);
}
.sr-phone-btn .sr-phone-arrow { font-size: 9px; color: #8a9aaa; margin-left: 2px; }
.sr-phone-wrap input.sr-phone-number {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  height: 52px;
  padding: 12px 14px !important;
  border: 1px solid var(--phone-border) !important;
  border-radius: 0 10px 10px 0 !important;
  background: #fff !important;
  color: #32353a;
  font-size: 16px;
  direction: ltr;
  text-align: left;
}
.sr-phone-wrap input.sr-phone-number:focus {
  border-color: var(--accent-color) !important;
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 85%);
}
.sr-phone-wrap select.sr-phone-select {
  flex: 0 1 145px;
  width: 145px;
  min-width: 0;
  border: 1px solid var(--phone-border);
  border-radius: 10px 0 0 10px;
  padding: 8px !important;
  background: #f5f7fa;
}
.sr-phone-dropdown {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 100;
  width: 320px;
  max-width: 100%;
  max-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(10,24,40,.14);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.sr-phone-wrap input.sr-phone-search {
  flex: 0 0 auto;
  width: 100%;
  height: 46px;
  padding: 10px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--phone-border) !important;
  border-radius: 0 !important;
  background: #f8f9fb !important;
  color: #0a1828;
  font-size: 16px;
  box-shadow: none !important;
}
.sr-phone-optlist { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.sr-phone-wrap .sr-phone-hint {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 12px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}
.sr-phone-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: #fff;
  color: #0a1828;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.sr-phone-option-prefix { margin-left: auto; color: #64748b; }
.sr-phone-option:hover, .sr-phone-option.selected {
  background: color-mix(in srgb, var(--accent-color), white 92%);
}
.sr-phone-option.selected { font-weight: 600; }
.sr-phone-btn:focus-visible, .sr-phone-option:focus-visible, .sr-phone-search:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: -2px;
}
