/* Country dial-code picker */
.phone-cc-picker {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.phone-cc-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px 0 0;
  margin-right: 6px;
  border: none;
  border-right: 1px solid #eee;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: #151515;
  cursor: pointer;
  white-space: nowrap;
  min-height: 36px;
}

.phone-cc-btn .fa-chevron-down {
  color: #999;
  font-size: 10px;
  margin-left: 2px;
}

.phone-cc-flag {
  font-size: 16px;
  line-height: 1;
}

.phone-cc-dial {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.phone-cc-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1200;
  min-width: 220px;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
  padding: 6px;
}

.phone-cc-menu.open {
  display: block;
}

.phone-cc-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  color: #151515;
  cursor: pointer;
  text-align: left;
}

.phone-cc-option:hover {
  background: #f0fdf4;
}

.phone-cc-name {
  flex: 1;
}

.phone-cc-code {
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
}

/* Lazada-style login fields on profile */
.lg-field.phone-with-cc {
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 0;
}

.lg-field.phone-with-cc input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 0;
  font-size: 14px;
  background: transparent;
}

.lg-field.phone-with-cc .phone-cc-btn {
  border-right: 1px solid #e5e7eb;
}

/* Admin form-grid */
.phone-field-admin,
.form-grid .auth-field[data-phone-field] {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border, #e4e9f2);
  border-radius: 10px;
  padding: 0 12px;
  min-height: 44px;
  gap: 8px;
  margin-top: 6px;
}

.phone-field-admin input[type="tel"],
.form-grid .auth-field[data-phone-field] input[type="tel"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  padding: 10px 0;
  background: transparent;
}
